Configuring a NIM#
This page contains a reference for configuring the Alpamayo1.5 NIM container.
GPU Selection#
Alpamayo1.5 NIM currently supports one GPU per container. You can pass
--gpus all on a single-GPU host. On a multi-GPU host, expose one target GPU
with either --gpus or CUDA_VISIBLE_DEVICES.
For example:
docker run --gpus '"device=0"' ...
or:
docker run -e CUDA_VISIBLE_DEVICES=0 --gpus all ...
Model Cache#
The container process runs as user ID 1000. The host directory mounted at
/opt/nim/.cache (NIM_CACHE_PATH) must therefore be writable by UID
1000, otherwise startup fails while materializing model artifacts with
Permission denied / os error 13.
Warning
NFS-backed home directories are frequently not writable by UID 1000 and
can additionally fail with Stale file handle. Prefer a local-disk cache
path for direct Docker runs.
Create a cache directory that UID 1000 can write to before launching:
mkdir -p /tmp/alpamayo-nim-cache
chmod 777 /tmp/alpamayo-nim-cache
Alternatively, run the container with --user "$(id -u):$(id -g)" so the
process matches the owning UID of the mounted cache directory.
Environment Variables#
The server accepts the following customer-facing variables.
Variable |
Default |
Notes |
|---|---|---|
|
unset |
API key used to download assets from NGC. |
|
|
Path inside the container where model assets and generated artifacts are cached. Mount this path to persistent storage. |
|
auto |
Optional precision selector. Supported values are |
|
auto |
Exact model profile name or hash override. Use only when you need to select a specific manifest profile. |
|
|
HTTP API port inside the container. |
|
unset |
BYOC Alpamayo checkpoint directory. Refer to Bring Your Own Checkpoint for the supported checkpoint layouts and calibration requirements. |
|
|
Port for the gRPC trajectory API. |
|
|
Comma-separated K values warmed and served by the container. Each configured value consumes startup time and retained CUDA graph/cache memory, so configure only the values your deployment needs. Unlisted GPUs may opt into values up to 32, but should start at K=1 and increase gradually; refer to Support Matrix for OOM guidance. |
|
|
Default seed used when a request does not provide a |
|
|
Run packaged sample requests before readiness. Set to |
|
unset |
Comma-separated text manifest files. Each manifest contains one Alpamayo scene directory per line. Used when creating BYOC FP8/W4A16 ModelOpt VLM exports. |
|
unset |
Set to |
|
unset |
Directory for timing artifacts used in offline analysis. The directory must be writable by the container user. |
Startup warmup prepares the configured trajectory K values before readiness. The first client request can still populate request-path caches and be slower than steady state, so run one untimed request before collecting latency data.