AlphaFold 3 / Tutorial

How to Use AlphaFold 3

You have a protein sequence and want to know what the complex looks like when it binds a ligand or another chain. This page first walks you through one complex prediction on AlphaFold Server and how to get the results back. It then explains how to run AF3 locally when the Server cannot be used.

Short answer

If the system has no more than 5,000 tokens and every ligand has a code in the PDB Chemical Component Dictionary (CCD), use AlphaFold Server (alphafoldserver.com). Sign in with a Google account; you can submit 30 jobs a day. Run AF3 locally on a Linux machine only when a ligand has no CCD code, a covalent bond is needed, you run batches, or the system is larger. A local run needs an NVIDIA GPU of the 8.0-or-newer architecture, and the databases take about 630 GB after extraction.

About this page

How-to guide
What this page solves
You have two protein chains, or a protein and a small molecule, and want to know the structure they form together. You want to submit one prediction on AlphaFold Server and download the results.
Who it is for
Researchers who can use a web browser and handle basic files, want to predict complexes with AlphaFold 3, and have not used it before. No deep-learning background or server setup is needed.
What you will have
A results archive from one Server job, containing the top-ranked structure file, confidence files and MSA files. You can find the top-ranked sample and know which file to use next to judge whether it is usable.
Covers
  • Checking whether your system can be submitted to AlphaFold Server
  • Entering entities, setting sampling and downloading results on the Server
  • Running AF3 locally when the Server cannot be used: hardware, installation, input JSON and speed-up
  • Choosing between Windows, network options in mainland China and open-source alternatives
Does not cover
  • AlphaFold 2 single-chain prediction
  • Numerical reading of pLDDT, PAE and ipTM (see How to read AlphaFold results)
  • Downstream work such as docking scores or molecular dynamics
  • How AF3 is trained and how the model works

Main steps

Step 1

Why this stepThe Server is a hosted service and accepts only certain molecule types and amounts. Checking the limits first avoids finding a blocker halfway through the form.

Signing in needs a Google account. If the page does not open or you cannot sign in, see troubleshooting: AlphaFold Server does not open.

The Server sizes a job in tokens. Each protein residue is 1 token, each DNA or RNA base is 1 token, each ligand atom is 1 token, and each ion is 1 token. Modified residues and glycans count every atom. One job may not exceed 5,000 tokens.

Check ligands. Nineteen common ligands can be picked directly. Any other ligand needs a code in the PDB Chemical Component Dictionary (CCD), a 1–5 character code such as ATP or NAG. The Server does not accept SMILES strings.

Check ions and modifications. Ions must come from a list of 10. Glycosylation and modifications must use the listed options. The full list is in the reference section.

The Server does not predict water or hydrogen atoms. The non-standard amino acid codes B, J, O, U and X are not accepted.

If the system falls outside these rules, for example it needs a SMILES ligand, a custom covalent bond, or more than 5,000 tokens, run it locally instead. See choices: which route when the Server cannot be used.

Step 2

Why this stepThe Server predicts the entities you enter, so one wrong chain gives a wrong complex. This step records sequences, copy numbers and modifications correctly, and removes parts that do not need modelling.

  1. 01

    Enter each chain once and use copy numbers

    Set copies for repeated protein chains instead of pasting the sequence again. For double-stranded DNA, tick “+ Reverse complement” to add the complementary strand; otherwise only one strand is modelled.

  2. 02

    Replace unknown residues

    Replace an unknown residue X with A. In DNA, replace an unknown nucleotide N with T; in RNA, replace it with U.

  3. 03

    Remove long disordered tails

    Long disordered N- or C-terminal tails can produce false, low-confidence helices, lower the pLDDT of nearby residues, and use up tokens. pLDDT is the per-residue confidence score. The FAQ recommends removing disordered tails so the confidence of ordered regions is easier to read.

  4. 04

    Check the template settings

    A template is a known structure fragment that guides the prediction. By default the Server uses PDB templates dated before 2021-09-30. For a template-free control, or to bring the result close to a known structure, turn templates off, set a cutoff date, or upload custom templates in the chain menu, up to 4 per chain. With custom templates, the FAQ recommends also supplying a shallow MSA of only 10–100 sequences; otherwise the co-evolution signal in the MSA can override the template information.

  5. 05

    Check the preview before submitting

    On the preview page, check the entity count, copy numbers and token count against your checklist from step 1.

Step 3

Why this stepEach Server job uses one random seed and returns 5 samples. The seed sets the starting point of sampling. A sample is one candidate structure the model returns. Hard systems may need more candidates, which means more jobs, and the quota is 30 jobs a day, so this step decides how to spend it.

The structure of batch JSON files is in the reference section: the Server dialect JSON.

  1. 01

    Clone the job when you need more candidates

    Use “Clone and reuse” to copy a job. The seed is drawn again automatically, so each extra job adds 5 samples. This suits hard systems such as antibody–antigen or protein–nucleic acid complexes.

  2. 02

    Fix the seed when you need repeatability

    On the preview page, turn off automatic seed and enter an integer from 0 to 4,294,967,295. The official notes say that, because compiler optimisations change, re-running the same JSON after some time does not guarantee identical output.

  3. 03

    Save jobs as drafts when the quota runs out

    A job that exceeds the remaining quota can be saved as a draft and submitted after the quota refreshes. The draft list holds up to 500 jobs.

  4. 04

    Upload batch jobs as JSON

    Submit one job on the web interface and download its zip. Use the <job>_job_request.json in it as a template, and generate the other jobs with a script. Each file holds up to 100 jobs, and the jobs appear as drafts after upload. For a CCD ligand that is not in the list, follow the job_request.json you download after adding a CCD Code entity in the interface.

Step 4

Why this stepThe Server returns results as a zip archive. Besides the structure files, it includes confidence files and MSAs. You need all of them to judge reliability and to reuse the inputs locally, so keep the whole archive.

The archive holds the mmCIF structure and confidence JSON for every sample, plus job_request.json, paired and unpaired MSAs, and up to 4 templates. mmCIF is a common structure file format.

