configure-experiments
Configure Lightning-Hydra-Template experiments with Hydra defaults, CLI overrides, debug presets, log paths, multiruns, and Optuna sweeps.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- configure-experiments
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Configure Lightning-Hydra-Template experiments with Hydra defaults, CLI overrides, debug presets, log paths, multiruns, and Optuna sweeps.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/hydra-configuration.md3.5 KB
- 参考文档references/sweeps-and-debugging.md2.4 KB
- 参考文档references/troubleshooting.md2.0 KB
- 脚本scripts/render_config_summary.py3.2 KB
03 SKILL.md 正文
Configure Experiments
Use this sub-skill when the user needs to edit or debug the template's Hydra configuration rather than implement model/data code or run long training.
Triggers
Read this sub-skill for tasks about:
configs/train.yaml,configs/eval.yaml, defaults ordering, config groups, orMissingConfigException.- CLI overrides such as
trainer.max_epochs=20,+trainer.precision=16,experiment=example,debug=fdr, or list-styletags=[...]. - Experiment YAML files, reproducible hyperparameter settings, or converting ad-hoc commands into
configs/experiment/*.yaml. - Hydra multiruns (
-m), globbed experiments, repeated seeds, orhparams_search=mnist_optuna. - Hydra output directories,
${paths.*}interpolation,PROJECT_ROOT, tags, config printing, and debug presets.
Quick workflow
- Inspect the config groups and composed config without training:
python <this-skill>/sub-skills/configure-experiments/scripts/render_config_summary.py --repo-root . --config-name train.yaml --list-groups python <this-skill>/sub-skills/configure-experiments/scripts/render_config_summary.py --repo-root . --config-name train.yaml --override experiment=example --resolve - Decide whether the change belongs in:
- a group file under
configs/data,configs/model,configs/trainer,configs/callbacks, orconfigs/logger; - a top-level defaults edit in
configs/train.yamlorconfigs/eval.yaml; - a reproducible experiment file under
configs/experiment; - a one-off CLI override.
- a group file under
- For debugging, prefer
debug=fdrfor one train/val/test step,debug=limitfor reduced batches,debug=overfitfor overfit-to-batches checks, anddebug=profilerfor timing. - Before using sweeps, ensure
optimized_metricmatches a metric logged by the model. The default Optuna config expectsval/acc_best. - If config targets fail to import, route to customize-data-model and run its
_target_checker.
Read references
- Hydra configuration: defaults list, config groups, override syntax, paths, tags, and composed config checks.
- Sweeps and debugging: multiruns, Optuna, repeated seeds, debug presets, and safe sweep cautions.
- Troubleshooting: config group misses, interpolation failures, tag prompts, metric mismatch, and stale target strings.
Bundled script
- scripts/render_config_summary.py: compose a train/eval config from a target checkout, list groups, print selected fields, and optionally resolve interpolations. It does not run training or data downloads.
Boundaries
- For
train_command, checkpoint resume/eval, callbacks/loggers as runtime behavior, or accelerator execution, use train-evaluate. - For adding DataModules, LightningModules, components, optimizers, schedulers, or package renames, use customize-data-model.
- For pytest/CI smoke selection or package metadata maintenance, use test-maintain-template.
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).