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:
or:
Shared Memory
Set --shm-size=16g for direct Docker usage because PyTriton and TensorRT-LLM exchange multimodal request payloads through shared memory. Host IPC can also work when allowed by your deployment environment, but an explicit --shm-size=16g keeps the requirement visible in the launch command.
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.
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:
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.
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.