Configuration
The MSA Search NIM uses docker containers under the hood. Each NIM has its own Docker container and there are several ways to configure it. The section below describes how to configure a NIM container.
GPU Selection
By default, Docker can use all available GPUs on the system when it starts with the NVIDIA Container Runtime:
In environments with a combination of GPUs, you can only expose specific GPUs inside the container using either:
- The
--gpusflag. For example,docker run --gpus='"device=1"' ... - The environment variable
NVIDIA_VISIBLE_DEVICES. For example, to expose only Device 1, pass-e NVIDIA_VISIBLE_DEVICES=1. To expose GPU IDs 1 and 4, pass-e NVIDIA_VISIBLE_DEVICES=1,4.
The device IDs to use as inputs are listed in the output of nvidia-smi -L:
Refer to the NVIDIA Container Toolkit documentation for more instructions.
Environment Variables
The following table describes the environment variables that can be passed into a NIM as a -e argument added to a docker run command:
Volumes
The following table describes the paths inside the container into which local paths can be mounted.