Skip to navigation

AlphaFold2 Prerequisites

View as MarkdownOpen in Claude

To get started with the AlphaFold2 NIM, you must complete the necessary prerequisites.

Hardware

Verify that your machine meets the following hardware prerequisites.

Compute

The AlphaFold2 NIM is configured to run on a single GPU. To run the AlphaFold2 NIM successfully for small sequences, the following compute specifications are required:

  • CPU: A CPU with at least 24 available cores.
  • GPU: One NVIDIA GPU with at least 32 GB of VRAM and compute capability 8.0 or higher.
  • RAM: At least 64 GB.
  • Storage: At least 1,250 GB of free SSD drive space.

The AlphaFold2 NIM requires at least 1,250 GB of free SSD space to store the MSA databases required by the endpoints it exposes. Runtime expectations are in Performance.

Production Hardware

For optimum performance on long sequences and multiple MSA databases, use the recommended configuration.

ResourceMinimumRecommended
CPU24 cores36+ cores
GPUNVIDIA GPU with at least 32 GB of VRAM, compute capability 8.0 or higherNVIDIA A100 80GB
RAM64 GB128 GB
Storage1,250 GB free SSD1,250 GB free fast NVMe SSD

Software

Install the following software dependencies.

Operating System

The AlphaFold2 NIM runs as a Docker container with NVIDIA GPU access. The NGC CLI setup steps in this guide target AMD64 (x86_64) Linux.

Runtime Dependencies

Begin with Docker Engine, then install the following runtime dependencies at the previously listed minimum versions:

RequirementMinimum VersionInstall
Docker23.0.1Install Docker
NVIDIA Drivers535Install NVIDIA Drivers
NVIDIA Container Toolkit1.13.5Install the NVIDIA Container Toolkit
NGC CLI3.41.1Download the NGC CLI tool

Verify that your container runtime supports NVIDIA GPUs by running the following command:

docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi

Example output:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01 Driver Version: 525.78.01 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:01:00.0 Off | N/A |
| 41% 30C P8 1W / 260W | 2244MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
+-----------------------------------------------------------------------------+

For more information on enumerating multi-GPU systems, refer to the NVIDIA Container Toolkit GPU enumeration topic.

Verified Configurations

The AlphaFold2 NIM is supported on the following configurations.

Operating SystemArchitectureGPUStatus
Linuxx86_64NVIDIA A100 80GBSupported
Linuxx86_64NVIDIA GPU with at least 32 GB of VRAM, compute capability 8.0 or higherSupported

Network Access

The AlphaFold2 NIM pulls its container image and model weights from NVIDIA NGC, so the host needs outbound network access to nvcr.io and an NGC account.

External API Service Access

Complete the following NGC setup to gain the access the NIM needs.

NGC (NVIDIA GPU Cloud) account

  1. Create an account on NGC.
  2. Generate an API Key.
  3. Log in to the NVIDIA container registry with your NGC API key:
docker login nvcr.io --username='$oauthtoken' --password=${NGC_API_KEY}

NGC CLI Tool

  1. Download the NGC CLI tool for your OS.

Use NGC CLI version 3.41.1 or newer. Here is the command to install this on AMD64 Linux in your home directory:

wget --content-disposition https://api.ngc.nvidia.com/v2/resources/nvidia/ngc-apps/ngc_cli/versions/3.41.3/files/ngccli_linux.zip -O ~/ngccli_linux.zip && \
unzip ~/ngccli_linux.zip -d ~/ngc && \
chmod u+x ~/ngc/ngc-cli/ngc && \
echo "export PATH=\"\$PATH:~/ngc/ngc-cli\"" >> ~/.bash_profile && source ~/.bash_profile
  1. Set up your NGC CLI tool locally (you will need your API key for this):
ngc config set

After you enter your API key, you might see multiple options for the org and team. Select as desired or press Enter to accept the default.

  1. Log in to NGC with Docker and set the NGC_API_KEY environment variable to pull images:
docker login nvcr.io
Username: $oauthtoken
Password: <Enter your NGC key here>

Then set the NGC_API_KEY variable in your shell:

export NGC_API_KEY=<Enter your NGC key here>
  1. Set up your NIM cache.

The NIM cache allows you to download models and store previously-downloaded models so that you do not need to download them again later when you run the NIM again. The NIM cache must be readable and writable by the NIM, so in addition to creating the directory, the permissions on this directory need to be set to globally readable and writable. Set up the NIM cache directory as follows:

## Create the NIM cache directory
mkdir -p ~/.cache/nim
## Set the NIM cache directory permissions to the correct values
chmod -R 777 ~/.cache/nim

Pre-Installation Checklist

Review the following checklist before deploying the AlphaFold2 NIM:

  • Confirm one NVIDIA GPU with at least 32 GB of VRAM and compute capability 8.0 or higher is available.
  • Confirm at least 64 GB of RAM is available.
  • Confirm at least 24 CPU cores are available.
  • Confirm at least 1,250 GB of free SSD space is available.
  • Confirm Docker 23.0.1 or later, NVIDIA Driver 535 or later, and NVIDIA Container Toolkit 1.13.5 or later are installed.
  • Confirm the container runtime can see the GPU (docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi succeeds).
  • Generate your NGC API key and confirm docker login nvcr.io succeeds.
  • Confirm the NIM cache directory exists and is readable and writable.

Troubleshoot Prerequisites

If you encounter issues verifying your prerequisites, check these common solutions.

# Check that the driver can see each required GPU
nvidia-smi

If no GPU is listed, confirm that the NVIDIA driver (535 or later) is installed and that the host has rebooted since installation.

# Confirm the container runtime exposes the GPU to containers
docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi

If this fails, confirm the NVIDIA Container Toolkit (1.13.5 or later) is installed and the Docker daemon has been restarted.

# Check available disk space on the NIM cache volume
df -h ~/.cache/nim

The AlphaFold2 NIM requires at least 1,250 GB of free SSD space for the MSA databases. Free space or point the NIM cache at a larger volume.

Next Steps

When your prerequisites are in place, you are ready to pull the container and download the model. To get started, refer to the Quickstart Guide.