Deploy Using Docker
This section describes how to deploy using Docker.
This page assumes you have prepared your environment as detailed in the Getting Started section (see the sections on setting up Docker, NGC CLI, and NGC registry access).
- Pull the MSA Search 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 (2-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
200 OKbefore proceeding. This may take a couple of minutes. You can use the following command to query the health check.
To check the NIM’s status using Python, use the requests module (once installed via pip install requests):
- Run inference to get a multiple sequence alignment for an amino acid sequence. Here is an example using cURL in BASH:
The following is an example, in Python, that demonstrates some of the other arguments available to the NIM:
- View the outputs. You can use the
cattool to print the outputs to the command line as with the following command.
You can also view the output in a text viewer, or pretty-print it using Python’s built-in JSON module:
Advanced Usage
For Advanced Usage of the NIM, see the sections on Optimization and Performance.
For details about available endpoints, see the API Reference section.