AGENT SKILL

alphafold3-pytorch

Use AlphaFold 3 PyTorch for protein and biomolecular structure-prediction workflows, heterogeneous molecule inputs, PDB/mmCIF/MSA/template preparation, bounded model inference, training configuration, and local CLI or Gradio operation.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
alphafold3-pytorch
license
MIT
metadata
{ "disco-role": "operating" }
description
Use AlphaFold 3 PyTorch for protein and biomolecular structure-prediction workflows, heterogeneous molecule inputs, PDB/mmCIF/MSA/template preparation, bounded model inference, training configuration, and local CLI or Gradio operation.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

AlphaFold 3 PyTorch

Use this skill when a task names alphafold3-pytorch, AlphaFold 3 in PyTorch, protein/complex structure prediction, biomolecular diffusion, PDB/mmCIF inputs, MSA/template features, or the package's Alphafold3/Alphafold3Input APIs. This is operating guidance for the public package, not a claim that a checkpoint, training dataset, or production-scale result is available.

Start safely

  1. Install the public distribution in an isolated environment: python -m pip install alphafold3-pytorch.
  2. Confirm the package and its scientific dependencies import: python -c "import torch, alphafold3_pytorch as af3; print(af3.Alphafold3)".
  3. Run the read-only environment probe at scripts/check_environment.py before using CUDA, optional encoders, MSA accelerators, or a CLI checkpoint.
  4. Read references/package-overview.md for verified API boundaries and choose exactly one focused route below.
  5. Read references/troubleshooting.md when an import, data dependency, shape, device, checkpoint, or output failure is involved.

The package has heavy runtime dependencies and production defaults. Begin with small synthetic inputs and reduced model dimensions; do not start full training, download PDB/AFDB data, or launch the interactive app as an exploratory smoke test.

Route by task

  • Model construction, forward/loss versus sampling, confidence, ranking, diffusion, checkpoint loading, or memory: use model-inference.
  • Proteins, RNA/DNA, ligands, ions, atom features, batching, serialization, missing atoms, or output structure conversion: use input-representation.
  • PDB/mmCIF parsing, MSA/templates, cropping, weighted sampling, or dataset curation: use data-pipeline.
  • Trainer, DataLoader, YAML/Pydantic configs, conductor phases, EMA, checkpoints, Fabric, or bounded training preflight: use training-configuration.
  • Console commands, checkpoint-to-mmCIF planning, local Gradio UI, entity validation, or app cache/precision behavior: use cli-serving.

When a request crosses routes, start here, then follow the owning sub-skill's explicit sibling links. Keep data preparation separate from model execution so large downloads and expensive inference are not accidentally triggered.

Public contract

The primary public objects are Alphafold3, Alphafold3Input, AtomInput, BatchedAtomInput, PDBInput, PDBDataset, Trainer, and the Pydantic/YAML configuration factories. The two console entry points are alphafold3_pytorch and alphafold3_pytorch_app. Exact signatures, defaults, feature dimensions, return modes, and CLI flags live in the nearest references, not in this router.

Scope limits

  • A real checkpoint is required for meaningful inference; this skill does not provide weights or validate biological quality by a tiny synthetic forward.
  • CPU checks validate API/data correctness. CUDA is an optional stronger runtime path and must be probed explicitly; CPU evidence is not CUDA evidence.
  • PDB/AFDB/CCD acquisition, filtering, clustering, Nim compilation, full training, and interactive server launch are intentionally bounded or reference-only. Follow the stop conditions in the focused route.
  • Before refreshing this skill for a changed checkout, read references/repo-provenance.md and compare its commit, package version, dirty state, and evidence paths.

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