计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
model-inference【效率与协作】Load OpenCLIP, CLIP-style, and CoCa models for safe inference, tokenizer/preprocess setup, embeddings, and local or Hugging Face checkpoint routing.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent needs to instantiate OpenCLIP models, select a pretrained tag or checkpoint source, prepare image/text inputs, create embeddings, or inspect model/tokenizer/preprocess configuration.
open_clip.create_model, open_clip.create_model_and_transforms, or open_clip.create_model_from_pretrained.pretrained=None), a named pretrained tag, a local checkpoint file, hf-hub:org/repo, or local-dir:/path model identifiers.open_clip.get_tokenizer, open_clip.tokenize, open_clip.image_transform, or model-derived preprocess config.encode_image, encode_text, model(image=..., text=...), or CoCa feature/generation calls safely in eval/no-grad mode.references/workflows.md for no-download inference, pretrained/HF/local loading, embeddings, CoCa caveats, and inspection recipes.references/api-reference.md for signatures, accepted identifier schemas, return contracts, and output shapes.references/model-selection.md for model/tag selection, QuickGELU compatibility, tokenizer choice, and local/HF checkpoint guidance.references/troubleshooting.md for common failures and precise fixes.scripts/inference_smoke.py for a deterministic helper that checks model creation, tokenizer, preprocess, and finite embeddings without downloads by default.python sub-skills/model-inference/scripts/inference_smoke.py --model ViT-B-32 --pretrained none --device cpu
The smoke script defaults to pretrained=None, uses a generated image, and performs shape/finite checks only. Passing a named pretrained tag or hf-hub: model can trigger network/cache access; use those only when downloads are explicitly intended.
../training/SKILL.md.../audio-clap/SKILL.md.../naflex-generative/SKILL.md.../evaluation-conversion/SKILL.md.