Quickstart Guide
This guide assumes you have installed and set up all software prerequisites, including Docker authentication, NGC CLI installation, NGC registry access, and creating a location for the NIM model cache.
- Pull the NIM container with the following command.
- Run the NIM container with the following command.
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_CACHE on the local filesystem.
Downloading the AlphaFold2 model can take a very long time, up to 4 to 10 hours on a connection of 100 Mbps or faster. If the docker run command fails due to file permission errors after downloading the AlphaFold2 model, run the following command: sudo chmod -R 777 $LOCAL_NIM_CACHE. Afterward, rerun the NIM using the docker run command.
-
Open a new terminal, leaving the current terminal open with the launched service.
-
In the new terminal, wait until the health check endpoint returns
{"status":"ready"}before proceeding. This can take a couple of minutes. You can use the following command to query the health check.
If you would rather check the NIM’s status with Python, you can use the requests module (after pip install requests):
- Run inference to get a predicted protein structure for an amino acid sequence using the following command.
In Python:
- View the outputs. You can use
catto print the outputs to the command line with the following command.
Install jq to format the JSON. You can use jq to visualize the output from the file (you must install jq; on Linux this can be done using apt-get install jq):
or you can pipe the output directly to jq as in the following command: