training-configuration
Configure AlphaFold 3 training datasets, Trainer/DataLoader construction, YAML/Pydantic factories, optimization, evaluation, and bounded diagnostics.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-configuration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Configure AlphaFold 3 training datasets, Trainer/DataLoader construction, YAML/Pydantic factories, optimization, evaluation, and bounded diagnostics.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/configuration.md8.8 KB
- 参考文档references/trainer-api.md9.3 KB
- 参考文档references/troubleshooting.md11.2 KB
- 参考文档references/workflows.md8.4 KB
- 脚本scripts/validate_config.py19.2 KB
03 SKILL.md 正文
Training configuration
Use this sub-skill for Trainer, its wrapped DataLoader, dataset selection,
Pydantic/YAML configuration, conductor phases, checkpointing, optimizer/EMA
choices, Fabric setup, and bounded training preflight. Start with
scripts/validate_config.py; it parses and
validates a YAML document without constructing a model or trainer.
Read the smallest applicable reference:
references/trainer-api.mdfor public classes, collation, lifecycle, optimizer/EMA, logging, evaluation, and checkpoints.references/configuration.mdfor model, trainer, dataset, weighted-sampler, conductor, extra-field, and dotpath contracts.references/workflows.mdfor safe preflight, direct-API, YAML, multi-phase, collation, resume, and bounded diagnostics.references/troubleshooting.mdfor validation failures, backend/precision problems, checkpoint hazards, and resource stop conditions.
Routing boundaries
- Route generic
Alphafold3Input, atom feature semantics, and input conversion toinput-representation. - Route mmCIF/PDB/MSA/template preparation, cropping, and dataset-scale curation
to
data-pipeline. - Route architecture, forward/loss versus sampling modes, and model shape or
checkpoint internals to
model-inference. - Route Click, Gradio, and command construction to
cli-serving.
Operating rules
- Establish the model dimensions, training objective, dataset kind, train/valid /test split policy, accelerator, precision, checkpoint policy, and an explicit step/batch budget before construction.
- Validate the selected YAML root and optional dotpath first. A successful parse is not a successful trainer plan: inspect warnings for missing paths, extra keys, conflicting dataset sources, unsafe overwrite, and unbounded resource settings.
- Keep structure preparation separate from training. This skill consumes
ready
PDBInput/AtomInputdatasets; it does not curate large databases or define molecule/atom feature semantics. - Construct
Traineronly after a human-approved bounded plan. Construction launches Lightning Fabric and creates the checkpoint directory; the validator deliberately does neither. Never use a full production model or dataset for a smoke check. - Treat
use_ema,fp16,distributed_eval, optimizer switches, and other extra trainer keys as runtime options, not as proof that a run is affordable or that a backend is available. Record the actual Fabric accelerator and precision selected at runtime. - For a conductor, validate every phase and the exact
training_orderbefore selecting a phase. Root checkpoint folder/prefix values are composed with each phase; do not reuse a phase output namespace accidentally.
The bundled validator is intentionally read-only: it does not instantiate
Trainer, call a factory's create_instance, call Fabric.launch, create
checkpoint/log directories, download data, train, or start a server.
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).