Quickstart for MolMIM
This Quickstart Guide walks you through pulling the MolMIM NIM container, launching the service, and running your first inference request. For comprehensive system requirements and verified configurations, refer to the Support Matrix.
Prerequisites
Before you begin, review the following prerequisites.
This page assumes you have installed and set up Prerequisite Software (Docker, NGC CLI, NGC registry access).
Quickstart Steps
To quickly get started with the MolMIM NIM, complete the following steps.
Launch the MolMIM NIM
Complete the following steps to launch the NIM:
-
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 for the user to interact with the NIM.
-
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, you can use the following command to query the health check.
Run Inference
Complete the following steps to run inference:
-
Run inference to get the embeddings of a molecule from its SMILES string representation and save the output to output.json using the following command.
-
View the outputs.
You can use the
cattool to print the outputs to the command line as with the following command. -
Format the outputs.
We recommend installing
jq, a command-line tool that can format JSON for improved readability. You can usejqto visualize the output from the file:or you can pipe the output directly to
jqas in the following command:
Next Steps
Now that you have a working setup, explore the following resources in greater detail: