Configuring the Boltz-2 NIM
The Boltz-2 NIM uses Docker containers. 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 Boltz-2 NIM container image on NVIDIA Container Registry is nvcr.io/nim/mit/boltz2:<version> (NGC org nim, team mit). Examples on this page use the substituted form nvcr.io/nim/mit/boltz2:1.8.0, which resolves to that path.
The following table describes the environment variables that can be passed into a NIM as a -e argument added to a docker run command:
For additional Boltz-2 tuning variables such as NIM_MODEL_PROFILE, refer to Optimization.
NIM Telemetry
NIM Telemetry collects minimal host and NIM information to help improve performance, reliability, and compatibility across deployments. Collection is disabled by default on RTX GPUs and can be enabled explicitly when you opt in.
NIM_TELEMETRY_MODE
Controls telemetry collection mode.
0— Disables telemetry.1— Enables baseline collection (hardware and NIM information).
Default: 0
NIM_TELEMETRY_ENABLE_ON_RTX
Set to true to allow telemetry collection on RTX GPUs. This setting applies only when NIM_TELEMETRY_MODE is not 0 (for example, when baseline collection is enabled on the deployment).
Default: false
For what is collected, retention, and advanced options, refer to NIM Telemetry Settings and NVIDIA’s Privacy Policy.
Volumes
The following table describes the paths inside the container into which local paths can be mounted.
Logging Configuration
The Boltz-2 NIM provides logging environment variables to control verbosity for different components. You can configure these when starting the container to adjust the level of detail in logs for debugging or production use.
Example: Running with Logging Configuration
The following example shows how to run the NIM with standard logging configuration:
Example: Debug Logging for Troubleshooting
To enable verbose logging for troubleshooting issues, set the log levels to their most detailed settings: