Configure NIM
This section provides additional details for launching and operating the GenMol NIM container.
View NIM Container Information
Pull the Container Image
Runtime Parameters for the Container
Important parameters:
--runtime=nvidiaenables GPU access for the container.--gpus=allexposes GPUs to the NVIDIA runtime.NVIDIA_VISIBLE_DEVICES=0restricts a container instance to one GPU.NGC_API_KEYauthenticates model asset downloads from NGC.NIM_HTTP_API_PORT=8000sets the service port inside the container.-v "$LOCAL_NIM_CACHE:/opt/nim/.cache"persists model artifacts across restarts.-p 8000:8000publishes the service port to the host.
Run Multiple Instances on the Same Host
Each container instance should be pinned to a different GPU and a different host port.
Model Checkpoint Caching
On initial startup, the container downloads model assets from NGC. To avoid repeated downloads, create and mount a persistent cache directory:
Environment Variables
The following environment variables can be passed as -e arguments to docker run:
Volumes
Logging
The following examples show how to start the container with different logging levels.