AGENT SKILL

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

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 the parallel_* 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.md
  • references/run-loops.md
  • references/troubleshooting.md

Run the bundled smoke helper when you want a one-command CPU validation:

  • python scripts/smoke_train_debug.py --help
  • python scripts/smoke_train_debug.py --dry-run-config
  • python scripts/smoke_train_debug.py

Covered surface

This sub-skill covers the control and configuration layer around the DreamerV3 training entry point:

  • dreamerv3/main.py
    • main
    • make_agent
    • make_env
    • make_replay
    • make_stream
    • make_logger
  • dreamerv3/configs.yaml
    • defaults
    • size presets
    • task presets
    • debug
    • multicpu
    • CLI override ordering
  • embodied/run/train.py
  • embodied/run/train_eval.py
  • embodied/run/eval_only.py
  • embodied/run/parallel.py
  • README install/training/tips distilled into runtime guidance

What to do

  1. Start from the config reference and pick the smallest preset set that matches the goal.
  2. Use the smoke helper for a bounded CPU or random-agent check before any larger run.
  3. Keep --logdir stable when you want continuation, but start a fresh logdir after any model-shape change.
  4. Use the run-loop reference to choose the correct script mode and checkpoint path.
  5. If the issue is env wrappers, replay internals, or stream mechanics, hand off to embodied-dataflow.
  6. If the issue is RSSM/encoder/decoder/model internals, hand off to jax-models.
  7. If the issue is Docker, plotting, or backend ops, hand off to results-ops.

Fast rules

  • --configs blocks apply in order, then explicit CLI flags win.
  • debug is for fast validation, not for learning a good policy.
  • random_agent is the cheapest way to check env, replay, logger, and checkpoint plumbing.
  • train_ratio is interpreted relative to batch size and batch length, so changing those changes the effective update cadence.
  • task must 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.yaml
  • metrics.jsonl
  • scores.jsonl
  • ckpt/
  • 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

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