Environment Variables for NVIDIA NIM for Object Detection#
Use this documentation to learn about the environment variables for NVIDIA NIM for Object Detection.
To print environment-variable help, including defaults and currently set values, and exit without starting the server, run the container with SHOW_CONFIG=1.
Binary Variables#
Variable |
Default |
Description |
|---|---|---|
|
|
The log output format. Supported values are |
|
|
Selects throughput-oriented values when enabled and latency-oriented values when disabled for unset server and pipeline variables. |
|
|
Sets the tracing log filter. |
|
|
When enabled, prints environment-variable help and exits. |
The unset or false value is equivalent to NIM_PERFORMANCE_MODE=0. When NIM_PERFORMANCE_MODE=1, unset defaults change as follows.
Variable |
|
|
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Explicitly set variables are not overridden by NIM_PERFORMANCE_MODE.
Server Variables#
Variable |
Default |
Description |
|---|---|---|
|
|
The HTTP listen address in |
|
unset |
The optional KServe V2 gRPC listen address in |
|
unset |
The maximum inbound KServe gRPC message size in bytes. Empty uses the effective HTTP body limit. |
|
|
The maximum number of requests in the batcher queue. |
|
|
The maximum time in milliseconds to accumulate requests before dispatching a batch. |
|
|
The per-request timeout in seconds. |
|
unset |
The path to a PEM certificate chain for HTTPS. Must be set together with |
|
unset |
The path to a PEM private key for HTTPS. Must be set together with |
Pipeline Variables#
Variable |
Default |
Description |
|---|---|---|
|
|
The number of engine replicas for the selected object detection model. |
|
|
The maximum number of images per engine forward pass. Supported values are |
|
unset |
Enables pipeline timing telemetry when set to true. |
|
|
Enables GPU image preprocessing when set to true. |
|
unset |
Enables VRAM telemetry when set to true. |
|
|
The server scheduling mode. Supported values are |
Engine Variables#
Variable |
Default |
Description |
|---|---|---|
|
unset |
Token required for Hugging Face model download. When the provider is |
|
unset |
API key required for NGC model download. When the provider is |
|
unset |
CUDA graph capture mode. When unset, the runtime falls back to |
|
unset |
Comma-separated batch sizes for CUDA graph capture. Overrides |
|
unset |
CUDA-visible device ordinal used by the runtime. Unset uses visible device |
|
|
Downloads model artifacts and exits before CUDA warmup or server startup. |
|
|
Model download provider. Supported values are |
|
|
Model ID to load. The NIM container loads this Page Elements model by default. To load Table Structure, set this variable to |
|
|
In-container model artifact path for the selected model. The NIM container uses this Page Elements path by default. To switch models, set this variable explicitly together with |
|
|
Inference precision. Use |
|
unset |
Root directory for precompiled cuDNN plans and kernel cubins. |
|
|
Precompiles runtime artifacts and exits before the server starts. |
|
unset |
Startup warmup mode. When unset, the runtime falls back to |
|
unset |
Comma-separated batch sizes to warm up. Overrides |
With NIM_ENGINE_MODEL_DOWNLOAD_PROVIDER=auto, the runtime selects Hugging Face when HF_TOKEN is set. Otherwise, it selects NGC when NGC_API_KEY is set. If both credentials are set, Hugging Face takes precedence. If neither credential is set and the model artifacts are not already present, model download fails. For explicit selection, use hf with HF_TOKEN or ngc with NGC_API_KEY.
NIM_PIPELINE_MAX_BATCH_SIZE controls the tensor buffer size and therefore GPU memory usage. Changing NIM_ENGINE_WARMUP_MODE or NIM_ENGINE_CUDA_GRAPH_CAPTURE changes startup work and graph coverage, but it does not reduce the tensor buffer allocation.
NIM_ENGINE_WARMUP_MODE=explicit and NIM_ENGINE_CUDA_GRAPH_CAPTURE=partial are not supported. To pin specific batch sizes, use NIM_ENGINE_WARMUP_SHAPES=<sizes> and NIM_ENGINE_CUDA_GRAPH_CAPTURE_SHAPES=<sizes>. Do not set explicit warmup or capture shapes together with NIM_ENGINE_WARMUP_MODE=none.
Compatibility With Previous Releases#
Most environment variables beginning with NIM_TRITON_ are not supported by the 2.0.0 runtime.
For new deployments, update your code to use the current environment variables.
The following deprecated compatibility aliases remain available for migration.
Previous Variable |
Use Instead |
Notes |
|---|---|---|
|
|
Controls the maximum number of images per engine forward pass. |
|
|
Controls the batcher request queue depth. |
|
|
Controls the number of engine replicas for the selected model. |
|
|
Controls the request batching wait window in milliseconds. The 2.0.0 runtime interprets |
|
|
Controls the per-request timeout in seconds. |
|
|
Enables timing telemetry logs. |
|
|
Controls the model artifact path. |
The 2.0.0 runtime rejects the removed NIM_ENGINE_CUDA_DEVICE and NIM_ENGINE_CUDA_DEVICES variables at startup. Use NIM_ENGINE_DEVICES instead.
Other NIM_TRITON_* variables, including Triton model-control, memory-pool, GPU-decoding, asynchronous execution, flush-interval, idle-bytes, and rate-limit settings, do not configure this runtime.