AlphaFold2 Prerequisites
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.
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:
Verify that your container runtime supports NVIDIA GPUs by running the following command:
Example output:
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.
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
- Create an account on NGC.
- Generate an API Key.
- Log in to the NVIDIA container registry with your NGC API key:
NGC CLI Tool
- 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:
- Set up your NGC CLI tool locally (you will need your API key for this):
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.
- Log in to NGC with Docker and set the
NGC_API_KEYenvironment variable to pull images:
Then set the NGC_API_KEY variable in your shell:
- 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:
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-smisucceeds). - Generate your NGC API key and confirm
docker login nvcr.iosucceeds. - Confirm the NIM cache directory exists and is readable and writable.
Troubleshoot Prerequisites
If you encounter issues verifying your prerequisites, check these common solutions.
GPU not detected
If no GPU is listed, confirm that the NVIDIA driver (535 or later) is installed and that the host has rebooted since installation.
Container runtime cannot access the GPU
If this fails, confirm the NVIDIA Container Toolkit (1.13.5 or later) is installed and the Docker daemon has been restarted.
Insufficient disk space
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.