pLDDT is a per-atom confidence score. PAE is the expected position error between residue pairs. pTM and ipTM are overall confidence scores, and ipTM looks only at the interface between chains. For thresholds, see How to read AlphaFold results.

If you want to hand the Server’s job_request.json to a local AF3, see troubleshooting: local AF3 reports a version error for the Server’s job_request.json.

  1. 01

    Find the top-ranked structure

    In the Server archive, fold_<job>_model_0.cif is the top-ranked sample, and 1–4 are the other samples. Look at this one first.

  2. 02

    Open the two confidence files

    fold_<job>_summary_confidences_<N>.json gives pTM, ipTM and other overall and per-chain metrics. fold_<job>_full_data_<N>.json contains the PAE matrix.

  3. 03

    Keep the whole archive

    Save the zip in the project folder. Its MSAs (a3m) and templates can be used directly by a local AF3. For the method, see choices: compare local and Server results.

Choose by your situation

Hand it to an agent

Scientify's research environment comes with ColabFold 1.6.3 and AlphaFold2 weights preinstalled; it does not include AF3 parameters or databases. The preinstalled environment covers protein-only complex prediction; systems with ligands, nucleic acids or modifications need AF3 or an open-source model installed separately.

Example instruction: “Use ColabFold to predict the complex of the two protein chains in the attachment, run 5 models with 3 seeds each, rank by ipTM, and give PAE plots and inter-chain contact residue lists for the top three structures.”

  1. 01

    Prepare the input

    The agent formats the sequences as ColabFold FASTA or CSV and checks for non-standard residues and the number of chains.

  2. 02

    Rent a GPU and run

    Once you have authorised it, the agent rents a GPU as needed (billed per second) and runs colabfold_batch, keeping logs and intermediate files in the project. The task keeps running after you close your computer.

  3. 03

    Summarise results

    It produces PDB files for each model, a ranking table, PAE plots and interface residue lists, and reviews the results adversarially to check that the task is actually complete.

  4. 04

    What you still check

    Whether chain copy numbers match the real stoichiometry, whether interfaces with ipTM between 0.6 and 0.8 have experimental support, and whether disordered regions should be trimmed and the prediction rerun.

Choice

If the system meets the Step 1 rules, use the Server. Otherwise, choose from the table below. The four routes differ in which molecules they accept, the compute they need and the cost of setup.

If you cannot sign in (for example, the network blocks Google services), use AF3 already deployed on a university supercomputer. Siyuan-1 at Shanghai Jiao Tong University, for example, provides a v3.0.2 container and shared parameters. You can also run AF3 locally or use an open-source model.

RouteWhen it fitsLimits
AlphaFold ServerA few jobs; proteins, DNA, RNA and ligands already in the CCD; no environment setup30 jobs per day; 5,000 tokens per job; no SMILES or custom covalent bonds; ions and modifications limited to a list
Local AF3 (v3.0.4)SMILES ligands, covalent ligands, custom MSAs/templates, batches or more than 5,000 tokensLinux; GPU with compute capability 8.0+; ~630 GB of databases; 64 GB RAM
ColabFold 1.6.3 (AF2-multimer)Protein chains only; GPUs with about 16 GB; using the MMseqs2 server instead of local databasesNo ligands, nucleic acids or modifications; ~2,000 residues on 16 GB
Boltz-2Protein-small molecule with affinity predictionThe affinity output has two fields: binder probability for separating binders from non-binders, and log10(IC50) for comparing binders
Chai-1AF3-style all-atom prediction installed with pipRecommended A100 80GB, H100 80GB or L40S 48GB; users report success on RTX 4090
Protenix v1Reimplementation with the same training cutoff as AF3, plus an applied model with a 2025-06 cutoffNeeds a GPU; input JSON is close to, but not identical with, the AF3 format
OpenFold3Open implementation aligned with the AF3 architecture; multi-GPU batches and a low-memory modeStill labelled preview; default weights since 0.5.0 are OpenBind-0
Open-source model information from each GitHub README, checked on 2026-10-10.

Choice: local run

Why this stepCheck the GPU, disk and memory before a local run. A GPU with compute capability below 6.0, or any AMD GPU, is rejected by the program. A GPU with compute capability 7.x needs extra settings, or its structures will be wrong.

Single-GPU inference time (excluding compilation): 1,024 tokens take 62 s on an A100 80GB and 34 s on an H100; 5,120 tokens take 2,547 s and 1,416 s.

Multiple GPUs do not speed up a single input. Each inference uses one GPU, selected with --gpu_device; on multi-GPU machines run several inputs at once. The developers report that a single A100 80GB is at least 2x more efficient in GPU time than 16 A100 40GB cards.

HardwareCapacity or problemRequired settings
A100 80GB / H100 80GB5,120 tokens on one GPU; numerical accuracy verified by the developersDefaults
A100 40GB4,352 tokens at lower throughputUnified memory plus a modified pair_transition_shard_spec
RTX 3090 / 4090 / A5000 / A6000 (compute capability 8.6/8.9)Works; measurements in the next sectionLarge inputs may need the xla attention implementation or unified memory
RTX 50 series and other Blackwell GPUsSupported out of the box since v3.0.2; v3.0.4 fixed unified memory on BlackwellUse v3.0.4
V100, RTX 20 series, Titan RTX (compute capability 7.x)Without settings the structures look random with many clashes and ranking score ≤ -99; with them V100 handles 1,280 tokenscustom-kernel-fusion-rewriter in XLA_FLAGS and the xla attention implementation
P100 (compute capability 6.0)1,024 tokensNo changes
Compute capability < 6.0 or AMD GPUsThe program refuses to run—
Disk~252 GB database download, ~630 GB unpacked, up to 1 TB for a full installationLocal SSD; the directory must not be inside the alphafold3 repository
RAMThe MSA search is memory-hungry, more so for long sequencesAt least 64 GB
Operating systemLinux only; the maintainers state that WSL is not supportedSince v3.0.4, CPU (~100x slower) or Apple Silicon (mps, experimental)
Sources: AF3 installation.md, performance.md, known_issues.md, release notes and issues #59 and #209.

Choice: local run

