Written and maintained by CASRAI Editorial Board
Published · Last updated
On this page
AlphaFold 2 is DeepMind’s deep-learning system for predicting a protein’s three-dimensional structure from its amino acid sequence. The open-source release at github.com/google-deepmind/alphafold lets a lab run it locally: you supply a FASTA file, the pipeline searches sequence databases for an alignment and optional templates, and it writes ranked PDB models together with per-residue confidence values. The repository describes a Linux-only, Docker-based installation that needs a modern NVIDIA GPU and, for the full databases, up to 3 TB of disk. This guide covers what the software does, how to install and run it as documented, how to read each output file, and which free alternatives suit labs without that hardware. If you only need a precomputed structure, use the AlphaFold Database instead (see the free alternatives below).
What AlphaFold 2 is used for in research
Researchers use AlphaFold 2 to obtain a structural hypothesis for a protein or complex when no experimental structure exists, for example to plan mutagenesis, to interpret a variant, to prepare a construct for crystallisation, or to generate a starting model for docking or molecular dynamics simulation. The method was described by Jumper et al. in Nature 2021 (596:583-589, doi 10.1038/s41586-021-03819-2). On the 87 domains assessed in the CASP14 blind-prediction exercise it reached a median backbone accuracy of 0.96 Å r.m.s.d.95 (95% confidence interval 0.85-1.16 Å), against 2.8 Å for the next best method, and 1.5 Å all-atom accuracy (1.2-1.6 Å) against 3.5 Å.
How the model works, in one paragraph
The inputs are the target sequence, a multiple sequence alignment (MSA) built with jackhmmer and HHBlits, and structural templates. The network, called the Evoformer, processes MSA and pairwise representations together; a structure module based on invariant point attention then builds atom coordinates, and the result is fed back through the network by recycling. The paper lists UniRef90, BFD, Uniclust30 and MGnify among the sequence databases used. The practical consequence is that prediction quality depends on the alignment: the databases you download are part of the method, not an optional extra.
What it is not
The repository states that the output is for theoretical modeling only and that the project is not an officially supported Google product. A predicted model is not an experimental structure; the confidence values described below tell you which regions to trust. The code is released under the Apache 2.0 licence and the model parameters under CC BY 4.0.
AlphaFold 2.0 and AlphaFold 2: the same system
Searches for “alphafold 2.0” and “alphafold 2” refer to the second-generation system published in 2021, as opposed to the 2018 CASP13 entry. This page follows the current repository README; check the repository’s release notes for any later changes to flags or databases before you build.
How to install or access it
The official repository documents one supported route, Docker, and states that it provides no non-Docker procedure; it points to third-party Singularity setups discussed in the repository’s issues (#10 and #24) for clusters that do not allow Docker.
Requirements
- Linux operating system.
- A modern NVIDIA GPU, with Docker and the NVIDIA Container Toolkit installed.
- Disk space for the genetic databases: about 556 GB to download and 2.62 TB unzipped for the full set. The README quotes up to 3 TB in total.
- For the reduced-database configuration the README lists 8 vCPU, 8 GB RAM and 600 GB of disk; its tested machine had 12 vCPU, 85 GB RAM and an A100 GPU.
Step 1: clone the code and download the data
Clone the repository and run the download script, keeping the download directory outside the repository folder (the README redirects the script’s output to log files and runs it in the background, because the download is long):
git clone https://github.com/deepmind/alphafold.git
scripts/download_all_data.sh $DOWNLOAD_DIR
Add reduced_dbs as the second argument to download the smaller database set. The size difference is large because the BFD database alone is about 1.8 TB, against about 17 GB for the small_bfd used in reduced mode; UniRef30 is about 206 GB.
Step 2: build the container
docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
docker build -f docker/Dockerfile -t alphafold .
pip3 install -r docker/requirements.txt
The first command confirms that Docker can see the GPU; the second builds the image; the third installs the Python dependencies of the launcher script.
Run a prediction (step by step)
- Prepare a FASTA file containing one sequence per protein (for example
monomer.fasta). - Choose a
--max_template_date. Templates released after this date are ignored, which is how you prevent a known structure from leaking into a benchmark. - Choose a
--model_presetand a--db_presetfrom the tables below. - Run the launcher with an absolute output path.
python3 docker/run_docker.py --fasta_paths=monomer.fasta --max_template_date=2021-11-01 --model_preset=monomer --data_dir=$DOWNLOAD_DIR --output_dir=/abs/path
Flags that matter
--fasta_paths: the input FASTA file or files.--max_template_date: the template cut-off date.--model_preset:monomer,monomer_casp14,monomer_ptmormultimer.--db_preset:reduced_dbsorfull_dbs.--data_dir: where the databases were downloaded.--output_dir: where results are written (absolute path).
Choosing a model preset
| Preset | Use it when | What changes in the output |
|---|---|---|
monomer |
One chain; the default case. | pLDDT per residue; no PAE. |
monomer_casp14 |
You want the configuration used in the CASP14 assessment. | pLDDT per residue; no PAE. |
monomer_ptm |
You need the predicted aligned error between residues. | Adds ptm and predicted_aligned_error to the result pickles. |
multimer |
Several chains in one FASTA (a complex). | Complex model with pTM-based confidence. |
Output and how to read it
Each run writes a folder under the output directory containing ranked models and supporting files. The model files are plain PDB format and open in PyMOL or any other viewer.
| File | What it holds |
|---|---|
ranked_0.pdb to ranked_4.pdb |
The five models ordered by confidence; ranked_0 is the best. |
unrelaxed_model_*.pdb, relaxed_model_*.pdb |
Raw network output and the same models after energy relaxation. |
ranking_debug.json |
The confidence scores used to rank the models. |
result_model_*.pkl |
Python pickles with pLDDT, plus ptm and predicted_aligned_error for pTM models. |
features.pkl |
The input features (alignment and template features) built by the pipeline. |
timings.json |
Wall-clock time for each stage of the run. |
pLDDT, and the B-factor trap
pLDDT is a per-residue confidence on a 0-100 scale, where higher is better. In the PDB files it is written into the B-factor column, which reverses the usual reading: in an experimental structure a high B-factor means high mobility, but here a high value means high confidence. If you colour a model by B-factor in a viewer, colour high values as confident. In the Nature paper pLDDT tracked the true lDDT-Cα with a Pearson correlation of 0.76 on the CASP14 targets, so it is a useful guide to local reliability, not a guarantee. The confidence bands are explained in the AlphaFold Database guide linked below.
Predicted aligned error (PAE)
PAE appears only for pTM models. Lower values mean the relative position of two residues is predicted more confidently, and 0 is the most confident value. Use PAE, not pLDDT alone, to judge whether two domains are positioned correctly relative to each other: two well-folded domains can each have high pLDDT while their orientation remains uncertain.
Troubleshooting
The container cannot see the GPU
Run the nvidia-smi test shown in Step 2 first. If it fails, the problem lies in the NVIDIA driver or the NVIDIA Container Toolkit, not in AlphaFold.
The download runs out of disk
The full set unzips to 2.62 TB. If you do not have that, repeat the download with reduced_dbs and run with --db_preset=reduced_dbs; the two settings must match.
Docker is not permitted on your cluster
The official procedure is Docker only. The repository’s issues #10 and #24 discuss third-party Singularity conversions; these are not maintained by the project, so treat them as unsupported.
Results look unexpectedly accurate on a benchmark
Set --max_template_date earlier than the release date of the experimental structure you are testing against.
Free alternatives
When local hardware is the obstacle, the sibling pages on this site cover the lighter routes. The data table below the guide lists the resource figures published for the local installation.
| Route | What it gives you | Guide |
|---|---|---|
| AlphaFold Protein Structure Database | Precomputed models to look up or download; no compute needed. | AlphaFold Database guide |
| ColabFold | AlphaFold-based prediction run through Google Colab with MMseqs2 alignments. | ColabFold guide |
| ESMFold | A language-model predictor that does not build an MSA. | ESMFold guide |
| SWISS-MODEL | Homology modelling from templates. | SWISS-MODEL guide |
Frequently asked questions
What is AlphaFold 2.0?
It is the common way of naming the second-generation AlphaFold system described by Jumper et al. in Nature in 2021. The code you run today is the open-source repository at github.com/google-deepmind/alphafold.
Can I run AlphaFold 2 without a GPU?
The README lists a modern NVIDIA GPU as a requirement. For a lab without one, use the precomputed database or a hosted route such as ColabFold.
How much disk space does it need?
About 556 GB to download and 2.62 TB unzipped for the full databases; the reduced set needs about 600 GB.
Is AlphaFold 2 free to use?
The code is Apache 2.0 licensed and the model parameters are CC BY 4.0, as stated in the repository.
Sources
- google-deepmind/alphafold README, https://github.com/google-deepmind/alphafold (read 2026-11-15).
- Jumper J. et al. Highly accurate protein structure prediction with AlphaFold. Nature 596(7873):583-589 (2021), doi 10.1038/s41586-021-03819-2, open-access copy PMC8371605 (read 2026-11-15).
Data: AlphaFold 2 local installation: database sizes and hardware figures from the official README
Compiled from the google-deepmind/alphafold README: download and unzipped sizes of the full database set, individual database sizes, and the hardware stated for the reduced-database configuration.
Period covered: 2026.
| Item | Size or amount (GB) | Note |
|---|---|---|
| Full databases, download | 556 | Compressed download of all data |
| Full databases, unzipped | 2620 | 2.62 TB expressed in GB |
| BFD (full) | 1800 | About 1.8 TB |
| small_bfd (reduced_dbs) | 17 | Used with reduced_dbs |
| UniRef30 | 206 | Sequence database |
| Reduced configuration disk | 600 | With 8 vCPU and 8 GB RAM |
Sources
- google-deepmind/alphafold README (accessed 2026-11-15)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







