Deploying NVIDIA NGC Containers and Pretrained Models on Bare Metal Linux

A production guide to nvcr.io authentication, NGC CLI model verification, PyTorch container customization, Triton serving, and NVIDIA NIM on Ubuntu.

Managing CUDA toolkits, cuDNN libraries, NCCL collectives, and Python machine learning packages directly on a Linux host becomes increasingly complex when multiple AI workloads share the same server. Updating dependencies for a new large language model (LLM) pipeline can introduce compatibility issues across existing training jobs and inference services.

The NVIDIA NGC Catalog and its container registry (nvcr.io) help reduce host dependency conflicts by distributing GPU-optimized frameworks, compilers, and runtime libraries through versioned container images. The catalog also provides signed pretrained models, deployment resources, and inference microservices that run consistently across single-tenant bare metal GPU servers.

This tutorial walks through the complete workflow on Ubuntu Linux: validating host driver compatibility and NVMe storage, generating scoped NGC API keys, authenticating with nvcr.io using '$oauthtoken', installing the NGC CLI to download and verify pretrained models, extending PyTorch containers with built-in pip constraints, serving verified ONNX models with NVIDIA Triton Inference Server, deploying NVIDIA NIM microservices without port or GPU contention, and verifying container digests alongside SBOM and VEX reports.

Scope & Reference Stack Details

  • Last Updated: November 25, 2026
  • Target OS & Runtime: Ubuntu 22.04 / 24.04 LTS, Docker Engine 28.0+, NVIDIA Container Toolkit
  • Referenced Artifacts: NGC CLI 5.1.10, NGC PyTorch 26.01-py3, Triton 26.01-py3, DashCamNet pruned_onnx_v1.0.5, Llama 3.1 8B NIM 2.1.7
  • Infrastructure Scope: ServerMO provides single-tenant, unmanaged bare metal GPU infrastructure. Host operating systems, Docker runtimes, NGC API keys, model weights, security controls, and NVIDIA software entitlements described in this guide are configured and maintained by your engineering team. Always verify minimum driver versions, hardware support, and governing license terms on the official NGC Catalog page for each artifact before production deployment.

1. NGC Architecture, Host CUDA Compatibility, and Bare-Metal Prerequisites

Unlike virtual machines, Docker containers share the host Linux kernel and access physical GPUs through the host's kernel-mode NVIDIA driver. When you start an NGC container with --gpus, the NVIDIA Container Toolkit mounts the required GPU character devices and user-mode driver libraries at runtime while keeping the CUDA runtime, cuDNN, NCCL, DALI, and TensorRT libraries isolated inside the container filesystem.

# NVIDIA NGC Bare-Metal Linux Runtime & Storage Architecture
# Host maintains minimal OS + GPU Driver; user-space CUDA & frameworks stay isolated per container.

       [ NVIDIA NGC Catalog & Registry Endpoints ]
          |-- Container Registry:  nvcr.io  (Docker / ORAS / Cosign)
          +-- Artifact & CLI API:  api.ngc.nvidia.com  (NGC CLI / Models / SBOM / VEX)
                                    |
         Authenticated Pull ('$oauthtoken' + Scoped NGC API Key)
                                    |
                                    v
+-----------------------------------------------------------------------------------+
|                      BARE-METAL LINUX HOST (Ubuntu 22.04 / 24.04)                 |
|                                                                                   |
|  +-------------------------+   +-------------------------+   +-----------------+  |
|  | NGC PyTorch Container   |   | NGC Triton Server       |   | NVIDIA NIM LLM  |  |
|  | nvcr.io/nvidia/pytorch  |   | nvcr.io/nvidia/triton.. |   | nvcr.io/nim/... |  |
|  | - Isolated CUDA Runtime |   | - TRT / ONNX / PyTorch  |   | - Host Port 8100|  |
|  | - /etc/pip/constraint   |   | - Host Ports 8000-8002  |   | - Separate GPU  |  |
|  +------------+------------+   +------------+------------+   +--------+--------+  |
|               |                             |                         |           |
|  =============+=============================+=========================+=========  |
|               +----------> [ Docker Engine 28.0+ & NVIDIA Container Toolkit ]     |
|                                             |                                     |
|  +------------------------------------------+----------------------------------+  |
|  | Host NVIDIA Kernel Driver (nvidia-smi)       Local PCIe NVMe Storage Mount  |  |
|  | Single-Tenant Physical GPUs                  - Docker / containerd storage  |  |
|  | (RTX 4090/5090, L40S, A100, H100, H200)      - /mnt/nvme/models & nim-cache |  |
|  +-----------------------------------------------------------------------------+  |
+-----------------------------------------------------------------------------------+

Primary Artifact Types in the NGC Catalog

The NGC Catalog distributes six main artifact categories through a unified portal:

  • Containers (nvcr.io): Pre-integrated OCI images for deep learning (pytorch, tensorflow, vllm), inference serving (tritonserver), data analytics (rapids), and scientific HPC (gromacs, namd, relion).
  • Pretrained Models: Trainable and deployment-ready model checkpoints across FP32, FP16, BF16, FP8, INT8, and INT4 precisions.
  • NVIDIA NIM Microservices: Containerized inference microservices (nvcr.io/nim/...) combining optimized inference engines with standardized OpenAI-compatible HTTP/REST APIs.
  • Resources & Collections: Reference Jupyter notebooks, training scripts, benchmarks, and curated multi-artifact workflows.
  • Helm Charts: Kubernetes deployment packages for the NVIDIA GPU Operator, Network Operator, Triton, and NIM services.
  • Agentic Artifacts: Versioned, cryptographically signed OCI skill packages providing AI agents with task-specific instructions and resources.