Docker is the route the official project has verified. The official Dockerfile uses CUDA 12.6.3 and Python 3.12, and sets XLA_FLAGS=--xla_gpu_enable_triton_gemm=false by default to avoid very long compile times. On a cluster without Docker, build the Docker image first, then convert it to a Singularity/Apptainer image.

Docker route (Ubuntu 22.04/24.04)bash
# 1. Source code (keep databases and parameters outside the repository directory)
git clone https://github.com/google-deepmind/alphafold3.git
cd alphafold3

# 2. Databases: ~252 GB download, ~630 GB unpacked; an SSD is recommended
sudo apt install -y wget zstd
./fetch_databases.sh /data/af3_db
sudo chmod 755 --recursive /data/af3_db

# 3. Model parameters (direct download since July 2026; keep a single model file in the directory, no need to unpack .zst)
mkdir -p /data/af3_models
wget -P /data/af3_models https://storage.googleapis.com/alphafold3/af3.bin.zst

# 4. Build the image (host needs an NVIDIA driver, CUDA 12.6 and nvidia-container-toolkit)
docker build -t alphafold3 -f docker/Dockerfile .
# On RHEL / Rocky / AlmaLinux, if you hit "No file descriptors available (os error 24)":
# docker build --ulimit nofile=65535:65535 -t alphafold3 -f docker/Dockerfile .

# 5. Run
mkdir -p $HOME/af_input $HOME/af_output && chmod 755 $HOME/af_input $HOME/af_output
docker run -it \
  --volume $HOME/af_input:/root/af_input \
  --volume $HOME/af_output:/root/af_output \
  --volume /data/af3_models:/root/models \
  --volume /data/af3_db:/root/public_databases \
  --gpus device=0 \
  alphafold3 \
  python run_alphafold.py \
    --json_path=/root/af_input/fold_input.json \
    --model_dir=/root/models \
    --output_dir=/root/af_output
Non-Docker route (uv)bash
# Non-Docker route (documented for CPU-only and macOS; usable on Linux GPU machines if CUDA/cuDNN/JAX work)
# Install HMMER (jackhmmer, nhmmer, etc. on PATH) and uv first
git clone https://github.com/google-deepmind/alphafold3.git
cd alphafold3
uv venv --python 3.12
source .venv/bin/activate
uv sync
uv run build_data                        # builds chemical component data; without it even --help fails with FileNotFoundError: ...chemical_component_sets.msgpack
uv run python run_alphafold_data_test.py  # data pipeline self-test

# CPU only (~100x slower than GPU). The docs say Apple Silicon can use --jax_backend=mps; in our test mps produced wrong structures, see the checklist above
uv run run_alphafold.py \
  --json_path=fold_input.json \
  --model_dir=/data/af3_models \
  --db_dir=/data/af3_db \
  --output_dir=af_output \
  --jax_backend=cpu \
  --flash_attention_implementation=xla
Build on one machine, use on anotherbash
# On a machine where the build succeeds
docker build -t alphafold3 -f docker/Dockerfile .
docker save alphafold3 | gzip > alphafold3_image.tar.gz

# After copying it to the target machine
docker load < alphafold3_image.tar.gz
  • The parameter file is compatible with every 3.0.x release, so upgrading the code does not require a new download.

Choice: local run

Why this stepAF3’s MSA search needs local databases. An MSA (multiple sequence alignment) is a set of sequences homologous to your input, and it is a key input to the prediction. The download is about 252 GB, and about 630 GB after extraction. If you do not want to download them yet, ColabFold’s MMseqs2 server can generate the MSA.

In the ColabFold route the MSAs come from MMseqs2, not from AF3's own Jackhmmer pipeline, so results differ; state this in the methods section of a paper. The public MSA server expects serial queries from a single IP, so do not submit from several machines at once.

Tested on this page: running --af3-json with ColabFold 1.6.3 on barnase–barstar (110 + 89 residues) produced the JSON in about 8 minutes, most of it spent queuing on the public server. The JSON is version 2; each chain has unpairedMsa and pairedMsa, and templates is an empty list, which means no templates are used during inference.

Resumable download and decompressionbash
# The official fetch_databases.sh pipes wget into the decompressor; an interruption means re-downloading the whole file.
# On unstable networks, download the .zst files resumably first, then decompress them one by one.
SRC=https://storage.googleapis.com/alphafold-databases/v3.0
mkdir -p /data/af3_zst /data/af3_db && cd /data/af3_zst
for f in pdb_2022_09_28_mmcif_files.tar \
         mgy_clusters_2022_05.fa \
         bfd-first_non_consensus_sequences.fasta \
         uniref90_2022_05.fa \
         uniprot_all_2021_04.fa \
         pdb_seqres_2022_09_28.fasta \
         rnacentral_active_seq_id_90_cov_80_linclust.fasta \
         nt_rna_2023_02_23_clust_seq_id_90_cov_80_rep_seq.fasta \
         rfam_14_9_clust_seq_id_90_cov_80_rep_seq.fasta; do
  aria2c -c -x 8 -s 8 "$SRC/$f.zst"      # -c resumes; without aria2 use wget -c
done

# Decompress (delete each .zst once done, otherwise both copies need about 880 GB)
for f in *.fa.zst *.fasta.zst; do
  zstd -d "$f" -o "/data/af3_db/${f%.zst}" && rm "$f"
done
tar --no-same-owner --no-same-permissions --use-compress-program=zstd \
    -xf pdb_2022_09_28_mmcif_files.tar.zst -C /data/af3_db
chmod 755 --recursive /data/af3_db

# If someone already has a copy, rsync it; interrupted transfers resume
# rsync -avP user@host:/path/to/af3_db/ /data/af3_db/
Skipping the databases for now: MSAs from ColabFoldbash
# Generate AF3-format JSON with MSAs via the ColabFold MMseqs2 server (JSON only, no prediction)
# Separate components in the FASTA with ":"; write non-protein components as "type|sequence" or "type|sequence|copies"; types: dna, rna, ccd, smiles
# colabfold_batch upper-cases the whole input, so lowercase aromatic atoms in SMILES become aliphatic:
# write SMILES in Kekulé form (e.g. CC(=O)OC1=CC=CC=C1C(=O)O) or add them to the JSON afterwards
colabfold_batch input_sequences.fasta msa_out --af3-json

