AGENT SKILL

minivit

Routes MiniViT Mini-DeiT and Mini-Swin compression, distillation, command-construction, dataset-layout, and optional RPE/custom-op workflows.

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

01 前言 Front Matter

name
minivit
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes MiniViT Mini-DeiT and Mini-Swin compression, distillation, command-construction, dataset-layout, and optional RPE/custom-op workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

MiniViT

Use this sub-skill when the user asks about MiniViT workflows for Mini-DeiT or Mini-Swin: model/variant selection, ImageNet layout validation, MiniViT weight multiplexing, distillation command construction, evaluation command construction, 224-to-384 Mini-Swin finetuning, or optional RPE/custom-op status.

Route first

User task Read/run
Build a Mini-DeiT or Mini-Swin command template scripts/build_minivit_command.py, then references/command-reference.md
Choose a model variant, YAML config, or checkpoint family references/api-reference.md and references/command-reference.md
Validate ImageNet folders or tar archives references/workflows.md and root scripts/check_dataset_layout.py
Diagnose teacher checkpoints, rpe_ops, Mini-Swin configs, Apex, or layer-list mismatches references/troubleshooting.md

Safe operating pattern

  1. Confirm whether the user means Mini-DeiT or Mini-Swin. Generic iRPE integration belongs to the irpe sub-skill; TinyViT and EfficientViT belong to their own sub-skills.

  2. Validate the ImageNet root before constructing expensive launchers:

    python ../../scripts/check_dataset_layout.py --root /path/to/ImageNet --kind imagenet1k
    
  3. Generate, review, and edit a command template instead of improvising distributed flags:

    python scripts/build_minivit_command.py --workflow mini-swin-train --variant tiny --data-path /path/to/ImageNet --output /path/to/output --teacher /path/to/teacher.pth --amp-opt-level O0
    
  4. Treat printed commands as templates. The helper never starts distributed training, downloads data, or writes checkpoints; commands printed by the helper may do those things if the user later runs them.

Native safe checks

  • Mini-DeiT parser help is safe in an environment with timm installed.
  • mini_deit_tiny_patch16_224 CPU instantiation is safe and was verified in the inspection environment.
  • Mini-Swin config parsing with an explicit --cfg is safe; full Mini-Swin training/evaluation requires CUDA, DistributedDataParallel, and NCCL setup.

Boundaries

  • Covered here: Mini-DeiT and Mini-Swin compression/distillation/evaluation command construction and troubleshooting.
  • Not covered here: generic iRPE API integration, TinyViT sparse-logit workflows, EfficientViT classification/downstream workflows, or Cream/AutoFormer NAS search.
  • Keep runtime guidance self-contained: use bundled references/helpers rather than source-repo documentation links.

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