Environment Variables for NVIDIA NIM for Image OCR (NeMo Retriever OCR)#
Use this documentation to configure NVIDIA NIM for Image OCR (NeMo Retriever OCR).
Binary Environment Variables#
Name |
Default |
Description |
|---|---|---|
|
|
The log output format. One of: |
|
|
True to use throughput-oriented values for unset server and pipeline variables; false to use latency-oriented values. For details, see Select Latency or Throughput Mode. |
|
|
The tracing filter. One of: |
|
|
True to print environment-variable help and exit. |
Server Environment Variables#
Name |
Default |
Description |
|---|---|---|
|
|
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. |
|
|
The maximum number of requests in the batcher queue. |
|
|
The maximum time in milliseconds to accumulate requests before dispatching a batch. Throughput mode changes the default to |
|
|
The request timeout in seconds. |
|
- |
The path to a PEM certificate chain for HTTPS. When set with |
|
- |
The path to a PEM private key for HTTPS. Must be set together with with |
Pipeline Environment Variables#
Name |
Default |
Description |
|---|---|---|
|
|
The number of parallel OCR engine instances. Throughput mode changes the default to |
|
|
The maximum images per engine. Throughput mode changes the default to |
|
|
True to enable one padded retry when the first OCR pass returns no text detections. |
|
- |
True to enable pipeline timing telemetry. |
|
|
True to use GPU image preprocessing. |
|
- |
True to enable VRAM telemetry. |
|
|
The server scheduling mode. One of: |
Engine Environment Variables#
Name |
Default |
Description |
|---|---|---|
|
- |
The Hugging Face token for model download when |
|
- |
The NGC API key for model download when |
|
|
The default CUDA graph capture scope for OCR stages that inherit it. One of: |
|
- |
A comma-separated list of OCR detector batch sizes for CUDA graph capture. |
|
- |
The CUDA-visible device ordinal for OCR engine placement. If empty, the NIM uses visible device |
|
|
True to download model artifacts and exit before CUDA warmup or server startup. Requires |
|
|
The model download provider. One of: |
|
|
The model identifier for Hugging Face or NGC. |
|
|
The model directory in the container. |
|
|
The OCR model variant. One of: |
|
|
The detector CUDA graph capture override. One of: |
|
|
Detector warmup override. Supported values are |
|
|
The recognizer CUDA graph capture mode for region chunks. One of: |
|
- |
A comma-separated list of recognizer region chunk sizes for CUDA graph capture. |
|
|
True to decode recognizer chunks directly into reduced token outputs instead of materializing global logits. |
|
|
The recognizer warmup mode for region chunks. One of: |
|
- |
A comma-separated list of recognizer region chunk sizes that override recognizer warmup. |
|
|
The relational transformer CUDA graph capture override. One of: |
|
|
The relational transformer warmup override. One of: |
|
|
The inference precision. The OCR runtime supports only |
|
- |
The root directory for precompiled CUDA artifacts. |
|
|
True to compile and cache CUDA artifacts, then exit without starting the HTTP server. |
|
|
The warmup scope for enabled OCR stages. One of: |
|
- |
A comma-separated list of OCR detector batch sizes that override detector warmup. |