train-configure
Configure DreamerV3 training, evaluation, logging, checkpoints, and smoke runs from the CLI.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- train-configure
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Configure DreamerV3 training, evaluation, logging, checkpoints, and smoke runs from the CLI.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-and-config.md8.3 KB
- 参考文档references/run-loops.md7.7 KB
- 参考文档references/troubleshooting.md6.5 KB
- 脚本scripts/smoke_train_debug.py4.9 KB
03 SKILL.md 正文
Train Configure
Use this sub-skill when you need to:
- compose DreamerV3 config blocks from
dreamerv3/configs.yaml - launch, resume, or dry-run
dreamerv3.main.main - choose between
train,train_eval,eval_only,parallel, and theparallel_*worker modes - inspect startup flow, logging, checkpointing, and resume behavior
- run a bounded CPU or random-agent smoke before heavier GPU training
Read these bundled references first:
references/cli-and-config.mdreferences/run-loops.mdreferences/troubleshooting.md
Run the bundled smoke helper when you want a one-command CPU validation:
python scripts/smoke_train_debug.py --helppython scripts/smoke_train_debug.py --dry-run-configpython scripts/smoke_train_debug.py
Covered surface
This sub-skill covers the control and configuration layer around the DreamerV3 training entry point:
dreamerv3/main.pymainmake_agentmake_envmake_replaymake_streammake_logger
dreamerv3/configs.yaml- defaults
- size presets
- task presets
debugmulticpu- CLI override ordering
embodied/run/train.pyembodied/run/train_eval.pyembodied/run/eval_only.pyembodied/run/parallel.py- README install/training/tips distilled into runtime guidance
What to do
- Start from the config reference and pick the smallest preset set that matches the goal.
- Use the smoke helper for a bounded CPU or random-agent check before any larger run.
- Keep
--logdirstable when you want continuation, but start a fresh logdir after any model-shape change. - Use the run-loop reference to choose the correct script mode and checkpoint path.
- If the issue is env wrappers, replay internals, or stream mechanics, hand off to
embodied-dataflow. - If the issue is RSSM/encoder/decoder/model internals, hand off to
jax-models. - If the issue is Docker, plotting, or backend ops, hand off to
results-ops.
Fast rules
--configsblocks apply in order, then explicit CLI flags win.debugis for fast validation, not for learning a good policy.random_agentis the cheapest way to check env, replay, logger, and checkpoint plumbing.train_ratiois interpreted relative to batch size and batch length, so changing those changes the effective update cadence.taskmust resolve to a supported suite/task pair or env creation will fail before training starts.- Reusing a checkpoint after changing a size preset or other model-shape-sensitive config is unsafe unless compatibility is known.
Expected outputs
A healthy bounded training smoke should usually produce at least:
config.yamlmetrics.jsonlscores.jsonlckpt/- terminal metrics and episode summaries
For parallel modes, expect a nested checkpoint tree such as ckpt/agent, ckpt/replay, and ckpt/logger.
When to stop here
Do not dig into source-repo implementation details beyond the bundled references if you only need to:
- choose a config preset
- verify a small training or evaluation smoke
- resume from a checkpoint in a compatible logdir
- decide whether a failure belongs to config, logging, checkpointing, or run-loop control
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).