Quickstart Guide
This page assumes you have installed and set up Prerequisite Software (Docker, NGC CLI, NGC registry access).
- Pull the NIM container with the following command.
- Run the NIM container with the following command.
This command will start the NIM container and expose port 8000 for the user to interact with the NIM. It will pull the model to the cache at $LOCAL_NIM_CACHE on the local filesystem. Note: this download can take a very long time (4-10 hours on a 100+Mbps internet connection).
-
Open a new terminal, leaving the current terminal open with the launched service.
-
In the new terminal, wait until the health check end point returns
{"status":"ready"}before proceeding. This may 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 via python, you can use the requests module (once installed via 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 the cat tool print the outputs to the command line as with the following command.
However, we recommend installing jq, a command line tool that can format JSON for improved readability. You can use jq to visualize the output from the file (note, 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: