Getting Started
This section describes how to get the OpenFold3 NIM up and running.
- Pull and run the NIM
- Submit health check requests to the NIM
- Run inference
- Stop the container
This page assumes you have installed and set up Prerequisite Software (Docker, NGC CLI, NGC registry access).
Pull and Run the NIM
- Pull the NIM container.
- Run the NIM container and expose port 8000, to which the user can submit requests.
- Set the
LOCAL_NIM_CACHEenvironment variable to a location on the local filesystem, on a disk with at least 15 GB of space. Initially, the command below downloads model parameter sets to this location. On subsequent executions, the command below checks for the presence of the data, and only repeats the download if the data is not found.
This download is approximately 2.3 GB.
Submit Health-Check Requests to the NIM as It Starts Up
-
Open a new terminal, leaving the current terminal open with the launched service.
-
Submit requests to the health check endpoint until you see
{"object":"health.response","message":"ready","status":"ready"}. The NIM takes less than 3 minutes to start up and download the needed data files.
You can also check the NIM’s status with Python by using the requests module, installed using pip install requests.
When the response, {"object":"health.response","message":"ready","status":"ready"}, appears, the NIM is ready to accept a request with real inputs.
Run Inference
Refer to OpenFold3 NIM Example Requests for an example inference with realistic input.
Stop the Container
When you are done, press Ctrl+C in the terminal running the container, or run docker stop with the container name set by the --name option of the docker run command. Because the command uses --rm, Docker removes the container after it stops.