AGENT SKILL

model-zoo-inference

Operate MMPreTrain model zoo discovery, inference APIs, task inferencers, and feature extraction.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
model-zoo-inference
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate MMPreTrain model zoo discovery, inference APIs, task inferencers, and feature extraction.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

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.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351