# Then skip AF3's own data pipeline and run inference directly
python run_alphafold.py --json_path=msa_out/<name>.json --output_dir=out \
  --model_dir=/data/af3_models --run_data_pipeline=false
  • Run the download inside tmux or screen so an SSH disconnect does not stop it.
  • Tested on this page (HEAD requests for the 9 files on 2026-10-10): the .zst files total 238 GB (10^9 bytes); the largest are mgy_clusters_2022_05.fa.zst (69 GB) and pdb_2022_09_28_mmcif_files.tar.zst (57 GB). The bucket returns Accept-Ranges: bytes, so aria2c -c or wget -c can resume.
  • When downloading first and decompressing later, keeping both the .zst files and the unpacked files needs about 880 GB; decompress one file at a time and delete its .zst to limit peak usage.
  • If your group or university already has a copy, rsync -avP it; it is faster than downloading again and resumes after interruptions. The author of the AutoDL image also distributes the databases through cloud drives (user report); check that the file names match the list above.
  • To get protein systems running before downloading the databases, generate MSAs with the ColabFold MMseqs2 server (code below) and run inference directly with --run_data_pipeline=false.

Choice: local input

Why this stepThe input JSON holds everything a local AF3 run needs: sequences, ligands, ions, modifications and bonds all live in one file. Local dialect fields differ from the Server dialect, so a JSON downloaded from the Server must be rewritten before use.

The file below runs as is. The sequence is a format example; replace it with yours and update the modification and bond positions to match. Tested on this page: the file parses with folding_input from the AlphaFold 3 repository as of 2026-10-09 and featurises on macOS arm64; the modification position and bonded atom names pass the CCD checks.

fold_input.json (alphafold3 dialect, version 4)json
{
  "name": "kinase_atp_glyco_demo",
  "modelSeeds": [1, 2, 3, 4, 5],
  "sequences": [
    {
      "protein": {
        "id": "A",
        "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAPILSRVGDGTQDNLSGAEKAVQVKVKALPDAQ",
        "modifications": [{"ptmType": "SEP", "ptmPosition": 13}],
        "description": "format demo: pSer13, N-glycan on Asn47"
      }
    },
    {"ligand": {"id": "B", "ccdCodes": ["ATP"]}},
    {"ligand": {"id": ["C", "D"], "ccdCodes": ["MG"]}},
    {"ligand": {"id": "E", "smiles": "CC(=O)Oc1ccccc1C(=O)O"}},
    {"ligand": {"id": "F", "ccdCodes": ["NAG", "NAG"]}}
  ],
  "bondedAtomPairs": [
    [["A", 47, "ND2"], ["F", 1, "C1"]],
    [["F", 1, "O4"], ["F", 2, "C1"]]
  ],
  "dialect": "alphafold3",
  "version": 4
}
  • Each file holds one job. A file whose top level is a list is recognised as the Server dialect.
  • Chain IDs use upper-case letters only. Write repeated copies as a list, for example ["C", "D"]. Multi-letter chain IDs do not get RASA calculated.
  • Modification codes in the local dialect have no CCD_ prefix: write SEP. The Server dialect writes CCD_SEP.
  • ptmPosition and bonded positions both start at 1. For a single-residue ligand, the residue number is 1.
  • Ions are written as ligands with ccdCodes, for example ["MG"].
  • A SMILES ligand has no atom names, so it cannot appear in bondedAtomPairs. A covalent ligand needs a CCD code or a userCCD custom component.
  • In SMILES strings, each backslash must be written as two backslashes in JSON. Use jq -R . or Python json.dumps to escape it.
  • Covalent bonds between polymers, or within a polymer, are not supported, for example two chains cross-linked by a disulfide, or a head-to-tail cyclic peptide.
  • The name field of each job must be different. Use --input_dir to process a whole folder in one run.

Choice: local sampling

Why this stepA local run can split the MSA search (CPU only) from inference (GPU). Once split, several seeds of the same input reuse one MSA and do not repeat the search.

Each seed produces 5 diffusion samples by default (--num_diffusion_samples=5). The output directory holds seeds × samples subdirectories, and the top-ranked structure is copied to the root. The AF3 paper benchmarks used 5 seeds × 5 samples, 25 candidates in total.

For single-chain proteins or high-confidence complexes, 1–5 seeds are enough. For antibody-antigen complexes the paper shows the top-ranked structure still improving at 1,000 seeds; for such systems start with at least 10–20 seeds and check whether ranking_score and ipTM level off.

Staged runs, multiple seeds and the compilation cachebash
# Step 1: CPU-only MSA/template search; writes <name>_data.json (can run on a machine without a GPU)
# To use --num_seeds in step 2, put exactly 1 value in modelSeeds of fold_input.json (e.g. [1]);
# with several values step 2 fails with Input must have one rng seed to set multiple seeds.
python run_alphafold.py --json_path=fold_input.json --output_dir=out \
  --model_dir=/data/af3_models --db_dir=/data/af3_db --run_inference=false

# Step 2: GPU inference only from the JSON with MSAs; --num_seeds=10 generates 10 consecutive seeds starting from that seed
python run_alphafold.py --json_path=out/kinase_atp_glyco_demo/kinase_atp_glyco_demo_data.json \
  --output_dir=out --model_dir=/data/af3_models \
  --run_data_pipeline=false --force_output_dir=true \
  --num_seeds=10 --num_diffusion_samples=5 \
  --jax_compilation_cache_dir=$HOME/.cache/af3_jax

Choice: local speed-up

