Skip to content
Back to skills

Model Zoo Inference

ASecurity

"Operate MMPreTrain model zoo discovery, inference APIs, task

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopspythonapi

Works with

  • 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-zoo-inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Zoo Inference?

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

Security grade badge for Model Zoo Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-zoo-inference/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-zoo-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-zoo-inference
description: "Operate MMPreTrain model zoo discovery, inference APIs, task
  inferencers, and feature extraction."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MMPreTrain model zoo and inference router

Use this sub-skill when the user needs to discover packaged MMPreTrain model names, construct a model from the model zoo or a config, run an inference API, extract image features, choose checkpoint/device/offload options, or interpret an inferencer result.

## Route by intent

- **Find a model name or task family:** use `references/api-reference.md` for `list_models`, task-filter names, and `ModelHub` behavior. The bundled `scripts/list_models.py` helper is safe for local model-zoo discovery and does not download checkpoints.
- **Construct a model without weights or with a local/URL checkpoint:** use `references/api-reference.md#get_model-and-checkpoint-selection` and prefer `pretrained=False` when the user explicitly wants no download.
- **Run image classification:** use `references/inference-recipes.md#image-classification` or the bundled `scripts/classify_image.py` helper. The helper avoids checkpoint downloads unless the caller passes `--checkpoint` or `--use-default-checkpoint`.
- **Run image retrieval or multimodal retrieval:** use `references/inference-recipes.md#retrieval-prototypes-caches-and-top-k` for `prototype`, `prototype_cache`, `prepare_batch_size`, `fast_match`, and `topk` planning.
- **Run captioning, VQA, visual grounding, or NLVR:** use `references/inference-recipes.md#multimodal-inferencers` and check optional dependency gates in `references/troubleshooting.md`.
- **Extract features or do no-download model surgery:** use `references/inference-recipes.md#no-download-model-surgery-and-feature-extraction`.
- **Debug model-index, checkpoint, device, prototype, visualization, or optional-extra failures:** use `references/troubleshooting.md`.

## Boundary and handoff

- Route training commands, config authoring, evaluation, resume/AMP/TTA, and checkpoint production to `../training-and-evaluation/SKILL.md`.
- Route dataset annotation schemas, custom datasets, custom registries, transforms, and project modules to `../datasets-and-customization/SKILL.md`.
- Route CAM, t-SNE, log/result analysis, FLOPs, checkpoint publishing/conversion, TorchServe, and deployment utilities to `../tools-analysis-and-deployment/SKILL.md`.
- Do not ask users to open repository docs, demos, tests, configs, or scripts. Use the bundled references and helpers here, or route to the neighboring sub-skill.

## Operational defaults

1. Decide whether the request may download weights before constructing an inferencer. MMPreTrain inferencer classes default to `pretrained=True`; `get_model` defaults to `pretrained=False`.
2. For offline or architecture-only work, use `pretrained=False` and `device='cpu'` unless the user chooses a verified accelerator environment.
3. For meaningful predictions, use an explicit local checkpoint path or an allowed URL/default checkpoint. Keep cache/network failures separate from model-name failures.
4. Treat returned dictionaries as convenient summaries. Use `return_datasamples=True` when the user needs full `DataSample` tensors/fields for downstream Python logic.
5. Use `show_dir` instead of `show=True` in headless sessions.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md12.1 KB
  • references/inference-recipes.md9.3 KB
  • references/troubleshooting.md8.1 KB
  • scripts/classify_image.py8.8 KB
  • scripts/list_models.py3.7 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.