nas-search
Routes AutoFormer, AutoFormerV2/S3, Cream, and CDARTS architecture-search, retrain, test, and sampled-ImageNet workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- nas-search
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes AutoFormer, AutoFormerV2/S3, Cream, and CDARTS architecture-search, retrain, test, and sampled-ImageNet workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md2.5 KB
- 参考文档references/workflows.md3.5 KB
- 脚本scripts/build_nas_command.py5.3 KB
03 SKILL.md 正文
NAS Search
Use this sub-skill when the user wants to search, retrain, evaluate, or debug one of the monorepo's architecture-search families: AutoFormer, AutoFormerV2/S3, Cream, or CDARTS.
What this route owns
- AutoFormer supernet training, evolution search, and evaluation.
- AutoFormerV2 / S3 evaluation from searched-space configs.
- Cream search, retrain, test, and subImageNet generation.
- CDARTS search, retrain, test, and the more advanced benchmark201 / detection / segmentation branches.
When to use it
Choose this route for prompts like:
- "search an AutoFormer architecture"
- "run Cream retraining"
- "evaluate S3 / AutoFormerV2"
- "fix CDARTS search config"
- "generate subImageNet"
- "compare NAS commands for these repos"
What to read next
references/workflows.mdfor command shapes, config-file ownership, and which project uses which launcher.references/troubleshooting.mdfor legacy-torch, Apex, dataset-layout, and distributed-launch failures.scripts/build_nas_command.pyto print safe command templates instead of launching a training job.../../scripts/check_legacy_imports.pyfor the modern-torch compatibility shim used by legacy search code.../../scripts/check_dataset_layout.pywhen the failure looks like a missing ImageNet, subImageNet, or COCO layout.
Important boundaries
- Do not route EfficientViT, MiniViT, TinyCLIP, TinyViT, or iRPE here.
- Treat
Cream/tools/generate_subImageNet.pyandAutoFormer/lib/subImageNet.pyas reference evidence only; they mutate data and copy files, so the bundled skill uses read-only layout checks plus command templates instead. - Treat CDARTS benchmark201 as an advanced optional path because it expects extra historical dependencies such as Apex and the NAS-Bench-201 API.
Working pattern
- Identify the project family and the exact mode: train, search, retrain, test, or eval.
- Read the workflow reference for the canonical command shape and the required config/data/checkpoint fields.
- Run the bundled layout or compatibility checker if the error involves dataset paths, old torch imports, or legacy optional dependencies.
- Use the command-builder script to produce the exact launcher string and then adapt it to the user's environment.
Common signals
torch._sixerrors usually mean the legacy NAS code is being imported under modern torch.apexerrors usually mean the request is trying to use the optional CDARTS benchmark201 path.FileNotFoundErroronimagenet/train,imagenet/val,subImageNet, orcocousually means the data layout is wrong.- Import-time parser errors usually mean the user tried to call the project script without the required mode/config arguments.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).