Why this stepIn one run on a 4090 workstation, the MSA search took about 9.5 minutes and GPU inference took about 1.5 minutes. So speed-up starts with the MSA, and a faster GPU comes second.

  • Reuse MSAs: when screening all pairs between n and m proteins, run each chain once with --run_inference=false, then copy each chain's unpairedMsa, pairedMsa and templates fields into the dimer JSONs; the data pipeline drops from n×m runs to n+m (official performance.md).
  • When swapping ligands or partner chains against the same target, compute the MSA of the fixed chain once and copy it into each new JSON, leaving the changing chain empty for the program to compute.
  • CPU count: --jackhmmer_n_cpu and --nhmmer_n_cpu default to min(CPU cores, 8), and more than 8 gives almost no speed-up. On machines with many cores, run several inputs at once.
  • On many-core machines, shard the databases with src/alphafold3/scripts/shard_databases.sh and keep the shards on an SSD or a RAM-backed filesystem; the developers report 10–30x faster MSA search. Run ulimit -n 65535 before sharding.
  • Turn on --jax_compilation_cache_dir: in the developers' test the second run of the same input dropped from 148 s to 32 s.
  • For batches of similar-sized inputs, add --buckets entries close to the actual token counts to reduce padding; inputs larger than the largest bucket are recompiled at their exact size.
  • Unified memory (TF_FORCE_UNIFIED_MEMORY=true) and the xla attention implementation both avoid out-of-memory errors at the cost of speed; turn them on only when you hit the error.
  • Shanghai Jiao Tong University's cluster measured the data pipeline on A100-40GB dropping from 2,475 s in v3.0.0 to 677 s in v3.0.1, so upgrade old installations first.
  • On a multi-GPU machine, pin one card with --gpus device=0 (Docker) or --gpu_device, and run different inputs in separate processes.

Choice: compare

Why this stepBoth sides use the same model parameters, so the difference mostly comes from the MSA. Work through these steps in order: rule out chance sampling first, then compare the MSAs, and only then change the database settings.

Using the MSA downloaded from the Server in a local JSONjson
{
  "name": "use_server_msa",
  "modelSeeds": [1, 2, 3, 4, 5],
  "sequences": [
    {
      "protein": {
        "id": "A",
        "sequence": "<exactly the same sequence as the Server job>",
        "unpairedMsaPath": "server_job/msas/fold_<job>_unpaired_msa_chains_a.a3m",
        "pairedMsaPath": "server_job/msas/fold_<job>_paired_msa_chains_a.a3m"
      }
    }
  ],
  "dialect": "alphafold3",
  "version": 4
}
  1. 01

    Run several seeds on both sides first

    In issue #385 one Server job gave ipTM 0.27 while 20 local samples ranged from 0.73 to 0.92; a maintainer reran on the Server with another seed and got 0.90, matching the local run. Each job submitted through the Server interface uses one seed, so run at least 3–5 seeds on both sides before comparing, to confirm the difference is systematic.

  2. 02

    Compare MSA depth

    Count the sequences in the unpairedMsa of the local <name>_data.json against the a3m files in the Server zip. In issue #492 the two differed by only 12 sequences (100 versus 112), and the results were completely different.

  3. 03

    Use the Server's MSA directly

    Put the paths of each chain's unpaired and paired a3m files from the zip into the local JSON (version 2 or later), omit the templates field so the local data pipeline searches templates again (templates: [] means no templates), and run as usual. The a3m files are in the msas/ folder of the zip. Tested on this page: a public Server download rewritten this way loads correctly in the local version.

  4. 04

    Or loosen the local search

    The developers' other option is to raise --domE for Jackhmmer/Nhmmer 100x. --domE is not a run_alphafold.py command-line flag and requires editing the tool configuration in the data pipeline, so in most cases using the Server's MSA is simpler.

  5. 05

    When structures agree and only ipTM differs

    The user in issue #385 built MSAs from one database at a time and got ipTM 0.75 (BFD), 0.91 (UniRef90), 0.70 (UniProt) and 0.90 (MGnify), with essentially the same structure. ipTM is inherently sensitive to the MSA source; when the structures superimpose, judge the interface from the distribution across seeds and from PAE rather than a single ipTM value.

Choice: special systems

Protein–peptide

Enter the peptide as a second protein chain. To judge where the peptide binds, look at the inter-chain PAE and the peptide’s pLDDT, not the pTM. A short peptide has a low pTM; see troubleshooting.

Cyclic peptides

AF3 does not support covalent bonds within polymers, so a head-to-tail cyclic peptide cannot be written as a protein chain. The maintainers suggest writing the whole cyclic peptide as SMILES (as a small molecule) or defining it in a userCCD. The Server accepts no SMILES, so cyclic peptides need the local version.

Glycosylation and covalent ligands

Locally, define glycans as a multi-CCD ligand plus bondedAtomPairs; see the official examples/rnaseb_glycosylated.json. Except for glycans, leaving atoms of covalent ligands are not removed automatically; delete them after prediction and check bond lengths at the linkage.

Nucleic acid-protein complexes

Double-stranded DNA is entered as two chains. Systems with many nucleic-acid residues and a large total residue count often show atom clashes; see troubleshooting.

Choice: Windows

Why this stepAF3 only supports Linux, and its maintainers state that WSL is not supported. Windows users need a different runtime environment. The common options are below.

Dual-boot Ubuntu or a separate Linux machine

The most reliable option. The official instructions are based on Ubuntu 22.04, the Docker image is based on Ubuntu 24.04 with CUDA 12.6.3, and the host needs a driver that supports CUDA 12.6. Put the databases on a separate 1 TB SSD.

Your university or institute cluster

Many clusters already provide an AF3 container, parameters and databases. For example, Shanghai Jiao Tong University's Siyuan-1 provides a v3.0.2 Singularity image with configurations for A100 40GB and A800 80GB and staged run scripts. Check your platform's user manual first.

Rent a Linux GPU cloud server

GPU rental platforms in China have community-built AF3 images. For example, one AutoDL image on GitHub requires driver 580 or newer and at least 700 GB free on the data disk (the databases take 627 GB). Download the databases once and keep them on the data disk for later jobs.

Test small systems on a Mac or CPU first

Since v3.0.4, --jax_backend=cpu or mps works for checking that an input JSON is correct; it is not suited to production runs.

Choice: mainland China

These practices come from Chinese community posts and university HPC manuals, and were checked against the official repositories or a second source.

Protenix web server

ByteDance's Protenix Server (protenix-server.com) uses email registration and accepts ligands as SMILES; AlphaFold Server supports neither. Ions still need CCD codes, for example FE2 for ferrous iron. Results are CIF files organised much like AF3 output (CSDN community post).

