AGENT SKILL

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

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

  1. 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.
  2. For data-root or index questions, run scripts/check_training_data_layout.py; it is read-only and uses only the Python standard library.
  3. For custom CIF preprocessing, use scripts/build_prepare_training_data_command.py to print the command for later approval; read references/preprocessing.md before recommending the actual job.
  4. For training or fine-tuning, use scripts/build_training_command.py to print a no-run command; read references/training-workflows.md and references/configuration.md before adapting overrides.
  5. 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.md explains PROTENIX_ROOT_DIR, released data components, MSA/template and RNA MSA directories, downloader modes, and safe root checks.
  • references/preprocessing.md explains CIF-to-bioassembly preprocessing, cluster files, distillation mode, CCD cache handling, output .pkl.gz payloads, and index CSV schema.
  • references/training-workflows.md explains train and fine-tune command anatomy, DDP with torchrun, W&B defaults, checkpoint behavior, kernels, output directories, and resource cautions.
  • references/configuration.md explains Protenix config parsing, dot-notation overrides, required fields, dataset overrides, optimizer/scheduler settings, and validation order.
  • references/troubleshooting.md maps 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 a PROTENIX_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 optional torchrun launcher 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.train for single-process training and torchrun -m runner.train for DDP command planning.
  • Do not recommend --triangle_attention deepspeed unless 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

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