Skip to content
Back to skills

Model Loading Inference

ASecurity

Load CLIP models, prepare images/text, and run safe image-text inference.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythongitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-loading-inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Loading Inference?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Loading Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-loading-inference/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-loading-inference)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-loading-inference
description: "Load CLIP models, prepare images/text, and run safe image-text inference."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# CLIP Model Loading and Inference

Use this sub-skill when an agent needs to import CLIP, choose a checkpoint, load the model/preprocess pair, prepare PIL images and tokenized text, or run image-text scoring and feature encoding.

## Start Here

- For a no-download environment check, run `python scripts/clip_smoke_check.py --json` from this directory or call it by path from any project.
- For API details, model names, tensor shapes, Torch Hub entrypoints, and dtype/device expectations, read [references/api-reference.md](references/api-reference.md).
- For common loading and inference workflows, including local checkpoints and offline-safe validation, read [references/workflows.md](references/workflows.md).
- For install/import, cache, checksum, JIT, CPU/GPU, preprocessing, and network failures, read [references/troubleshooting.md](references/troubleshooting.md).
- For a runnable one-image helper, use `python scripts/image_text_similarity.py --help`; it only downloads weights if the user runs it with a named model that is not already cached.

## Scope Boundaries

This sub-skill owns model loading, cache/download choices, preprocessing, device/JIT placement, forward inference, logits/probabilities, and `encode_image` / `encode_text` usage.

Do not use this sub-skill for prompt template search, prompt ensembling, or label wording strategy; route those decisions to [../prompt-engineering/](../prompt-engineering/). Do not use it for dataset-scale embedding extraction, linear probes, or evaluation loops; route those workflows to [../feature-evaluation/](../feature-evaluation/).

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md5.5 KB
  • references/troubleshooting.md5.1 KB
  • references/workflows.md5.8 KB
  • scripts/clip_smoke_check.py4.3 KB
  • scripts/image_text_similarity.py5.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.