Host Driver Compatibility vs. Container <YY.MM> Tags

Most flagship NGC framework containers follow a monthly <YY.MM> release tag convention—for example, 26.01-py3 denotes the January 2026 Python 3 release. You do not need a full host CUDA Toolkit installation to run NGC containers, and you must never install an NVIDIA GPU driver package inside a Dockerfile.

When pairing host drivers with container tags, review the NVIDIA CUDA Compatibility documentation:

  • CUDA Minor-Version Compatibility: Allows applications built within the same major CUDA release family (such as CUDA 12.x) to run on compatible NVIDIA drivers within that branch, subject to feature limitations.
  • CUDA Forward Compatibility: Uses forward-compatibility packages to extend support across driver and toolkit release families on eligible data center GPUs and selected NVIDIA RTX Server-Ready products. Always consult the container-specific driver and GPU compatibility requirements in the NGC Release Notes before deploying a new <YY.MM> tag.

Host Prerequisites and NVMe Storage Configuration

Use a currently supported Docker Engine release—preferably version 28.0 or newer—with the modern nvidia-container-toolkit (the legacy nvidia-docker and nvidia-docker2 wrappers are deprecated). Although native --gpus allocation was introduced in Docker 19.03, releases prior to Docker 28.0 lack important network isolation fixes affecting localhost-published ports on Layer 2 networks (see Docker packet filtering and firewall documentation).

On a fresh Ubuntu host, follow our guides to install NVIDIA drivers on Ubuntu 24.04 and set up Docker with the NVIDIA Container Toolkit, then install standard CLI utilities used in this guide (wget, unzip, and python3-venv):

sudo apt-get update && sudo apt-get install -y wget unzip python3-venv

# 1. Confirm GPU visibility and host driver version
nvidia-smi

# 2. Confirm Docker Engine, NVIDIA Container Toolkit, and active image storage backend
docker --version
nvidia-ctk --version
docker info | grep -iE "Storage Driver|Docker Root Dir|containerd"

# 3. Verify that your dedicated NVMe volume is formatted and persistently mounted
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS
findmnt /mnt/nvme
df -hT /mnt/nvme

Preventing OS root disk exhaustion: Extracted NGC framework containers routinely consume 10 GB to 25 GB per tag, and pretrained LLM weights add 15 GB to 140+ GB per model (similar to the root-partition bottlenecks covered in our Hugging Face disk space troubleshooting guide). Create dedicated directories on a verified, persistently mounted local NVMe filesystem (/mnt/nvme):

sudo mkdir -p /mnt/nvme/models /mnt/nvme/triton_repo /mnt/nvme/nim-cache
sudo chown "$USER":"$USER" /mnt/nvme/models /mnt/nvme/triton_repo /mnt/nvme/nim-cache
chmod 700 /mnt/nvme/nim-cache

Docker Engine 29.0+ Storage Note

