config-and-model-architecture
Explain UniAD config variants, plugin registration, public model components, and task-head relationships.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- config-and-model-architecture
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Explain UniAD config variants, plugin registration, public model components, and task-head relationships.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md7.3 KB
- 参考文档references/config-reference.md4.3 KB
- 参考文档references/model-architecture.md5.0 KB
- 参考文档references/troubleshooting.md4.0 KB
- 脚本scripts/summarize_uniad_config.py18.8 KB
03 SKILL.md 正文
Config and Model Architecture
Use this sub-skill when the question is about choosing, editing, or comparing UniAD configs, understanding which model component owns a task, or diagnosing a BEV encoder swap or registry problem.
Read first
references/config-reference.mdfor the three public config families, queue lengths, checkpoints, and plugin fields.references/model-architecture.mdfor the detector/head ownership map and task flow.references/api-reference.mdfor verified constructor signatures and key call contracts.references/troubleshooting.mdfor import, memory, anchor, BEV swap, and planning-metric failures.scripts/summarize_uniad_config.pyfor a safe one-file config summary.
Covers
- BEVFormer base, stage 1 track/map, and stage 2 end-to-end configs.
plugin = True/plugin_dirand theprojects.mmdet3d_pluginimport root.- Verified public classes:
UniAD,UniADTrack,BEVFormerHead,BEVFormerTrackHead,PansegformerHead,MotionHead,OccHead, andPlanningHeadSingleMode. - Queue length,
load_from, freeze flags, and task-loss ownership. - Planning metric ambiguity and the
planning_evaluation_strategyswitch. - BEV encoder replacement rules: preserve the
bev_embed/bev_poscontract.
Do not cover
- Training or evaluation command construction →
training-evaluation - Dataset downloads or info generation →
data-preparation - Visual result interpretation or plotting →
visualization-and-results
Use this when
- You need to pick the right UniAD config for an experiment.
- You need to explain why a stage is missing a head or a loss.
- You are diagnosing plugin, registry, or import failures tied to model construction.
- You need to identify which module owns a reported loss or output.
- You want a safe summary of a config file before editing it.
Output expectation
Lead with the minimal config or architecture answer, then cite the specific config field or class contract that justifies it.
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).