Configure The NIM at Runtime
GPU Selection
On a system with a single NVIDIA GPU, you can use the --gpus device=0 option in docker command to start the service.
In heterogeneous environments with a combination of GPUs, such as L40S and a GeForce display GPU, you should only run workload on the L40S GPU. Use the --gpus device=<GPU ID> option in docker command to start the service.
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.