Skip to main content

Installation and Setup

This guide covers the complete installation process for AlphaFold 3 on Linux with NVIDIA GPUs.
AlphaFold 3 requires Linux and does not support other operating systems. Full installation requires up to 1 TB of disk space for genetic databases (SSD storage is recommended).

System Requirements

Hardware Requirements

  • OS: Linux (Ubuntu 22.04 LTS verified)
  • GPU: NVIDIA GPU with Compute Capability 8.0 or greater
    • NVIDIA A100 80 GB (officially supported)
    • NVIDIA H100 80 GB (officially supported)
    • A100 40 GB supported with configuration changes
  • RAM: 64 GB minimum (more recommended for deep MSAs)
  • Storage: Up to 1 TB for genetic databases (SSD recommended)
  • CUDA: Version 12.6 or higher

Supported Input Sizes

We have verified that inputs with up to 5,120 tokens can fit on a single NVIDIA A100 80 GB or H100 80 GB. Numerical accuracy has been verified on both GPU types.

Installation Steps Overview

1

Provision a Linux machine

Set up Ubuntu 22.04 LTS with NVIDIA GPU
2

Install Docker

Install and configure rootless Docker
3

Install NVIDIA drivers

Set up GPU drivers and container toolkit
4

Download AlphaFold 3 source

Clone the GitHub repository
5

Obtain genetic databases

Download ~630 GB of sequence databases
6

Request model parameters

Get access to AlphaFold 3 weights
7

Build Docker container

Create the AlphaFold 3 container image

1. Provisioning a Machine

Clean Ubuntu images are available on Google Cloud, AWS, Azure, and other major platforms.

Example: Google Cloud Setup

Using an existing Google Cloud project:
You can use a2-highgpu-1g for smaller predictions. Adjust the --zone parameter based on your quota and availability.
This provisions an Ubuntu 22.04 LTS image with:
  • 12 CPUs
  • 170 GB RAM
  • 1 TB disk
  • NVIDIA A100 80 GB GPU

2. Installing Docker

These instructions are for rootless Docker on Ubuntu 22.04 LTS.

Add Docker’s Official GPG Key

Add Docker Repository

Verify Docker Installation

Enable Rootless Docker

3. Installing GPU Support

Install NVIDIA Drivers

If you see “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver”, reboot the instance with sudo reboot now.
Expected output from nvidia-smi:

Install NVIDIA Container Toolkit

Verify GPU Access in Docker

If this command shows GPU information, your setup is working correctly.

4. Obtaining AlphaFold 3 Source Code

Install git and clone the repository:

5. Obtaining Genetic Databases

This step requires wget and zstd. Install them with:

Download All Databases

AlphaFold 3 requires multiple genetic databases:
  • BFD (small version)
  • MGnify
  • PDB (structures in mmCIF format)
  • PDB seqres
  • UniProt
  • UniRef90
  • NT (nucleotide database)
  • RFam
  • RNACentral
Run the provided download script:
If <DB_DIR> is not specified, databases will be downloaded to $HOME/public_databases.
Important Notes:
  • Total download size: ~252 GB
  • Total unzipped size: ~630 GB
  • Download time: ~45 minutes on fast connections
  • The download directory should NOT be a subdirectory of the AlphaFold 3 repository
  • Ensure full read/write permissions: sudo chmod 755 --recursive <DB_DIR>

Expected Directory Structure

After download, you should have:

Optional: Copy to SSD

For better performance, copy databases to an SSD or RAM-backed filesystem after downloading.

6. Obtaining Model Parameters

See the Obtaining Model Parameters guide for instructions on requesting access to AlphaFold 3 weights. Once granted, download the model parameters to <MODEL_PARAMETERS_DIR> (should NOT be a subdirectory of the AlphaFold 3 repository).

7. Building the Docker Container

Build the AlphaFold 3 Docker image:
This step may take 10-20 minutes depending on your internet connection and system performance.

Running Your First Prediction

Create an input JSON file (e.g., $HOME/af_input/fold_input.json):

Run AlphaFold 3

You may need to create and set permissions for the output directory:

Key Command-Line Flags

  • --run_data_pipeline (default: true) - Run genetic and template search (CPU-only, time consuming)
  • --run_inference (default: true) - Run model inference (requires GPU)
  • --json_path - Path to input JSON file
  • --input_dir - Path to directory of JSON files (alternative to --json_path)
  • --model_dir - Directory containing model parameters
  • --output_dir - Directory for output files
  • --db_dir - Database directory (can be specified multiple times for multiple locations)

View All Flags

Alternative: Singularity Installation

If you prefer Singularity over Docker:
1

Install Singularity

2

Set up local Docker registry

3

Build Singularity image

4

Test GPU access

Run with Singularity

Troubleshooting

Permission Denied Errors

GPU Not Detected

  1. Verify nvidia-smi works on host
  2. Reboot if needed: sudo reboot now
  3. Test GPU in container: docker run --rm --gpus all nvidia/cuda:12.6.0-base-ubuntu22.04 nvidia-smi

Out of Memory

For inputs larger than 5,120 tokens or GPUs with less memory, enable unified memory by setting environment variables in your Dockerfile:

Next Steps

Quick Start Guide

Learn how to run different types of predictions

Input Documentation

Detailed JSON input format specification