Environment Variables for NVIDIA NeMo Retriever Reranking NIM#
Use this documentation to learn about the environment variables for NVIDIA NeMo Retriever Reranking NIM.
Binary Environment Variables#
The following table contains the binary environment variables.
Name |
Default |
Description |
|---|---|---|
|
Pretty |
The log emit format. One of: pretty, json, compact. |
|
false |
Determines whether to optimize for latency or throughput. Selects latency-oriented ( |
|
error |
The tracing EnvFilter. |
|
false |
True to print env-var help and exit. |
Server Environment Variables#
The following table contains the server environment variables.
Name |
Default |
Description |
|---|---|---|
|
0.0.0.0:8000 |
The HTTP listen address (host:port). |
|
- |
The optional KServe V2 gRPC listen address (host:port). Empty disables gRPC. |
|
- |
The maximum inbound KServe gRPC message size in bytes. Empty uses the effective HTTP body limit. |
|
1024 |
The maximum queued rerank requests waiting for pipeline capacity. Requests beyond this depth are rejected immediately with HTTP 503 on the HTTP path and gRPC |
|
120 |
The timeout (s) for a single rerank request. |
|
- |
Comma-separated legacy aliases for the API model name, such as |
|
- |
The path to PEM cert chain for HTTPS; empty means no TLS. |
|
- |
The path to PEM private key for HTTPS; empty means no TLS. |
Pipeline Environment Variables#
To limit the load on the NIM, use the following variables:
NIM_SERVER_MAX_QUEUE_SIZE: limits the number of requests waiting in the queue.NIM_PIPELINE_MAX_BATCH_SIZE: limits the number of passages in each GPU batch.NIM_PIPELINE_MAX_BATCH_TOKENS: limits the number of tokens in each GPU batch.0turns off the limit.
The following table contains the pipeline environment variables.
Name |
Default |
Description |
|---|---|---|
|
1 |
The number of GPUs to use, starting at GPU |
|
- |
A comma-separated list of GPU IDs, such as |
|
0 |
The number of engines on each GPU. |
|
1 |
The max passages per engine forward pass. When unset, |
|
10240 |
The maximum length, in tokens, of each query and passage pair. The container sets |
Engine Environment Variables#
The following table contains the engine environment variables.
Name |
Default |
Description |
|---|---|---|
|
- |
The Hugging Face token for model download. Passed through to the model downloader. For details, refer to Get Started With NVIDIA NeMo Retriever Reranking NIM. |
|
- |
The NGC API key for model download when |
|
false |
Set to |
|
auto |
The model download provider. Use |
|
nvidia/Nemotron-3.5-Rerank-8B-BF16 |
The checkpoint that the NIM loads. When |
|
/model |
The in-container path for staged model artifacts. The directory must contain artifacts for a supported model. For details, refer to Custom Model Artifact Support in NVIDIA NeMo Retriever Reranking NIM. |
|
fp16 |
The model precision. Use |
|
false |
Compile all CUDA artifacts then exit without starting the server. |