AGENT SKILL

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

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, or MissingConfigException.
  • CLI overrides such as trainer.max_epochs=20, +trainer.precision=16, experiment=example, debug=fdr, or list-style tags=[...].
  • Experiment YAML files, reproducible hyperparameter settings, or converting ad-hoc commands into configs/experiment/*.yaml.
  • Hydra multiruns (-m), globbed experiments, repeated seeds, or hparams_search=mnist_optuna.
  • Hydra output directories, ${paths.*} interpolation, PROJECT_ROOT, tags, config printing, and debug presets.

Quick workflow

  1. 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
    
  2. Decide whether the change belongs in:
    • a group file under configs/data, configs/model, configs/trainer, configs/callbacks, or configs/logger;
    • a top-level defaults edit in configs/train.yaml or configs/eval.yaml;
    • a reproducible experiment file under configs/experiment;
    • a one-off CLI override.
  3. For debugging, prefer debug=fdr for one train/val/test step, debug=limit for reduced batches, debug=overfit for overfit-to-batches checks, and debug=profiler for timing.
  4. Before using sweeps, ensure optimized_metric matches a metric logged by the model. The default Optuna config expects val/acc_best.
  5. 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

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