On Docker Engine 29.0 and later, fresh installations use the containerd image store by default (see Docker's containerd image store documentation). Changing Docker's "data-root" in /etc/docker/daemon.json alone does not relocate containerd image contents and snapshots. Verify the active storage backend via docker info and configure containerd's storage directory (/etc/containerd/config.toml) separately where required, confirming that /mnt/nvme is mounted persistently in /etc/fstab before restarting container services.

2. Generating Scoped NGC API Keys

While unlocked public NGC containers can be pulled anonymously, authenticating with an NGC API Key avoids anonymous pull rate limits, enables gated model downloads, and authorizes access to organization registries or entitled enterprise software.

NGC Catalog Access Levels

Access LevelRegistration RequirementPublic Containers & ModelsGated / Approved ArtifactsEnterprise-Exclusive Software
Guest UserNoneView & pull unlocked public assetsView metadata onlyNo access
Registered UserFree NVIDIA account + API keyView & download public/authenticated assetsRequest publisher approvalView overview only; cannot pull
Approved AccessRegistered account + publisher approvalYesDownload approved gated assetsRequires entitlement
Subscriber (NVAIE)Active entitlement / license tokenYesYesView & pull eligible entitled assets

Note: Certain third-party ISV containers in the public catalog can be pulled as a guest or registered user but still require a separate vendor license key at runtime.

Selecting the Right Key Type

  • Personal API Key (nvapi-...): Tied to an individual user account and its permissions; suited for interactive engineering workstations and single-developer test servers.
  • Service API Key: Tied to an NGC organization rather than an individual employee; recommended for CI/CD pipelines, automated build agents, and shared production servers.
  • Legacy API Key: Maintained for older workflows that exchange credentials at https://authn.nvidia.com/token for a 15-minute bearer token. Personal and Service API keys act directly as Bearer tokens in HTTP API calls without requiring a separate token-exchange step.
  • Customer Managed Key (CMK): Adds customer-controlled at-rest encryption to artifacts in an enabled NGC Private Registry; it does not authenticate CLI or Docker requests.

Generating a Scoped Key

  1. Sign in at https://ngc.nvidia.com and select the target Organization (and Team, if applicable) from the top-right account menu.
  2. Navigate to Setup > API Keys (https://org.ngc.nvidia.com/setup/api-keys) and click + Generate Personal Key (or create a Service Key as an org administrator for automated servers).
  3. Enter a descriptive key name, set an expiration date, and under Services Included, select NGC Catalog (and Private Registry only if accessing private organization repositories). Leaving Services Included unchecked is a primary cause of 401 Unauthorized and 403 Forbidden pull errors on valid keys.
  4. Copy and store the secret immediately in your secrets manager.
  5. If downloading gated foundation models or NIM microservices, open the artifact's NGC Catalog page once in your browser to review and accept its governing license terms for your organization.

3. Authenticating with nvcr.io and Resolving Registry Errors

Docker authentication against nvcr.io requires the literal string $oauthtoken as the username and your NGC API key as the password.

Credential & Daemon Security Considerations

Passing a literal API key through Docker's -p option can expose the secret in shell history. Even when referencing a shell variable, the expanded credential may be visible through process arguments on multi-user systems. Use --password-stdin and configure a supported Docker credential helper (such as docker-credential-pass) to reduce credential exposure—without a credential helper, Docker stores registry tokens as unencrypted Base64 strings inside ~/.docker/config.json.

Additionally, adding a user to the docker group (sudo usermod -aG docker $USER) removes the need for sudo, but any user with access to /var/run/docker.sock can mount the host filesystem and escalate to root privileges. Restrict docker group membership to trusted administrators, or use Rootless Docker or Apptainer on multi-user systems.

# Read your NGC API key into the current shell session without echoing it
read -rsp "Enter your NGC API Key: " NGC_API_KEY && echo
export NGC_API_KEY

# Authenticate using single quotes so Bash does not expand '$oauthtoken'
printf '%s' "$NGC_API_KEY" | docker login nvcr.io --username '$oauthtoken' --password-stdin

# Restrict file permissions on local Docker configuration
chmod 600 "$HOME/.docker/config.json"

# Verify GPU passthrough with a minimal CUDA base image
docker run --rm --gpus all nvcr.io/nvidia/cuda:12.6.3-base-ubuntu24.04 nvidia-smi

Troubleshooting nvcr.io401, 403, and permission denied Errors

Error / SymptomLikely CauseRecommended Fix
unauthorized: authentication required or 401 Unauthorized on loginUnquoted $oauthtoken or double quotes ("$oauthtoken") caused Bash/Zsh to expand $oauthtoken into an empty stringWrap the username in single quotes: --username '$oauthtoken'
Login Succeeded, followed by 401, 403 Forbidden, or pull access denied on docker pullAPI key lacks NGC Catalog / Private Registry under Services Included, wrong Org context, or unaccepted artifact EULARegenerate the key with NGC Catalog selected, verify your active Org entitlement, and accept governing terms on the NGC website
permission denied while trying to connect to the Docker daemon socketMissing /var/run/docker.sock access, or docker login ran as a normal user while docker pull ran under sudo (/root/.docker/config.json)Run docker login and docker pull under the same user context; repair .docker ownership if needed via sudo chown -R "$USER":"$USER" "$HOME/.docker"
401 errors after rotating an older keyStale credentials cached in ~/.docker/config.jsonRun docker logout nvcr.io and log in again with the active key

4. Installing NGC CLI and Downloading Signed Pretrained Models

While Docker handles container pulls on nvcr.io, the standalone NVIDIA NGC CLI lets you search repositories, download pretrained model checkpoints, export security scan evidence, and manage organization artifacts from headless servers.

Fail-Closed NGC CLI Installation on Linux (x86_64 & ARM64)

Stage the download in a clean temporary directory, verify both the published SHA256 archive hash and internal MD5 file manifest, and move the binary into $HOME/opt/ngc-clionly if every verification step succeeds (note that SHA256 checks validate file integrity against published release notes rather than verifying a cryptographic publisher signature):

install_ngc_cli() {
  set -euo pipefail
  local tmp_dir
  tmp_dir="$(mktemp -d)"
  trap 'rm -rf "$tmp_dir"' RETURN

  wget -q --content-disposition \
    "https://api.ngc.nvidia.com/v2/resources/nvidia/ngc-apps/ngc_cli/versions/5.1.10/files/ngccli_linux.zip" \
    -O "$tmp_dir/ngccli_linux.zip"

  # Verify published SHA256 for NGC CLI 5.1.10 Linux x86_64 (use ngccli_arm64.zip + its hash on ARM64)
  echo "0d0760ce6e26bd11afa1d8fe7265acf0c4eb9ea557ce37f0163be731f0eef1ad  $tmp_dir/ngccli_linux.zip" | sha256sum -c -

  unzip -q "$tmp_dir/ngccli_linux.zip" -d "$tmp_dir"
  (cd "$tmp_dir" && find ngc-cli/ -type f -exec md5sum {} + | LC_ALL=C sort | md5sum -c ngc-cli.md5)

  chmod u+x "$tmp_dir/ngc-cli/ngc"
  mkdir -p "$HOME/opt"
  rm -rf "$HOME/opt/ngc-cli"
  mv "$tmp_dir/ngc-cli" "$HOME/opt/ngc-cli"
}

# PATH and .bashrc update run ONLY if install_ngc_cli completes with zero errors
if install_ngc_cli; then
  export PATH="$PATH:$HOME/opt/ngc-cli"
  grep -qxF 'export PATH="$PATH:$HOME/opt/ngc-cli"' "$HOME/.bashrc" \
    || echo 'export PATH="$PATH:$HOME/opt/ngc-cli"' >> "$HOME/.bashrc"
  ngc --version
fi

On Debian or Ubuntu, administrators can alternatively download the ngc_amd64.deb package for NGC CLI 5.1.10. Verify its published SHA256 checksum (c98d0ddd8fb6ef5660c26f56d4223b7c9ac201e61d6432b8c22162e6f9fa2e23) against the official NGC CLI release notes before installing the package with sudo apt install ./ngc_amd64.deb. Do not proceed with installation if checksum verification fails.

Configuring NGC CLI Context

Initialize your CLI configuration and restrict file permissions on ~/.ngc/config:

ngc config set
chmod 600 "$HOME/.ngc/config"

# Verify active organization, team, and authenticated identity
ngc config current
ngc user who --format_type json

(If ngc commands encounter proxy tracing errors in restricted corporate networks, set export NGC_CLI_TRACE_DISABLE=1.)

Downloading and Verifying a Signed Pretrained Model (DashCamNet)

NGC hosts pretrained checkpoints for domain toolkits including NVIDIA NeMo and NVIDIA TAO Toolkit. Below, we download NVIDIA's pruned DashCamNet ONNX model (nvidia/tao/dashcamnet:pruned_onnx_v1.0.5) to /mnt/nvme/models, verify its OpenSSF cryptographic signature, and prepare it for Triton Inference Server in Section 6:

# 1. Inspect model metadata and version signature status
ngc registry model info "nvidia/tao/dashcamnet:pruned_onnx_v1.0.5"

# 2. Download the model files and detached Sigstore signature bundle to NVMe storage
ngc registry model download-version "nvidia/tao/dashcamnet:pruned_onnx_v1.0.5" \
  -d /mnt/nvme/models

ngc registry model download-version-signature "nvidia/tao/dashcamnet:pruned_onnx_v1.0.5" \
  -d /mnt/nvme/models

# 3. Fetch NVIDIA's Model Signing Root Certificate and verify with OpenSSF model-signing
curl -fsSL "https://api.ngc.nvidia.com/v2/catalog/models/public-key" \
  -o /mnt/nvme/models/publicKey.pem

python3 -m venv "$HOME/opt/model-verify-env"
"$HOME/opt/model-verify-env/bin/pip" install --quiet model-signing onnx

"$HOME/opt/model-verify-env/bin/model_signing" verify certificate \
  --signature /mnt/nvme/models/dashcamnet_vpruned_onnx_v1.0.5/result.sigstore \
  --certificate_chain /mnt/nvme/models/publicKey.pem \
  /mnt/nvme/models/dashcamnet_vpruned_onnx_v1.0.5

Confirm that model_signing outputs Verification succeeded before moving weights into any serving repository.

5. Running NGC PyTorch Containers and Building Custom Dockerfiles

Pre-Deployment Verification Note

For clarity, interactive commands in Sections 5, 6, and 7 reference readable tags (26.01-py3, 2.1.7). For production workloads, resolve tags to immutable @sha256 digests, verify Cosign signatures, and review SBOM/VEX reports before container execution using the workflow in Section 8.

Shared Memory (--shm-size) and Ulimits for Multi-GPU PyTorch

Docker's default /dev/shm allocation is 64 MiB. Multi-worker PyTorch DataLoader queues and multi-GPU NCCL collectives quickly exhaust 64 MiB, causing Bus error crashes. On multi-container hosts, prefer an explicit --shm-size=16g (16,384 MiB) over --ipc=host so shared memory remains isolated between containers, paired with memlock and stack (67,108,864 bytes = 64 MiB) ulimits:

docker pull nvcr.io/nvidia/pytorch:26.01-py3

docker run --gpus all -it --rm \
  --shm-size=16g \
  --ulimit memlock=-1 \
  --ulimit stack=67108864 \
  -u "$(id -u):$(id -g)" \
  -v "$(pwd):/workspace/project" \
  -v "/mnt/nvme/models:/models:ro" \
  nvcr.io/nvidia/pytorch:26.01-py3 \
  python -c "import torch; print('PyTorch:', torch.__version__, '| CUDA:', torch.cuda.is_available(), '| GPUs:', torch.cuda.device_count(), '| Device 0:', torch.cuda.get_device_name(0))"

To allocate specific GPUs on a multi-GPU host, pass --gpus '"device=0,1"' or GPU UUIDs. If you use interactive notebooks on bare metal, bind ports strictly to 127.0.0.1 over SSH tunnels (see our guide to setting up JupyterLab and PyTorch on a remote Ubuntu GPU server).

Extending NGC PyTorch Safely with /etc/pip/constraint.txt

Avoid running pip install --upgrade torch inside an NGC container, which can replace NVIDIA's custom-compiled PyTorch, CUDA, and NCCL binaries with generic PyPI wheels. Starting with NGC PyTorch 25.03 (including 26.01-py3; see the NVIDIA PyTorch Container Release Notes), pass NVIDIA's built-in /etc/pip/constraint.txt file during pip install to reduce version-replacement risk, then validate dependency health and GPU visibility:

# syntax=docker/dockerfile:1
FROM nvcr.io/nvidia/pytorch:26.01-py3

ENV DEBIAN_FRONTEND=noninteractive \
    PYTHONUNBUFFERED=1

# Install OS packages only (never install host nvidia-driver packages inside the image)
RUN apt-get update && apt-get install -y --no-install-recommends \
    git \
    ffmpeg \
    libsndfile1 \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace/app

COPY requirements.txt .

# Reference NVIDIA's built-in pip constraints and verify package consistency
RUN pip install --no-cache-dir \
    -c /etc/pip/constraint.txt \
    -r requirements.txt \
    && pip check

COPY src/ ./src/

CMD ["python", "src/train.py"]

Build the image and confirm CUDA availability before pushing it to your registry:

docker build -t custom-ngc-pytorch:26.01 .

docker run --rm --gpus '"device=0"' custom-ngc-pytorch:26.01 \
  python -c "import torch; assert torch.cuda.is_available(), 'CUDA unavailable'; print('Verified:', torch.__version__, torch.version.cuda)"

6. Deploying Models with NVIDIA Triton Inference Server

Select your inference serving stack according to whether you run heterogeneous multi-model pipelines or dedicated single-LLM endpoints:

CriterionNVIDIA Triton Inference ServerNVIDIA NIM MicroservicesStandalone vLLM / SGLangStandalone TensorRT-LLM
Model FrameworksMulti-framework (TensorRT, ONNX, PyTorch, Python, vLLM, TRT-LLM)Pre-packaged LLMs, VLMs, embeddings, rerankers, speechLLMs & VLMs onlyLLMs & multimodal TRT engines
Concurrent Multi-Model ServingBuilt-in (multiple models & ensembles in one process)One microservice container per modelSingle model per processSingle engine per service
Configuration EffortModerate–High (config.pbtxt + repository layout)Low (containerized API + pre-tuned profiles)LowHigh (engine build & tuning)
Best FitMixed vision/embedding/LLM pipelines & ensemblesRapid OpenAI-compatible rollout & enterprise-supported stacksDedicated single-LLM serving (SGLang vs. vLLM benchmarks)Optimized throughput (TensorRT-LLM deployment)

(For distributed prefill/decode disaggregation across multi-node clusters, see our NVIDIA Dynamo distributed inference guide.)

Choosing the Right Triton Container Variant (26.01)

Review the included backends in the NVIDIA Triton Release Notes before pulling:

  • Standard Container (nvcr.io/nvidia/tritonserver:26.01-py3): Includes backends such as TensorRT, ONNX Runtime, PyTorch (LibTorch), and Python. The last standard Triton release containing the TensorFlow backend was 25.02.
  • LLM Variants: Pull 26.01-vllm-python-py3 for the vLLM backend or 26.01-trtllm-python-py3 for TensorRT-LLM engines.

Step 1: Stage DashCamNet and Inspect ONNX Batch Dimensions

Copy the verified DashCamNet ONNX file from Section 4 into Triton's <model_name>/1/model.onnx layout and inspect its input tensor dimensions before writing config.pbtxt:

mkdir -p /mnt/nvme/triton_repo/dashcamnet/1

find /mnt/nvme/models/dashcamnet_vpruned_onnx_v1.0.5 -maxdepth 2 -name "*.onnx" -print -quit \
  | xargs -I{} cp -v "{}" /mnt/nvme/triton_repo/dashcamnet/1/model.onnx

# Inspect the ONNX input tensor shape (dynamic batch dimension vs. fixed static batch)
"$HOME/opt/model-verify-env/bin/python" -c '
import onnx
m = onnx.load("/mnt/nvme/triton_repo/dashcamnet/1/model.onnx")
for inp in m.graph.input:
    dims = [d.dim_param if d.dim_param else d.dim_value for d in inp.type.tensor_type.shape.dim]
    print("Input:", inp.name, "| Shape:", dims)
'

Triton's ONNX Runtime auto-completion detects input/output metadata from model.onnx, but it cannot convert a fixed static-batch (1) ONNX graph into a dynamic-batch graph. Start with a clean baseline /mnt/nvme/triton_repo/dashcamnet/config.pbtxt that lets Triton auto-complete tensor metadata safely:

name: "dashcamnet"
backend: "onnxruntime"

instance_group [
  {
    count: 1
    kind: KIND_GPU
  }
]

Enabling Dynamic Batching (When Supported by the ONNX Graph): If the ONNX inspection above confirms a symbolic/dynamic leading batch dimension (for example, ['batch', 3, 544, 960] or [-1, 3, 544, 960]), you can append max_batch_size: 16 and a minimal dynamic_batching { max_queue_delay_microseconds: 5000 } block (an illustrative starting queue bound—per Triton's Dynamic Batcher guide, avoid hardcoding preferred_batch_size until load testing demonstrates a benefit).

Step 2: Launch Triton on Localhost Ports

Bind HTTP (8000), gRPC (8001), and Prometheus metrics (8002) to 127.0.0.1 so internal endpoints are not exposed on public interfaces:

docker run -d --name triton-prod \
  --gpus '"device=0"' \
  --shm-size=4g \
  --ulimit memlock=-1 \
  --ulimit stack=67108864 \
  -p 127.0.0.1:8000:8000 \
  -p 127.0.0.1:8001:8001 \
  -p 127.0.0.1:8002:8002 \
  -v /mnt/nvme/triton_repo:/models:ro \
  nvcr.io/nvidia/tritonserver:26.01-py3 \
  tritonserver --model-repository=/models

# Confirm readiness and inspect Triton's auto-completed model configuration
curl -i http://127.0.0.1:8000/v2/health/ready
curl -s http://127.0.0.1:8000/v2/models/dashcamnet/config | python3 -m json.tool

Step 3: Run a Synthetic Inference Smoke Test

Use the matching 26.01-py3-sdk client container to run a synthetic inference smoke test with a random FP32 tensor matching the model's expected input dimensions (this validates HTTP transport, ONNX Runtime GPU execution, and output tensor shapes—use real preprocessed road imagery to evaluate detection accuracy):

docker run --rm --network host nvcr.io/nvidia/tritonserver:26.01-py3-sdk \
  python3 -c '
import numpy as np
import tritonclient.http as httpclient

client = httpclient.InferenceServerClient(url="127.0.0.1:8000")
meta = client.get_model_metadata("dashcamnet")
inp_meta = meta["inputs"][0]
shape = [1 if d == -1 else d for d in inp_meta["shape"]]

# Synthetic FP32 tensor smoke test (verifies pipeline execution, not model accuracy)
sample = np.random.rand(*shape).astype(np.float32)
infer_in = httpclient.InferInput(inp_meta["name"], sample.shape, inp_meta["datatype"])
infer_in.set_data_from_numpy(sample)

resp = client.infer("dashcamnet", inputs=[infer_in])
for out in meta["outputs"]:
    arr = resp.as_numpy(out["name"])
    print("Smoke test output:", out["name"], "| Shape:", arr.shape, "| Dtype:", arr.dtype)
'

Monitoring Queue Latency with Prometheus

Triton exports cumulative counters on http://127.0.0.1:8002/metrics (which you can pair with host DCGM telemetry using our NVIDIA GPU Prometheus and Grafana monitoring guide). Because nv_inference_queue_duration_us is a cumulative microsecond counter (see Triton Metrics documentation), compute approximate mean queue latency in milliseconds for successful traffic using rate():

(rate(nv_inference_queue_duration_us[5m]) / rate(nv_inference_request_success[5m])) / 1000

Handle failed requests (nv_inference_request_failure) and zero-request intervals separately in alert expressions.

Sizing GPU VRAM and Hardware Architecture Compatibility

For multi-model deployments, size GPU memory across all resident models plus KV cache/batch buffers and ~15% runtime overhead (for deeper MoE and large-context calculations, see our GPU memory sizing breakdown):

Estimated VRAM Required = (Sum of Quantized Model Weights + KV Cache & Batch Buffers) * 1.15
Illustrative Multi-Model PipelineResident WeightsAssumed KV / Batch BufferEst. Total VRAM (+15% Headroom)Candidate GPU Class (Subject to Runtime Compatibility)
8B FP8 LLM + BGE-M3 Embedder (FP16)10.8 GB4.0 GB~17.0 GB24 GB class (L4 / RTX 4090)
8B BF16 LLM + CLIP ViT-L + BERT Reranker18.3 GB6.0 GB~27.9 GB32 GB–48 GB class (RTX 5090 / L40S / A40)
70B INT4-AWQ LLM + CLIP + BGE-M342.0 GB12.0 GB~62.1 GB80 GB class (A100 80GB / H100 80GB)
70B FP8 LLM + CLIP + BERT Reranker72.8 GB20.0 GB~106.7 GB141 GB class (H200) or 2× 80 GB GPUs (TP=2)

Illustrative planning estimates (decimal GB), not benchmark measurements. Beyond raw VRAM capacity, verify five hardware and support constraints (compare architectures in our NVIDIA H100 vs. H200 vs. B200 guide):

  • Compute Capability & FP8 Support: Native FP8 Tensor Core execution requires Ada Lovelace (SM89 — L4, L40S, RTX 4090), Hopper (SM90 — H100, H200), or Blackwell (SM100/SM120 — B200, RTX 5090). Ampere GPUs, including the A100 (SM80) and A40 (SM86), do not support native FP8 Tensor Core execution—use supported BF16, FP16, INT8, or INT4 execution paths depending on the backend.
  • Quantization Backend Compatibility: Confirm that your chosen Triton/vLLM/TRT-LLM version supports the target quantization scheme on your specific GPU generation.
  • Multi-GPU Interconnect (TP >= 2): Tensor-parallel LLM serving benefits from NVLink bandwidth over PCIe-only links (see multi-GPU vLLM and NVLink tuning).
  • Context Length & KV Cache Growth: Long sequences (32K–128K+ tokens) and high concurrency expand per-GPU KV cache substantially.
  • Enterprise Support Matrix: NVIDIA AI Enterprise support depends on eligible hardware, certified or qualified systems, supported operating systems, software versions, and an active support entitlement—verify the complete deployment stack against the NVIDIA AI Enterprise Infrastructure Support Matrix.

7. Deploying Turnkey LLMs with NVIDIA NIM Microservices

NVIDIA NIM containers (nvcr.io/nim/...) package model downloaders, pre-optimized TensorRT-LLM or vLLM engines, and an OpenAI-compatible API server into a single container (for an application-layer integration example, see our NVIDIA NIM narrative generation tutorial).

Managing Port (8100) and GPU Allocation Alongside Triton

To avoid port 8000 and GPU memory conflicts with Section 6's triton-prod container, map NIM to host port 8100 (-p 127.0.0.1:8100:8000) and assign NIM_GPU_ID according to your server's GPU count:

Server TopologyTriton Container StateNIM_GPU_ID SettingNIM Host Port
Single-GPU HostStop triton-prod first (docker stop triton-prod)0127.0.0.1:8100
Dual-GPU HostRunning on GPU 01127.0.0.1:8100
Multi-GPU Host (4x–8x)Dedicated GPU subsetSeparate unallocated GPU(s)127.0.0.1:8100

Launching NIM (2.1.7) with a User-Owned NVMe Cache

Keep /mnt/nvme/nim-cache restricted to your Linux user (chmod 700 rather than chmod 777) and pass -e NGC_API_KEY from your exported shell environment (note that privileged users with docker inspect access on the host can still read container environment variables). Review the NVIDIA NIM for LLMs documentation for supported GPUs before launching, and place an authenticated gateway in front of internal endpoints before exposing APIs externally (see securing bare metal AI APIs):

# On single-GPU hosts, stop Triton first and set NIM_GPU_ID=0:
# docker stop triton-prod && docker rm triton-prod && export NIM_GPU_ID=0

# On dual/multi-GPU hosts where Triton continues running on GPU 0, assign GPU 1:
export NIM_GPU_ID=1

export LOCAL_NIM_CACHE="/mnt/nvme/nim-cache"
mkdir -p "$LOCAL_NIM_CACHE"
chown -R "$(id -u):$(id -g)" "$LOCAL_NIM_CACHE"
chmod 700 "$LOCAL_NIM_CACHE"

export NGC_API_KEY

docker run -d --name nim-llama3-8b \
  --gpus "device=${NIM_GPU_ID}" \
  --shm-size=16g \
  -u "$(id -u):$(id -g)" \
  -e NGC_API_KEY \
  -e NIM_CACHE_PATH="/opt/nim/.cache" \
  -v "$LOCAL_NIM_CACHE:/opt/nim/.cache" \
  -p 127.0.0.1:8100:8000 \
  nvcr.io/nim/meta/llama-3.1-8b-instruct:2.1.7

Monitor startup logs (docker logs -f nim-llama3-8b), then verify readiness and chat completion on 127.0.0.1:8100:

curl -i http://127.0.0.1:8100/v1/health/ready

curl -s http://127.0.0.1:8100/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta/llama-3.1-8b-instruct",
    "messages": [{"role": "user", "content": "Explain in two sentences why mounting a local NVMe cache improves NVIDIA NIM container restarts."}],
    "max_tokens": 96,
    "temperature": 0.2
  }'

8. Supply-Chain Verification and Licensing (Cosign, SBOM/VEX & NVAIE)

Before deploying containers into production, follow a strict six-stage supply-chain sequence: Resolve container digest → Verify Cosign signature → Export SBOM / CVE / VEX → Match evidence to your target architecture digest → Review vulnerabilities → Deploy the approved immutable digest.

Resolving Digests, Verifying Cosign Signatures, and Matching SBOM / VEX Evidence

Because multi-architecture tags (amd64 / arm64) have both a top-level manifest list digest and platform-specific image digests, inspect and match the digest referenced in your exported SBOM/VEX evidence (ngc registry image info --evidence requires an explicit :tag) against the immutable digest you pull and deploy:

IMAGE_TAG="nvcr.io/nvidia/pytorch:26.01-py3"

# 1. Resolve the tag digest (and inspect platform-specific digests if multi-arch)
DIGEST="$(oras resolve "$IMAGE_TAG")"
PINNED_IMAGE="nvcr.io/nvidia/pytorch@${DIGEST}"
echo "Resolved digest: ${PINNED_IMAGE}"
docker manifest inspect "$IMAGE_TAG" | grep -A3 '"platform"' || true

# 2. Verify NVIDIA's Cosign 2.x cryptographic signature on the resolved digest
cosign verify \
  --key https://api.ngc.nvidia.com/v2/catalog/containers/public-key \
  --insecure-ignore-tlog=true \
  "$PINNED_IMAGE"

# 3. Export CVE, CycloneDX SBOM, and VEX reports (CLI requires explicit tag)
ngc registry image info nvidia/pytorch:26.01-py3 --evidence cve > pytorch-26.01-cve.csv
ngc registry image info nvidia/pytorch:26.01-py3 --evidence sbom > pytorch-26.01-sbom.json
ngc registry image info nvidia/pytorch:26.01-py3 --evidence vex > pytorch-26.01-vex.json

# 4. Confirm the component bom-ref digest in VEX matches your target architecture digest before pulling
grep -m1 '"bom-ref"' pytorch-26.01-vex.json
docker pull "$PINNED_IMAGE"

When reviewing VEX statements, note that not_affected (code_not_reachable) indicates the vulnerable code path is not exercised in the container, whereas in_triage means NVIDIA's investigation is still ongoing—evaluate application exposure, input validation, and compensating controls carefully rather than assuming network isolation alone is a complete mitigation.

Public NGC Catalog, NIM Offerings, and NVIDIA AI Enterprise Licensing

Public NGC artifacts are available under their individual governing license terms. For NVIDIA NIM, NVIDIA distinguishes three offerings with different licensing and support models (see NVIDIA NIM Licensing and Release Branches):

Offering / TierAvailability & CostBranch & CVE CadenceSupport & Governance
Public NGC CatalogAvailable at no charge under per-artifact governing termsRolling <YY.MM> updates; public images rescanned every 30 daysCommunity forums
NIM & NIM Certified (Feature Branch)Available at no charge under applicable license termsFeature releases; NIM images rescanned every weekCommunity support (enterprise support requires NVAIE subscription)
NIM Certified (Production Branch) / NVIDIA AI EnterprisePaid NVIDIA AI Enterprise subscription requiredProduction branches with API stability; rescanned every weekEnterprise support SLAs on eligible/certified systems; Government Ready tags; Private Registry & CMKs subject to org entitlements

Customer Managed Key (CMK) Lifecycle Warning

Always review the governing terms of the selected container, model, and release branch before commercial deployment. Within organizations enabled for NGC Private Registry Customer Managed Keys, unlinking or revoking a CMK permanently deletes associated encrypted models—treat CMK revocation as an irreversible operation.

9. Deploy NVIDIA NGC Workloads on Dedicated GPU Infrastructure

Running NVIDIA NGC containers on bare metal gives engineering teams direct control over GPU allocation, driver compatibility, NVMe storage, and container-level resource management.

ServerMO provides single-tenant dedicated GPU servers for self-managed AI training, inference, and multi-model serving workloads. Choose a hardware configuration based on your model precision, GPU memory requirements, supported inference runtime, and storage capacity.

Explore our dedicated GPU servers to build an infrastructure environment suited to your NVIDIA NGC deployment.

Bare Metal GPU Infrastructure

Deploy NVIDIA NGC Workloads
on Dedicated GPU Servers

Run containerized PyTorch, Triton Inference Server, and NVIDIA NIM pipelines on single-tenant bare metal GPUs with local NVMe storage and full root control.

Explore Dedicated GPU Servers

Frequently Asked Questions

What is NVIDIA NGC, and how does it differ from Docker Hub?

The NVIDIA NGC Catalog is NVIDIA's repository (nvcr.io) for GPU-optimized Linux containers, pretrained models, Helm charts, and SDKs pre-integrated with CUDA, cuDNN, NCCL, and TensorRT. Unlike general-purpose community images on Docker Hub, NGC artifacts undergo GPU performance validation, cryptographic signing, and scheduled CVE scanning.

Can NVIDIA NGC containers run on GeForce RTX 4090 and RTX 5090 bare metal servers?

Yes—many public NGC framework and inference containers run on bare metal Linux hosts with GeForce RTX 4090 (SM89) or RTX 5090 (SM120) GPUs when paired with a compatible Linux driver and recent <YY.MM> tag. However, always check per-artifact governing terms and note that official NVIDIA AI Enterprise support depends on eligible hardware, certified or qualified server systems, supported operating systems, and an active support entitlement per the NVIDIA AI Enterprise Infrastructure Support Matrix.

Is NVIDIA NGC free, or do you need an NVIDIA AI Enterprise subscription?

Public NGC Catalog containers and open pretrained models—as well as standard NIM and NIM Certified Feature Branch releases—are available at no charge under their applicable license terms. An NVIDIA AI Enterprise subscription is required for enterprise support SLAs, access to NIM Certified Production Branch releases, and enterprise-exclusive catalog software.

Why does docker login nvcr.io fail with 401 Unauthorized or permission denied?

A 401 Unauthorized error usually occurs when $oauthtoken is passed without single quotes in Bash (expanding to an empty string) or when a Personal API Key was created without selecting NGC Catalog under Services Included. A permission denied error typically indicates missing /var/run/docker.sock permissions or running docker login as a standard user followed by sudo docker pull.

Do I need the exact same CUDA Toolkit version on my bare-metal host as inside the NGC container?

No—a full host CUDA Toolkit installation is unnecessary. NGC containers bundle an isolated user-space CUDA runtime and rely on CUDA minor-version compatibility (or CUDA forward compatibility packages on eligible data center GPUs and selected RTX products) with your host's NVIDIA kernel driver. Always verify minimum host driver requirements in the container's release notes.

How do you add Python packages to an NGC PyTorch container without breaking GPU libraries?

Avoid running pip install --upgrade torch or installing unpinned packages that overwrite NVIDIA's custom-compiled PyTorch, CUDA, or TensorRT binaries. In NGC PyTorch 25.03 and newer (26.01-py3), pass NVIDIA's built-in constraints file via pip install --no-cache-dir -c /etc/pip/constraint.txt -r requirements.txt && pip check.

When should you use NVIDIA Triton Inference Server vs. NVIDIA NIM vs. standalone vLLM?

Use standalone vLLM (or SGLang) when serving a single open-weight LLM with minimal setup. Choose NVIDIA NIM when you want a pre-packaged OpenAI-compatible microservice with automated engine selection. Choose NVIDIA Triton Inference Server when co-hosting multiple frameworks (ONNX, TensorRT, PyTorch, and vLLM) and multi-step ensembles concurrently on shared GPUs.

How do you verify the authenticity and vulnerability status of NGC containers and models?

Resolve the container tag with oras resolve, verify NVIDIA's signature using cosign verify --key https://api.ngc.nvidia.com/v2/catalog/containers/public-key --insecure-ignore-tlog=true <pinned-digest>, export CycloneDX SBOM, CVE, and VEX files via ngc registry image info <org>/<image>:<tag> --evidence vex, and confirm the evidence digest matches your target architecture digest. For pretrained models, verify the .sigstore bundle with the OpenSSF model-signing package.

Ready to Launch with Unmatched Power?

Ready to Launch with Unmatched Power? Deploy blazing-fast 1–100Gbps unmetered servers, high-performance GPU rigs, or game-optimized hosting custom-built for speed, reliability, and scale. Whether it’s colocation, compute-intensive tasks, or latency-critical applications, ServerMO delivers. Order now and get online in minutes, fully secured, fully optimized.

Red and white text reads '24x7' above bold purple 'SERVICES' on a white background, all set against a black backdrop. Energetic and modern feel.

Power. Performance. Precision.

99.99% Uptime Guarantee
24/7 Expert Support
Blazing-Fast NVMe SSD

Christmas Mega Sale!

Unwrap the ultimate power! Get massive holiday discounts on all Dedicated Servers. Offer ends soon grab yours before the snow melts!

London UK (15% OFF)
Tokyo Japan (10% OFF)
00Days
00Hrs
00Min
00Sec
Explore Grand Offers