Quickstart for AlphaFold2
This Quickstart Guide walks you through pulling the AlphaFold2 NIM container, starting the service, and running your first structure-prediction request. For comprehensive system requirements and verified configurations, refer to Prerequisites.
Prerequisites
Before you start, complete the following prerequisites:
- Install Docker, the NVIDIA Container Toolkit, and the NVIDIA drivers.
- Set up the NGC CLI and NGC registry access.
- Confirm that your system meets the minimum hardware requirements.
For comprehensive system prerequisites and verified configurations, refer to Prerequisites.
Quickstart Steps
To get started with the AlphaFold2 NIM quickly, complete the following steps:
-
Pull the NIM container.
-
Set the required environment variables.
-
Run the NIM container.
This command starts the NIM container and exposes port 8000 so you can interact with the NIM. It pulls the model to the cache at
$LOCAL_NIM_CACHEon the local filesystem.This download can take a very long time (4 to 10 hours on a connection of 100 Mbps or faster).
-
Open a new terminal, leaving the current terminal open with the launched service.
-
Wait until the health check endpoint returns
{"status":"ready"}before proceeding.This can take a couple of minutes. In the new terminal, use the following command to query the health check.
Success Check: When the service is ready, the health check returns
{"status":"ready"}. -
Run inference to get a predicted protein structure for an amino acid sequence.
To use the MMSeqs2 GPU-accelerated MSA tool, send the
algorithm=mmseqs2parameter to the API endpoint: -
View the outputs.
Use
catto print the outputs to the command line. -
Format the outputs.
Install
jqto format the JSON (on Linux,apt-get install jq), then visualize the output from the file:Alternatively, pipe the output directly to
jq:
Minimal Code Example
If you prefer to drive the NIM from Python, use this self-contained example to check service health and run an inference request. Install the requests module first with pip install requests.
Next Steps
Now that you have a working setup, explore the following resources in greater detail: