results-ops
Install and operate DreamerV3 environments and backends, inspect result logdirs, and summarize score artifacts without reopening the source repository.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- results-ops
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Install and operate DreamerV3 environments and backends, inspect result logdirs, and summarize score artifacts without reopening the source repository.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/install-and-backends.md8.2 KB
- 参考文档references/operations-checklist.md6.7 KB
- 参考文档references/results-and-plotting.md7.9 KB
- 参考文档references/troubleshooting.md8.7 KB
- 脚本scripts/check_optional_env_imports.py7.3 KB
- 脚本scripts/metrics_summary.py9.6 KB
03 SKILL.md 正文
Results And Operations
Use this sub-skill when a task is about making DreamerV3 runnable, checking optional environment/backend readiness, inspecting logdir outputs, viewing metrics, or summarizing benchmark score files.
Do not use this sub-skill for:
- choosing training commands, config blocks, tasks, or run scripts; route those decisions to
train-configure. - explaining the embodied environment step/space contract; route those details to
embodied-dataflow. - changing neural-network internals, JAX module structure, or model precision/device policies beyond operational install checks; route those details to
jax-models.
Read Or Run
- Read references/install-and-backends.md before installing DreamerV3, selecting CPU/CUDA/Docker setup, or diagnosing optional suite dependencies.
- Read references/results-and-plotting.md when a user has a logdir,
metrics.jsonl,scores.jsonl, Scope summaries, TensorBoard/WandB/Expa outputs, or gzipped benchmark score artifacts. - Read references/operations-checklist.md before long runs, while supervising a run, before resuming a stopped logdir, and after collecting artifacts.
- Read references/troubleshooting.md for install/import/backend/viewer/plotting/optional-environment failures.
- Run scripts/check_optional_env_imports.py to identify which optional environment-suite Python modules are present without constructing the heavy environments.
- Run scripts/metrics_summary.py to list scalar keys and summarize DreamerV3
metrics.jsonl,scores.jsonl, or gzipped score-record JSON with only Python standard-library dependencies.
Fast Operating Recipes
Check base package and backend readiness
python -m pip check
python - <<'PY'
import dreamerv3, embodied
from embodied.envs import dummy
import jax, jax.numpy as jnp
print('jax', jax.__version__, 'backend', jax.default_backend())
print('devices', jax.devices())
print('sum', float(jnp.array([1.0, 2.0]).sum()))
env = dummy.Dummy({'image': (8, 8, 3)}, {'action': (2,)})
print('dummy obs keys', sorted(env.obs_space.keys()))
PY
If this fails on an optional environment module but the selected task does not use that suite, treat it as optional rather than blocking the whole installation. Use the optional import checker to make the missing suite explicit.
Inspect a logdir without Scope
python scripts/metrics_summary.py --input <logdir>/metrics.jsonl --list-keys
python scripts/metrics_summary.py --input <logdir>/scores.jsonl --key episode/score --last 10
python scripts/metrics_summary.py --input <logdir>/metrics.jsonl --key episode/length --last 10
If the key is absent, list keys first. DreamerV3 metric names commonly use slash-separated names such as episode/score, episode/length, fps/train, replay/inserts, and train/loss/....
View live summaries
python -m pip install -U scope
python -m scope.viewer --basedir <logdir-parent> --port 8000
Point Scope at a directory that contains one or more run logdirs. If Scope is unavailable, use the summary script above and the JSONL schema in references/results-and-plotting.md.
Contracts To Preserve
- DreamerV3 requires Python 3.11+ for the documented setup.
- The distribution name is
dreamer; import roots aredreamerv3andembodied. - The repo-declared base requirements pin
jax[cuda12]==0.4.33; CPU-only use is possible by selecting the CPU JAX platform at runtime, while production defaults target CUDA. - Base install/import/JAX CPU smoke and optional CUDA smoke were verified during skill construction. Optional environment-suite packages are intentionally not all required for every task.
- Runtime guidance in this sub-skill is self-contained. Do not require future agents to reopen the original repository to understand installation, result files, plotting concepts, or optional dependency failures.
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).