training
Plan OpenFold training, fine-tuning, validation, distillation, checkpoint, DeepSpeed, and distributed commands safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Plan OpenFold training, fine-tuning, validation, distillation, checkpoint, DeepSpeed, and distributed commands safely.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/distributed-and-deepspeed.md3.3 KB
- 参考文档references/training-cli-reference.md5.7 KB
- 参考文档references/training-workflows.md4.7 KB
- 参考文档references/troubleshooting.md4.2 KB
- 脚本scripts/build_deepspeed_config.py9.7 KB
- 脚本scripts/build_training_command.py9.2 KB
- 参考文档templates/experiment_config.json109 B
03 SKILL.md 正文
OpenFold Training
Use this sub-skill when the task is to plan or troubleshoot OpenFold training, fine-tuning, distributed execution, DeepSpeed configuration, checkpoint resume, validation, distillation, or train_openfold.py command construction.
Route Quickly
- Start with
references/training-cli-reference.mdfor required positionals, key flags, validation rules, and safe command-building conventions. - Use
references/training-workflows.mdfor initial training, fine-tuning, resume, validation, distillation, logging, checkpoints, and experiment config overrides. - Use
references/distributed-and-deepspeed.mdfor GPU/node strategy,--seed, MPI, Slurm handoff, DeepSpeed JSON, BF16/A100 guidance, and precision conflicts. - Use
references/troubleshooting.mdfor missing caches/indexes, runtime imports, GPU impossibility, logging, DeepSpeed, and checkpoint failures. - Run
scripts/build_training_command.pyto assemble a validated dry-run command; it prints shell-quoted argv and never launches training. - Run
scripts/build_deepspeed_config.pyto generate a deterministic DeepSpeed config JSON without importing OpenFold or DeepSpeed. - Copy and edit
templates/experiment_config.jsonwhen the user needs a flattened--experiment_config_jsonoverride.
Boundaries
- Route mmCIF/MSA layout creation, alignment DB/index construction, chain/mmCIF cache generation, duplicate-chain expansion, cluster files, and data validation to
../data-preparation/. - Route CUDA/PyTorch/DeepSpeed/MPI/W&B installation, optional extension failures, databases, parameters, and runtime asset readiness to
../installation-assets/. - Route low-level model APIs, config internals, checkpoint conversion APIs, JAX/OpenFold weight import details, and acceleration internals to
../model-apis/. - Route inference, relaxation, template search for prediction, and prediction output interpretation to
../inference/.
Operating Rules
- Treat helpers in this sub-skill as planners only: they must not download data, submit jobs, import OpenFold, import DeepSpeed, or start training.
- Preserve user-supplied paths exactly; do not assume a checkout path, data root, environment prefix, cluster partition, account, or private cache directory.
- For multi-GPU or multi-node training, always include
--seed; OpenFold rejects distributed training without it. - For DeepSpeed, prefer BF16 (
--precision bf16orbf16-mixeddepending on the installed Lightning version and local policy) on A100-class hardware and do not combine DeepSpeed with Lightning precision16. - If CLI help/imports fail because optional compiled extensions such as
attn_core_inplace_cudaare missing, document the environment gap instead of claiming full CLI verification.
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).