Protenix locally

When run locally, the weights and MSA do not go through Google. Model weights and CCD files are hosted on Volcengine object storage in Beijing (protenix.tos-cn-beijing.volces.com); protenix_base_default_v1.0.0.pt is 1.48 GB (checked with a HEAD request on 2026-10-10). Protein MSAs are sent to protenix-server.com/api/msa by default (--msa_server_mode protenix, or colabfold), and template search is off by default, so it runs without the 630 GB database. Official memory table: 1,000 tokens peak at 18.2 GB and 59 s; 2,000 tokens at 66.6 GB. A 24 GB card suits systems up to about 1,000 tokens. The current README lists two model generations, protenix-v2 (2026-04-08) and v1.0.0.

University HPC

Besides SJTU's Siyuan-1, the South China University of Technology computing platform provides an AF3 Singularity image on its hpckapok1 and hpckapok2 clusters, with model parameters and databases in shared directories. The job script requests one card on the gpuA800 partition and uses singularity exec --nv to bind your own input and output directories to /root/af_input and /root/af_output. Before deploying anything, search your university's HPC manual for AlphaFold3.

Concepts and judgment

Principle

In a local run, <name>_model.cif in the root folder is the sample with the highest ranking_score. ranking_score = 0.8×ipTM + 0.2×pTM + 0.5×fraction_disordered − 100×has_clash. It only ranks samples within one job.

has_clash = 1 means too many atoms clash. The ranking_score is then reduced by 100, and the model is discarded.

The local output is mmCIF only, with no PDB format; convert with gemmi or a similar tool when needed. The official ipTM thresholds are: above 0.8 reliable, below 0.6 usually a failure, and between 0.6 and 0.8 judge it together with the PAE. Full metric definitions and common misreadings are in How to read AlphaFold results.

Principle

The Server and a local run use the same model parameters, so the difference mostly comes from the MSA.

When the Server runs Jackhmmer on a sharded database, it does not set --domZ. That is equivalent to loosening --domE by about 100 times, so some inputs get a deeper MSA.

In issue #492, the same protein–DNA complex gave ipTM 0.86 on the Server and 0.1 locally. After the local run used the Server’s MSA, the two results matched.

Principle

AF2-multimer predicts only protein chains. AF3 adds nucleic acids, ligands, ions and modifications, and its protein complexes are also more accurate.

AF3 generates low-confidence false helices in disordered regions, while AF2 usually outputs band-like structures there.

When you only need protein complexes and GPU memory is limited, ColabFold’s AF2-multimer has the lowest deployment cost.

Principle

AF3 outputs the ligand binding position directly, so it is itself a prediction of the binding mode. The paper reports that it clearly outperforms Vina on the PoseBusters benchmark.

AF3 tends to predict the single conformation that is common in the PDB. For example, for cereblon it gives only the closed state for both apo and holo, so it cannot replace conformational sampling.

The chirality error rate is 4.4%. Before a ligand structure is used for later docking scoring or molecular dynamics, check the chiral centres, bond lengths and clashes.

Reference and appendix

Reference

The figures below come from the AlphaFold Server FAQ. Tutorials from 2024 that cite 10 or 20 jobs per day and a fixed list of 19 ligands are out of date.

