training-and-data-pipeline
Plan Protenix training data roots, custom CIF preprocessing, safe training and fine-tuning commands, DDP, W&B, checkpoints, and data-layout troubleshooting without launching expensive jobs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-and-data-pipeline
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Plan Protenix training data roots, custom CIF preprocessing, safe training and fine-tuning commands, DDP, W&B, checkpoints, and data-layout troubleshooting without launching expensive jobs.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/configuration.md6.9 KB
- 参考文档references/data-layout.md6.1 KB
- 参考文档references/preprocessing.md6.9 KB
- 参考文档references/training-workflows.md6.5 KB
- 参考文档references/troubleshooting.md9.2 KB
- 脚本scripts/build_prepare_training_data_command.py2.8 KB
- 脚本scripts/build_training_command.py17.2 KB
- 脚本scripts/check_training_data_layout.py4.3 KB
03 SKILL.md 正文
Protenix Training and Data Pipeline
Use this sub-skill when a task involves Protenix training or fine-tuning data roots, released or custom bioassembly data, CCD cache decisions, index CSVs, training command planning, DDP, W&B, checkpoints, or safe preflight checks.
Start Here
- Classify the task as data-root inspection, custom CIF preprocessing, CCD-cache planning, single-process training, multi-GPU/DDP training, or fine-tuning from checkpoints.
- For data-root or index questions, run
scripts/check_training_data_layout.py; it is read-only and uses only the Python standard library. - For custom CIF preprocessing, use
scripts/build_prepare_training_data_command.pyto print the command for later approval; readreferences/preprocessing.mdbefore recommending the actual job. - For training or fine-tuning, use
scripts/build_training_command.pyto print a no-run command; readreferences/training-workflows.mdandreferences/configuration.mdbefore adapting overrides. - Treat full data downloads, CCD refreshes, MSA/template generation, preprocessing, and training as expensive operations that require explicit resource and side-effect approval.
References
references/data-layout.mdexplainsPROTENIX_ROOT_DIR, released data components, MSA/template and RNA MSA directories, downloader modes, and safe root checks.references/preprocessing.mdexplains CIF-to-bioassembly preprocessing, cluster files, distillation mode, CCD cache handling, output.pkl.gzpayloads, and index CSV schema.references/training-workflows.mdexplains train and fine-tune command anatomy, DDP withtorchrun, W&B defaults, checkpoint behavior, kernels, output directories, and resource cautions.references/configuration.mdexplains Protenix config parsing, dot-notation overrides, required fields, dataset overrides, optimizer/scheduler settings, and validation order.references/troubleshooting.mdmaps common data, preprocessing, CUDA/DDP, W&B, checkpoint, config, and dependency failures to safe next actions.
Bundled Tools
scripts/check_training_data_layout.py: read-only checker for aPROTENIX_ROOT_DIR-style root and optional index CSV schemas.scripts/build_prepare_training_data_command.py: no-run builder for CIF preprocessing commands; it can include CCD-cache advisory text but does not refresh CCD data.scripts/build_training_command.py: no-run builder for training and fine-tuning commands with W&B disabled by default and optionaltorchrunlauncher output.
Route Elsewhere
- Single-job prediction,
protenix pred, batch inference, and inference output interpretation belong to../cli-and-inference/SKILL.md. - MSA/template search mechanics, input-prep CLI flows, and RNA MSA search details belong to
../msa-template-and-prep/SKILL.md. - Low-level kernels, model internals, advanced model config internals, and performance tuning beyond launch planning belong to
../advanced-model-configuration/SKILL.md.
Safety Rules
- Do not run data download, CCD refresh, CIF preprocessing, MSA/template search, or training commands as smoke tests.
- Default generated training commands to
--use_wandb false; enable W&B only when the user confirms credentials, project naming, network policy, and non-interactive behavior. - Prefer
python -m runner.trainfor single-process training andtorchrun -m runner.trainfor DDP command planning. - Do not recommend
--triangle_attention deepspeedunless the user has a compatible CUDA, DeepSpeed, Pydantic, and CUTLASS setup. - Keep generated commands and notes portable: use user-supplied paths and placeholders, not local checkout paths or environment prefixes.
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).