Configure The NIM at Runtime
GPU Selection
You can use the --gpus all argument to docker run in homogeneous environments with one or more of the same GPU. In heterogeneous environments with a combination of GPUs, such as L40S and a GeForce display GPU, you should only run workloads on L40S GPUs. Use the following option to identify specific GPUs:
- The environment variable
CUDA_VISIBLE_DEVICES. For example:-e CUDA_VISIBLE_DEVICES=1.
Use the nvidia-smi -L command to get the device ID(s) to use as input(s). This command should return information similar to the following:
For more information, see NVIDIA Container Toolkit documentation.
Environment Variables
You can pass the following environment variables into a NIM by adding the -e flag to the docker run command.