Signing in to the Server requires a Google account, and Google services are usually not directly reachable from networks in mainland China. If the Server is not an option, use local AF3, an AF3 installation on your university cluster (for example, Shanghai Jiao Tong University's Siyuan-1 provides a v3.0.2 container and shared parameters), or one of the open-source models above.

ItemCurrent rule
Daily quota30 jobs per day; when the quota is used up you can save a draft and submit it after the quota refreshes
Job size5,000 tokens. 1 token per protein residue, 1 per DNA/RNA base, 1 per ligand atom, 1 per ion; modified residues count all their atoms; glycans count per atom
Minimum chain lengthEach protein and nucleic acid chain needs at least 4 residues or bases
Ligands19 common ligands can be picked from a list; for others add a “CCD Code” entity and enter a 1–5 character CCD code (dictionary version 2024_10_28), up to 50 copies per ligand; SMILES cannot be entered
Ions10 ions: Ca²⁺, Co²⁺, Cu²⁺, Fe³⁺, K⁺, Mg²⁺, Mn²⁺, Na⁺, Zn²⁺, Cl⁻
GlycosylationAttach to N, S or T; residues limited to BGC, BMA, GLC, MAN, NAG (plus FUC on S/T); up to 8 glycan residues per glycan; glycosidic bond atoms cannot be specified
Not predictedWater and hydrogen atoms; no awareness of membrane planes; non-standard amino acid codes B, J, O, U, X
Output5 samples per seed; the zip contains mmCIF and confidence JSON for every sample, job_request.json, paired and unpaired MSAs and up to 4 templates
BatchesJSON upload with up to 100 jobs per file; up to 500 saved drafts

Reference

A batch upload uses the structure below. The top level must be a list, and ligands and modifications carry the CCD_ prefix.

Server-dialect JSON (top level must be a list; ligands and modifications use the CCD_ prefix)json
[
  {
    "name": "kinase_atp_mg",
    "modelSeeds": [],
    "sequences": [
      {
        "proteinChain": {
          "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAPILSRVGDGTQDNLSGAEKAVQVKVKALPDAQ",
          "count": 1,
          "modifications": [{"ptmType": "CCD_SEP", "ptmPosition": 13}],
          "glycans": [{"residues": "NAG(NAG)", "position": 47}]
        }
      },
      {"ligand": {"ligand": "CCD_ATP", "count": 1}},
      {"ion": {"ion": "MG", "count": 2}}
    ],
    "dialect": "alphafoldserver",
    "version": 1
  }
]

Reference

These are results reported by users in GitHub issues, each from one or a few people. Where the conditions differ from your machine, treat them as order-of-magnitude references.

GPU and settingsSystemReported resultSource
RTX 4090 24GB, defaults, 300 W power limitOfficial 2PV7 example (homodimer, 2×298 residues)Jackhmmer ~6 min, Hmmsearch ~3.5 min, GPU inference ~90 sIssue #9 (user report)
RTX 3090 24GB, defaults2PV799.6 s inference per seedIssue #9 (user report)
RTX 4090, defaults3 chains, ~800 residues in total; three copies of that trimer (~2,400 residues)Both completed; the former essentially matched the Server resultIssue #9 (user report)
RTX 4090, --flash_attention_implementation=xlaLarge complex (size not stated)Completed, ~1 hour of inference, slowed by the xla implementationIssue #9 (user report)
RTX 3090, 4090, A100 40GB/80GB2PV7ranking_score 0.67 on all of them, matching A100; compute capability 7.x cards gave -99 in the same testIssue #59 (user report, ETH cluster)
Quadro P3000 6GB laptop (compute capability 6.1)167–334 tokens150–190 s per seed below 256 tokens; 618 s at 334 tokensIssue #59 (user report)

Troubleshooting

Items fall into three groups: runtime errors, installation and download problems, and problems with the Server and results. Each item gives the symptom, the cause and the fix.

RESOURCE_EXHAUSTED / CUDA_ERROR_OUT_OF_MEMORY

Cause: Token count exceeds GPU memory

Fix: Enable unified memory (see the code below); on multi-GPU machines pin one GPU with --gpus device=0; under WSL, switch to native Linux

# Not enough GPU memory (A100 40GB, 24 GB consumer cards) or more than 5,120 tokens: enable unified memory
export XLA_PYTHON_CLIENT_PREALLOCATE=false
export TF_FORCE_UNIFIED_MEMORY=true
export XLA_CLIENT_MEM_FRACTION=3.2
# On A100 40GB, also change pair_transition_shard_spec in model_config.py to:
#   (2048, None), (3072, 1024), (None, 512)
Structure looks like a random coil, ranking score ≤ -99

Cause: GPU compute capability 7.x

Fix: Set XLA_FLAGS=--xla_disable_hlo_passes=custom-kernel-fusion-rewriter and add --flash_attention_implementation=xla

# Compute capability 7.x (V100, RTX 20 series, Titan RTX, Quadro RTX): both settings are required, otherwise structures look random
export XLA_FLAGS="--xla_disable_hlo_passes=custom-kernel-fusion-rewriter"
python run_alphafold.py ... --flash_attention_implementation=xla

# In Docker pass them with -e, e.g. docker run -e XLA_FLAGS="..." -e TF_FORCE_UNIFIED_MEMORY=true ...
implementation='triton' is unsupported on this GPU generation

Cause: GPUs below compute capability 8.0 do not support Triton flash attention

Fix: Add --flash_attention_implementation=xla

ptxas fatal: Unsupported .version 8.4; current version is '8.3'

Cause: The CUDA toolchain from conda or the system is older than JAX needs

Fix: Reinstall following the JAX instructions, or use Docker

unsupported version: 2, expected 1

Cause: Outdated code or a third-party fork

Fix: Update to the current release; versions 1–4 are supported

Protein ptms must not contain the "CCD_" prefix

Cause: Server-dialect modification codes used in a local JSON

Fix: Remove the CCD_ prefix

Multiple models matched

Cause: More than one model file in the parameter directory

Fix: Keep only af3.bin.zst

A local run reports “AlphaFold Server input JSON has unsupported version: 3, expected 1” when it reads the job_request.json downloaded from the Server

Cause: The Server’s job_request.json says "version": 3, while the local reader requires version 1 (measured on this page)

Fix: Change "version" in the file to 1. It can then be read (measured on this page, AF3 repository version 2026-10-09).

Error: “Specifying glycans in the `alphafoldserver` format is not supported”

Cause: A Server-dialect JSON with glycans cannot be used directly by the local version

Fix: Rewrite the glycans in the local dialect (see choices: write the input JSON for a local AF3 run), or follow the official examples/rnaseb_glycosylated.json.

Error: “IDs must be upper case letters”

Cause: A chain ID was written in lower case

Fix: Change the chain ID to upper case. Write repeated copies as a list, for example ["C", "D"].

Error: “Input must have one rng seed to set multiple seeds”

Cause: In a staged run, modelSeeds in fold_input.json has several values, and --num_seeds is also used

Fix: Keep one value in modelSeeds, for example [1], and let the --num_seeds argument set the number of seeds.

Error: “Bond ... involves an unsupported SMILES ligand”

Cause: A SMILES ligand has no atom names, so it cannot appear in bondedAtomPairs

Fix: Use a CCD code for the covalent ligand, or define a custom component with userCCD.

Error: “Failed to construct RDKit reference structure”

Cause: RDKit did not generate a reference conformer for this ligand

Fix: Raise --conformer_max_iterations, or give ideal coordinates in userCCD.

nvidia-smi shows about 23 GB in use, so the GPU looks almost full

Cause: The Docker image sets XLA_CLIENT_MEM_FRACTION=0.95 by default, so it reserves 95% of GPU memory at start-up

Fix: This number cannot be used to estimate how large a system can run. Whether a run succeeds depends on whether it reports a memory error.

Only one card works on a multi-GPU machine

Cause: AF3 uses one GPU per inference, and more cards do not speed up a single input

Fix: Use --gpu_device to choose the card. To run in parallel, run several inputs, each process pinned to one card.

Runs become unstable after unified memory is turned on, on a 4090

Cause: Some users reported in 2024 that unified memory was unstable on the 4090 (issues #209 and #213)

Fix: First rule out WSL and beta drivers, then decide whether unified memory is the cause.

Repeated memory errors when running a 4090 under WSL

Cause: AF3 does not support WSL, and the maintainers recommend native Linux (issue #209)

Fix: Run on native Linux. See choices: how Windows users can run AF3.

NotImplementedError: Not supported on gpu. (Tokamax gated_linear_unit)

Cause: Some backends lack this kernel

Fix: Safe to ignore; another implementation is used automatically

Opaque errors from the MSA tools

Cause: Insufficient permissions on the database directory

Fix: chmod 755 --recursive the database directory

docker build is slow and the image is huge

Cause: Databases or parameters inside the repository directory

Fix: Move them out and rebuild

No file descriptors available (os error 24)

Cause: Low default file descriptor limit on RHEL/Rocky/AlmaLinux

Fix: Add --ulimit nofile=65535:65535 to docker build

“docker run” fails with permission denied or Cannot connect to the Docker daemon

Cause: The Docker service is not running, or the current user is not in the docker group

Fix: Run sudo systemctl start docker, then sudo usermod -aG docker $USER, and sign in again.

When building the image in mainland China, Python dependency installation times out, or the build stops at step 14/15 (abseil-cpp)

Cause: The build downloads source packages such as abseil-cpp, pybind11 and libcifpp from GitHub or GitLab, which fail on some networks (a CSDN post)

Fix: Build once on a machine with good network access, export with docker save, then load on the target machine with docker load.

In a conda environment: “DNN library initialization failed”

Cause: The maintainers attribute this to a JAX or CUDA installation problem

Fix: Reinstall following the official JAX instructions, or use Docker.

Old tutorial commands fail: pip install -r dev-requirements.txt, or installation with Python 3.11

Cause: dev-requirements.txt no longer exists in the repository, and pyproject.toml requires Python 3.12 or newer

Fix: Create the environment with uv venv --python 3.12 and follow the non-Docker route, or use Docker.

Even uv run run_alphafold.py --help fails with FileNotFoundError (chemical_component_sets.msgpack)

Cause: The chemical component data generation step was not run

Fix: Run uv run build_data in the virtual environment, then run uv run python run_alphafold_data_test.py to self-check.

On the non-Docker route, pip install . fails while compiling the C++ extensions

Cause: libcifpp needs GCC 11 or newer; versions below 9.4 cannot compile it (a Qiita record)

Fix: Install gcc and gxx 12.4.0 and cmake 3.30.2 from conda-forge, add pybind11, then run pip install --no-deps . (a CSDN post). If the GitHub clone is slow, use the gitcode mirror.

On macOS, --jax_backend=mps gives a wrong structure, and the log shows no error

Cause: mps is the experimental path marked by the official project. Measured on this page (2026-10-10, macOS arm64, barnase–barstar, 199 tokens): the CPU backend gave ipTM 0.93–0.94 and DockQ 0.97–0.98 in 2,709 s; the mps backend gave ipTM 0.17 and DockQ 0.03–0.15 in 778 s

Fix: Before use, compare with CPU results on one system that has an experimental structure.

The database download breaks midway, and each file must be downloaded again from the start

Cause: The official fetch_databases.sh uses wget to download and extract at the same time, has no resume, and downloads 9 files in parallel. The official 45-minute figure was measured on a GCP machine

Fix: First download the .zst files resumably with aria2c -c or wget -c, then extract them one by one. Code is in the choice “download the databases”.

With the databases on network storage such as NFS, parallel jobs become slow or fail

Cause: The maintainers’ view in issue #452

Fix: Put the databases on a local SSD. On a multi-core machine, shard them with shard_databases.sh and place the shards on an SSD or an in-memory file system.

alphafoldserver.com does not open, or you cannot sign in with a Google account

Cause: The Server depends on Google services, which usually cannot be reached directly from mainland China

Fix: Use AF3 deployed on a university supercomputer, run it locally, or use an open-source model that runs locally, such as Boltz, Chai-1 or Protenix. See the choices section.

The local ipTM or structure does not match the Server

Cause: The two sides use different MSAs. The Server’s Jackhmmer loosens the search threshold, so some inputs get a deeper MSA (see the principle section)

Fix: Work through the choice “what to do when local and Server results differ”. Using the Server’s MSA directly is the simplest option.

A peptide chain has a very low pTM, for example 0.03

Cause: The TM-score formula scales short chains, so pTM is lowered for chains shorter than 16 residues

Fix: Judge peptide binding from the inter-chain PAE and the peptide’s pLDDT, not from the pTM.

The protenix pred command does not match the README, or cannot be found

Cause: When a pip mirror such as Tsinghua is configured, the protenix version on the mirror may lag behind GitHub

Fix: Use the official index temporarily: pip install --upgrade protenix --index-url https://pypi.org/simple.

References

FAQ

What if AlphaFold Server will not load?

The Server requires signing in with a Google account, and Google services are usually not directly reachable from networks in mainland China. Alternatives: install AF3 locally on a Linux GPU server, use an AF3 installation on your university cluster, or use an open-source model that runs locally, such as Boltz, Chai-1 or Protenix.

Do I still need to request AlphaFold 3 model parameters?

No. Since 23 July 2026 the official repository offers a direct download from storage.googleapis.com/alphafold3/af3.bin.zst; put it in its own parameter directory without unpacking. Tutorials describing a request form and a wait of 2–5 business days are out of date.

How large a system can an RTX 4090 handle?

There is no official limit. In GitHub issues one user completed a trimer of about 2,400 residues on a 4090 with default settings, and another needed the xla attention implementation for a larger complex, with about 1 hour of inference. The roughly 23 GB shown as in use comes from preallocation and cannot be used to estimate headroom.

Can AlphaFold 3 be installed on Windows?

Only Linux is supported; the maintainers state that WSL is not supported and attribute WSL memory errors to it. Practical options are dual-booting Ubuntu, using a university cluster or renting a Linux GPU cloud server. Since v3.0.4 small systems can be tested on macOS using the CPU or the Apple Silicon GPU.

Can I enter my own small molecule as SMILES on AlphaFold Server?

No. The Server only accepts codes from the PDB Chemical Component Dictionary (version 2024_10_28). Molecules not in the dictionary, or molecules that must be covalently linked to the protein, need the smiles or userCCD fields of local AF3.

Does AlphaFold 3 use several GPUs automatically?

No. Each input uses one GPU, selected with --gpu_device or CUDA_VISIBLE_DEVICES. On multi-GPU machines run several inputs in parallel, or split the MSA search onto CPU nodes and inference onto GPU nodes.

Hand structure prediction to Scientify

Write down the sequences and the question you want answered. The research agent prepares the input in a cloud computer, rents a GPU as needed to run ColabFold, and assembles structures, a ranking table and PAE plots. The task keeps running after you close your computer. New users get USD 5 of free credit.