Skip to main content

Running Pipeline in Stages

AlphaFold 3 can be executed in stages, separating the CPU-intensive data pipeline from the GPU-intensive inference. This enables optimal resource utilization and efficient reuse of computed MSAs and templates.

Overview

The complete AlphaFold 3 workflow consists of two main stages:
1

Data Pipeline (CPU-only)

Generate Multiple Sequence Alignments (MSAs) and search for structural templates using genetic databases.Resource Requirements:
  • High CPU utilization
  • Significant RAM (64+ GB recommended)
  • Fast disk I/O (SSD recommended)
  • No GPU required
2

Featurization & Inference (GPU)

Convert processed data into features and run the neural network model to predict structures.Resource Requirements:
  • GPU (A100 80GB or H100 80GB recommended)
  • Moderate CPU
  • Moderate RAM

Why Run in Stages?

Run the expensive data pipeline on cheaper CPU-only machines, then move to GPU machines only for inference.

Stage 1: Data Pipeline Only

Run the data pipeline without inference:

What Happens

1

Input Parsing

The input JSON is parsed and validated.
2

MSA Generation

For each protein chain:
  • Jackhmmer searches against UniRef90, MGnify, BFD, UniProt
  • Paired and unpaired MSAs are generated
For each RNA chain:
  • Nhmmer searches against NT-RNA, Rfam, RNACentral
  • Unpaired MSAs are generated
3

Template Search

For each protein chain:
  • Hmmsearch against PDB70 or structure databases
  • Top templates are selected and processed
4

Output Generation

Augmented JSON with MSAs and templates is written to:

Output Structure

After data pipeline:
The augmented JSON includes:
This augmented JSON can be used directly as input for inference-only runs.

Stage 2: Inference Only

Run inference using pre-computed MSAs and templates:

Requirements

The input JSON must contain pre-computed MSAs and templates:
  • For protein chains: unpairedMsa, pairedMsa, and templates must be set
  • For RNA chains: unpairedMsa must be set
  • Empty strings are valid (for MSA-free or template-free predictions)
  • null values will cause an error

What Happens

1

Input Validation

Verifies that all required MSA and template fields are present.
2

Featurization

Converts sequences, MSAs, and templates into neural network input features.
3

Model Inference

Runs the AlphaFold 3 model on GPU for each specified seed.
4

Output Generation

Generates prediction outputs (CIF files, confidence metrics, JSON summaries).

Output Structure

After inference:

Advanced: Pre-computing for Multimers

For efficient multimer screening, compute MSAs for individual chains once, then combine them:

Combinatorial Efficiency

For n first chains and m second chains:
  • Without stages: n × m full runs
  • With stages: n + m data pipeline runs + n × m inference runs
For 10 chains × 10 chains:
  • Without stages: 100 full runs
  • With stages: 20 data pipeline + 100 inference (much faster!)

MSA-Free and Template-Free Modes

You can skip data pipeline stages by providing empty MSAs/templates:
Run with --norun_data_pipeline.

Performance Considerations

Data Pipeline Performance

From performance.md:70-84:
Data pipeline runtime varies significantly based on:
  • Input size
  • Number of homologous sequences
  • Available hardware (CPU cores, disk speed)
  • Database size and sharding
For deep MSAs, Jackhmmer/Nhmmer may need substantial RAM beyond 64 GB.

Optimization Tips

1

Use Fast Storage

Place databases on fast SSD or RAM-backed filesystem:
2

Increase Parallelization

3

Use Sharded Databases

Split databases into shards for parallel search. See performance.md:85-163.

Complete Example Workflow

Code Reference

From performance.md:3-18: