Unit 1 of 16

What is NVIDIA Triton Inference Server?

  • 60 min
  • Reading, walkthrough, and knowledge check

What you’ll learn

  • Explain which serving tasks NVIDIA Triton Inference Server consolidates across frameworks and which tasks stay in cluster orchestrators.
  • Trace one inference request through Triton’s network frontends, per-model schedulers, rate limiter, backend instances, and telemetry surface.
  • Calculate both the GPU memory savings and the M/M/1 queueing latency penalty when packing multiple models onto one GPU.
  • Verify a pinned Triton 2.74.0 (NGC 26.10) container deployment using health, metadata, and Prometheus metrics endpoints.

What Triton consolidates around your models

Suppose your retrieval service cleans queries in Python, scores passages with an ONNX cross-encoder, filters toxicity with a TensorRT classifier, and generates answers with an LLM. Wrapping each stage in its own FastAPI server forces four separate HTTP stacks, four batching loops, and separate GPU containers. Each Python process creates its own CUDA primary context, claiming 400 MiB to 600 MiB of GPU memory before loading a single weight, and every pipeline hop pays JSON serialization latency across localhost or the network.

NVIDIA Triton Inference Server solves single-node multi-model fragmentation by placing all of those frameworks behind one server process. Released in v2.74.0 (container tag nvcr.io/nvidia/tritonserver:26.10-py3, built on Ubuntu 24.04, Python 3.12, CUDA 13.4.3, TensorRT 11.4, and ONNX Runtime 1.30.0), it runs heterogeneous models inside one binary. Triton loads models from a versioned repository, exposes one KServe v2 HTTP and gRPC contract, batches requests per model, executes backends concurrently across CPUs and GPUs, and exports unified Prometheus metrics.

Boundary between your training stack, Triton, and cluster orchestration
ResponsibilityOwnerWhere you configure it
Weight training and FP16 or INT8 calibrationOffline build pipelinePyTorch, ONNX export, or TensorRT engine build
Model discovery, versioning, and load stateTriton model managerRepository layout, version_policy, and --model-control-mode
HTTP/REST, gRPC, and binary wire decodingTriton protocol frontendsPorts 8000 and 8001, plus server CLI flags
Batching, priority queues, and GPU instance countsTriton schedulers and backendsconfig.pbtxt per model (dynamic_batching, instance_group)
Cross-node routing, autoscaling, and authKubernetes, gateway, or NVIDIA DynamoIngress, HPA, and upstream fleet routers

Understanding this boundary prevents wasted tuning. Triton does not train weights, terminate end-user authentication tokens, or route KV-cache prefixes across separate GPU nodes. It owns everything inside one host: turning raw model artifacts into a high-utilization, observable serving endpoint with shared CUDA contexts and zero-copy pipelines between co-located models.

Client SDKHTTP orgRPCKServe v2Frontendports 8000,8001Schedulersbatch andrate limitBackendsPython,ONNX, TRT,vLLMTelemetryPrometheusport 8002InstanceGroupsCPU and GPUVRAMv2queuebatchrunwaitcomputeTriton coreexecution backendobservabilitycompute
Inside one Triton process, a single protocol frontend feeds per-model schedulers and pluggable execution backends while port 8002 reports server health and Prometheus telemetry.

Follow one request from socket to backend

Every request enters through one of three interfaces: HTTP/REST on port 8000, gRPC on port 8001, or the in-process C API (TRITONSERVER_*). Because the frontends are compiled C++ components rather than Python handlers, Triton avoids Python Global Interpreter Lock (GIL) contention while parsing JSON, protobuf payloads, or raw binary tensor buffers.

  1. 1. Parse protocol headers and validate tensors

    The HTTP or gRPC server decodes the target model name, optional version number, tensor shapes, and data types. When --allow-client-shm=true is enabled (required explicitly since release 26.04), Triton resolves registered POSIX or CUDA shared memory handles without copying tensor bytes.

  2. 2. Check model readiness and version policy

    Triton looks up the requested model version in its loaded registry. If the model is UNAVAILABLE or UNLOADED, or if the input shape violates config.pbtxt, the frontend rejects the request immediately before allocating backend work.

  3. 3. Queue in the per-model scheduler

    Each model chooses its scheduler in config.pbtxt: dynamic batching groups concurrent requests, sequence batching binds correlation IDs to persistent slots, or max_batch_size: 0 bypasses batching entirely for decoupled backends such as vllm.

  4. 4. Acquire a slot from the rate limiter

    When --rate-limit=execution_count is active, the global rate limiter arbitrates execution across co-located models using priority levels and declared resource counts so background jobs do not starve interactive calls.

  5. 5. Run the backend instance on CPU or GPU

    An idle worker thread from the model’s instance_group receives the TRITONBACKEND_Request batch, runs CUDA kernels or Python logic inside libtriton_<backend>.so, and populates output tensors (or streams chunks asynchronously for decoupled models).

  6. 6. Emit response, cache entry, and metrics

    Triton writes the response to the client socket, optionally stores exact-match outputs in the response cache, and increments per-model counters (nv_inference_count, nv_inference_exec_count, queue duration, and compute duration) on port 8002.

Container platform details also changed across recent releases. In NGC 26.10, Triton targets Linux hosts (nvcr.io/nvidia/tritonserver:26.10-py3 for the server and 26.10-py3-sdk for clients and benchmarking tools). Windows native server builds were dropped in release 26.06, so Windows developers run the Python validation scripts locally and run the server container inside Linux or WSL2 with Docker.

The math of multi-model GPU packing

Putting multiple small or medium models on one GPU saves expensive hardware only if you check both memory capacity and compute utilization. Memory is additive and easy to check on paper, whereas queue waiting time grows nonlinearly as combined GPU utilization approaches 100%.

Assume three retrieval models share one 80 GB GPU (embedder at 1.8 GB, reranker at 3.2 GB, and classifier at 0.9 GB), plus 1.6 GB of shared Triton runtime and CUDA context overhead. Under Poisson arrivals, a single GPU acts approximately like an M/M/1 queue for short non-preemptive kernels: if combined utilization rho equals the sum of each model’s arrival rate times its service time (lambda_i × S_i), the mean queue wait is W_q = (rho / (1 - rho)) × S_avg.

Packing three retrieval models onto one 80 GB GPU (illustrative workload)

  1. Dedicated 3-GPU memory footprint3 × 80.0 GB = 240.0 GB provisioned for 5.9 GB of weights
  2. Packed 1-GPU VRAM footprint1.8 + 3.2 + 0.9 + 1.6 (shared overhead) = 7.5 GB of 80.0 GB
  3. Embedder utilization (140 req/s × 2.4 ms)0.336 (33.6%), dedicated M/M/1 wait = 1.21 ms
  4. Reranker utilization (90 req/s × 4.2 ms)0.378 (37.8%), dedicated M/M/1 wait = 2.55 ms
  5. Classifier utilization (180 req/s × 1.1 ms)0.198 (19.8%), dedicated M/M/1 wait = 0.27 ms
  6. Combined packed utilization (rho)0.336 + 0.378 + 0.198 = 0.912 (91.2%)
  7. Request-weighted mean service time(140 × 2.4 + 90 × 4.2 + 180 × 1.1) / 410 = 2.224 ms
  8. Estimated packed M/M/1 queue wait(0.912 / (1 - 0.912)) × 2.224 ms = 23.05 ms

ResultPacking frees 2 GPUs (160 GB) while fitting in 7.5 GB VRAM, at the cost of raising mean queue wait from 0.27–2.55 ms to 23.05 ms

Notice the lesson inside those numbers. The packed server uses less than 10% of the 80 GB card’s memory, yet runs at 91.2% compute utilization. At 91.2% utilization, the queue multiplier rho / (1 - rho) exceeds 10×, turning sub-3 ms individual waits into a 23.05 ms shared queue delay even before accounting for batching gains or priority preemption.

0102030Classifier (dedicated, 19.8% util)Classifier (dedicated, 19.8% util): 0.27 ms0.27 msEmbedder (dedicated, 33.6% util)Embedder (dedicated, 33.6% util): 1.21 ms1.21 msReranker (dedicated, 37.8% util)Reranker (dedicated, 37.8% util): 2.55 ms2.55 msTriton 1-GPU packed (91.2% util)Triton 1-GPU packed (91.2% util): 23.05 ms23.05 msIllustrative values, not measurements.
Packing three models onto one GPU eliminates 2 idle GPUs, but pushing combined utilization to 91.2% raises mean queue wait nearly tenfold compared to dedicated GPUs.

Try it: sweep traffic growth against GPU saturation

Run this small Python simulation on your laptop to see the exact knee of the utilization curve. It scales request arrival rates from 0.50x up to 1.10x on the three-model packed GPU and computes combined utilization alongside M/M/1 mean wait time.

packing_sweep.py
MODELS = [
    ("embedder", 140.0, 2.4),
    ("reranker", 90.0, 4.2),
    ("classifier", 180.0, 1.1),
]

for scale in (0.50, 0.75, 0.90, 1.00, 1.05, 1.10):
    rps_sum = sum(rps * scale for _, rps, _ in MODELS)
    rho = sum((rps * scale) * (svc / 1000.0) for _, rps, svc in MODELS)
    svc_avg = sum((rps * scale) * svc for _, rps, svc in MODELS) / rps_sum
    if rho >= 1.0:
        status = "SATURATED (queue grows without bound)"
    else:
        wait_ms = (rho / (1.0 - rho)) * svc_avg
        status = f"mean_wait={wait_ms:6.2f} ms"
    print(
        f"scale={scale:4.2f}x  rps={rps_sum:5.1f}  "
        f"util={rho * 100:5.1f}%  {status}"
    )
You should see
scale=0.50x  rps=205.0  util= 45.6%  mean_wait=  1.86 ms
scale=0.75x  rps=307.5  util= 68.4%  mean_wait=  4.81 ms
scale=0.90x  rps=369.0  util= 82.1%  mean_wait= 10.19 ms
scale=1.00x  rps=410.0  util= 91.2%  mean_wait= 23.05 ms
scale=1.05x  rps=430.5  util= 95.8%  mean_wait= 50.24 ms
scale=1.10x  rps=451.0  util=100.3%  SATURATED (queue grows without bound)

Watch how gently queue wait moves between 0.50x (1.86 ms) and 0.75x (4.81 ms), and how sharply it bends between 0.90x (10.19 ms) and 1.05x (50.24 ms) before crossing 100% at 1.10x. In production, you rarely run a latency-sensitive GPU at 95% raw single-request utilization; instead, you enable dynamic batching to cut per-item service time and set rate-limiter priorities so critical requests jump ahead of background work.

Common mistakes when adopting Triton

Early deployment mistakes, symptoms, and fixes
SymptomLikely causeFix
Single already-saturated LLM shows zero speedup inside TritonTriton does not replace vLLM or TensorRT-LLM kernels; one GPU saturated by one model has no idle compute to reclaim.Use Triton when co-locating models, running multi-stage pipelines, or standardizing KServe v2 telemetry across backends.
Container pulls break unexpectedly across environmentsManifest used floating unpinned container tags, shifting CUDA, TensorRT, and Python versions.Pin explicit NGC tags such as nvcr.io/nvidia/tritonserver:26.10-py3 and 26.10-py3-sdk alongside image digests.
Shared memory clients fail on Triton 26.04+ or 26.10Client-registered POSIX and CUDA shared memory is disabled by default for security since 26.04.Pass --allow-client-shm=true only inside trusted pods or private networks.
Native Windows deployment fails to locate tritonserver.exeWindows native server builds were removed starting in release 26.06.Run tritonserver:26.10-py3 on Linux hosts or Linux containers under WSL2.
Multi-node LLM prefix hits stay low behind a round-robin load balancerEach Triton server schedules locally on one host and does not share KV-cache prefix maps across pods.Place a KV-aware router such as NVIDIA Dynamo above Triton or disaggregated LLM workers.

How Triton fits with vLLM, SGLang, and fleet routers

Production serving architectures usually stack three layers rather than picking one tool for everything. At the kernel and batching layer, engines like TensorRT, ONNX Runtime, and vllm execute tensor operations on hardware. In the middle, Triton hosts one or more of those backends together on a node behind a uniform KServe v2 interface, handling pre/post-processing, ensembles, Business Logic Scripting (BLS), and mixed CPU/GPU execution.

Above individual Triton pods, Kubernetes Ingress or a cluster router handles TLS termination, tenant authentication, horizontal pod autoscaling, and multi-node routing. When serving pure multi-node LLMs that need prefix-aware KV routing or disaggregated prefill and decode pools, a fleet layer like NVIDIA Dynamo sits above engine workers, while Triton excels when pipelines combine classic ML, embeddings, rerankers, vision, and LLM backends on shared hosts.

Go deeperInside Triton's C backend ABI and Python stub isolation

Every Triton backend compiles into a shared library named libtriton_<backend>.so implementing the C Backend API (TRITONBACKEND_Initialize, TRITONBACKEND_ModelInstanceExecute). Because the server core passes batches of opaque TRITONBACKEND_Request structs across a pure C ABI, new backends like vllm or custom C++ operators plug into the exact same scheduler and telemetry pipeline without recompiling tritonserver.

The Python backend works differently to protect the C++ core from Python’s GIL. For each Python instance_group entry, Triton spawns an isolated stub process running Python 3.12 (26.10-py3) and passes input/output tensors through internal shared memory rather than copying them over sockets. That internal shared memory remains active even when --allow-client-shm=false, because the server controls both ends of the stub pipe.

Cheat sheet

  • NVIDIA Triton Inference Server v2.74.0 (NGC 26.10-py3) runs on Ubuntu 24.04 with Python 3.12, CUDA 13.4.3, TensorRT 11.4, and ONNX Runtime 1.30.0.
  • Windows native server builds ended in 26.06; client shared memory requires --allow-client-shm=true since 26.04.
  • Never use floating container tags in production configs or CI pipelines; pin nvcr.io/nvidia/tritonserver:26.10-py3 and 26.10-py3-sdk.
  • Triton listens on port 8000 (HTTP/REST), port 8001 (gRPC), and port 8002 (Prometheus /metrics).
  • Co-locating models saves GPUs and CUDA contexts, while combined utilization rho drives M/M/1 queue wait via rho / (1 - rho).
  • Triton owns single-node multi-framework serving; place gateways or cluster orchestrators above it for auth, TLS, and multi-node routing.

Walkthrough

Decide and trace a multi-model Triton server

Triton request traceReady
Code example Optional · 01_multi_model_gpu_packing.py
python
"""Compare dedicated single-model GPUs against Triton multi-model packing."""

GPU_CAPACITY_GB = 80.0
MODELS = [
    {"name": "embedder", "vram_gb": 1.8, "rps": 140.0, "svc_ms": 2.4},
    {"name": "reranker", "vram_gb": 3.2, "rps": 90.0, "svc_ms": 4.2},
    {"name": "classifier", "vram_gb": 0.9, "rps": 180.0, "svc_ms": 1.1},
]


def mm1_wait_ms(rps: float, svc_ms: float) -> float:
    rho = rps * (svc_ms / 1000.0)
    if rho >= 1.0:
        raise ValueError(f"unstable queue: utilization {rho:.2f}")
    return (rho / (1.0 - rho)) * svc_ms


def main() -> None:
    dedicated_gpus = len(MODELS)
    total_vram_gb = sum(m["vram_gb"] for m in MODELS)
    shared_overhead_gb = 1.6  # Triton server + CUDA contexts
    packed_vram_gb = total_vram_gb + shared_overhead_gb

    dedicated_utils = [m["rps"] * m["svc_ms"] / 1000.0 for m in MODELS]
    packed_util = sum(dedicated_utils)
    assert packed_vram_gb < GPU_CAPACITY_GB
    assert packed_util < 1.0

    tot_gb = dedicated_gpus * GPU_CAPACITY_GB
    print(f"Dedicated GPUs: {dedicated_gpus} ({tot_gb:.0f} GB)")
    for model in MODELS:
        util = model["rps"] * model["svc_ms"] / 1000.0
        wait = mm1_wait_ms(model["rps"], model["svc_ms"])
        print(
            f"  {model['name']:<10} vram={model['vram_gb']:.1f}GB "
            f"util={util * 100:4.1f}% mean_wait={wait:4.2f}ms"
        )

    weighted_svc = sum(m["rps"] * m["svc_ms"] for m in MODELS) / sum(
        m["rps"] for m in MODELS
    )
    packed_wait = (packed_util / (1.0 - packed_util)) * weighted_svc
    print(
        f"Triton 1-GPU packed: vram={packed_vram_gb:.1f}/80.0GB "
        f"total_util={packed_util * 100:.1f}% est_wait={packed_wait:.2f}ms"
    )
    assert packed_util > max(dedicated_utils)
    assert dedicated_gpus - 1 == 2
    print(f"GPUs saved by packing: {dedicated_gpus - 1}")


if __name__ == "__main__":
    main()

Quick reference

APIs and configuration

API or settingWhat it doesInputOutputLimitations
HTTP/REST (`:8000`)Serve KServe v2 inference, health, metadata, and repository control over HTTP/1.1JSON or binary-framed tensor payloads on /v2/models/<name>/inferInference tensors, JSON metadata, or HTTP 200/400/503 readiness statusDefault JSON arrays serialize floats as text; use binary extensions or gRPC for large tensors.
gRPC (`:8001`)Serve unary and streaming KServe v2 Protobuf requests over HTTP/2ModelInferRequest messages with typed arrays or raw_input_contentsModelInferResponse messages or bidirectional decoupled token streamsLong-lived HTTP/2 connections require L7 gRPC load balancing rather than naive L4 round-robin.
Prometheus (`:8002`)Expose per-model request, batch, queue, compute, and GPU device metricsGET /metrics HTTP scrapePrometheus text exposition (nv_inference_count, nv_gpu_utilization, and durations)Do not expose port 8002 publicly; bind it to cluster monitoring scrapers only.
C Backend API (`libtriton_*.so`)Execute custom C++ or framework inference logic inside tritonserverTRITONBACKEND_Request batch arrays passed from per-model schedulersTRITONBACKEND_Response buffers written to caller-allocated memoryBackends share the server process address space unless isolated like the Python stub.

Optional deployment reference

Boot a pinned Triton 26.10 server and inspect its three ports

Create a minimal CPU Python model repository locally, launch the pinned nvcr.io/nvidia/tritonserver:26.10-py3 container on Linux, and verify health, metadata, and Prometheus endpoints across ports 8000 and 8002. You need Docker on Linux (or WSL2 on Windows, since native Windows server builds ended in 26.06); no GPU is required for this CPU Python test.

Before you start

  • A Linux host (or WSL2 Linux environment) with Docker installed and outbound access to nvcr.io.
  • Two terminal shells: one running tritonserver, one issuing curl checks.
  • Free local TCP ports 8000 (HTTP), 8001 (gRPC), and 8002 (Prometheus metrics).
Step 1

Create a minimal Python model repository

Create a models/echo_cpu directory with a config.pbtxt contract and version 1/model.py so Triton has one valid model to load on CPU without needing GPU hardware.

bash
mkdir -p models/echo_cpu/1
cat <<'EOF' > models/echo_cpu/config.pbtxt
name: "echo_cpu"
backend: "python"
max_batch_size: 8
input [ { name: "TEXT" data_type: TYPE_STRING dims: [ 1 ] } ]
output [ { name: "OUT" data_type: TYPE_STRING dims: [ 1 ] } ]
instance_group [ { count: 1 kind: KIND_CPU } ]
EOF
What to check

A models/echo_cpu/config.pbtxt file exists in your current directory.

Step 2

Write version 1 of the Python backend

Add 1/model.py returning the input string tensor unchanged so the model reaches READY state on startup.

bash
cat <<'EOF' > models/echo_cpu/1/model.py
import triton_python_backend_utils as pb_utils

class TritonPythonModel:
    def execute(self, requests):
        res = []
        for req in requests:
            inp = pb_utils.get_input_tensor_by_name(req, "TEXT")
            out = pb_utils.Tensor("OUT", inp.as_numpy())
            res.append(pb_utils.InferenceResponse(output_tensors=[out]))
        return res
EOF
What to check

The models/echo_cpu/1/model.py file exists alongside config.pbtxt.

Step 3

Start the pinned NGC 26.10 server container

Mount ./models read-only into /models and start tritonserver in explicit mode loading echo_cpu. Add --gpus all if you later attach GPU models.

bash
docker run --rm -p 8000:8000 -p 8001:8001 -p 8002:8002 \
  --shm-size=512m -v "$PWD/models:/models:ro" \
  nvcr.io/nvidia/tritonserver:26.10-py3 \
  tritonserver --model-repository=/models \
  --model-control-mode=explicit --load-model=echo_cpu
What to check

Server startup logs print Started HTTPService at 0.0.0.0:8000, Started GRPCInferenceService at 0.0.0.0:8001, Started Metrics Service at 0.0.0.0:8002, and echo_cpu | 1 | READY.

Step 4

Verify health, metadata, inference, and metrics

From a second terminal, probe /v2/health/ready, /v2, run one inference call, and scrape Prometheus inference counters on port 8002.

bash
curl -fsS -o /dev/null -w "ready=%{http_code}\n" \
  http://127.0.0.1:8000/v2/health/ready
curl -fsS http://127.0.0.1:8000/v2 | python3 -m json.tool
curl -fsS http://127.0.0.1:8000/v2/models/echo_cpu/infer \
  -H 'Content-Type: application/json' \
  -d '{"inputs":[{"name":"TEXT","shape":[1,1],"datatype":"BYTES","data":["ok"]}]}'
curl -fsS http://127.0.0.1:8002/metrics | grep nv_inference_count
What to check

Readiness returns ready=200. /v2 prints server version 2.74.0 and supported extensions. /infer returns "data":["ok"], and nv_inference_count{model="echo_cpu",version="1"} equals 1.

Settings explained

SettingWhat it controlsOperational guidance
--model-repositoryPath or cloud URI (s3://, gs://) holding versioned model directories.Mount local repositories read-only (:ro) in production containers when using none or explicit control modes.
--model-control-modeControls startup and runtime model loading (none, poll, or explicit).Use explicit in production so nothing loads without an explicit API call or --load-model flag.
--allow-client-shmBoolean gate enabling client-registered POSIX or CUDA shared memory.Defaults to false since 26.04; enable (true) only inside trusted network boundaries.
--shm-sizeDocker shared memory mount size (/dev/shm), used by the Python backend stub pipes.Set at least 512m or 1g instead of Docker’s tiny 64 MiB default to prevent Python backend bus errors.

Validation checklist

  • GET /v2/health/ready returns HTTP 200 after echo_cpu transitions to READY.
  • GET /v2 lists Triton 2.74.0 and protocol extension capabilities.
  • POST /v2/models/echo_cpu/infer echoes "ok" cleanly.
  • GET :8002/metrics shows nv_inference_count incrementing by 1 for echo_cpu.

Optional exercise

Measure baseline Triton HTTP latency and inspect how shared memory flags behave across containers.

  1. Run the four setup steps and record the /v2 JSON metadata output and container digest.
  2. Send 20 sequential HTTP inference calls in a loop and record time_total percentiles.
  3. Restart the server without --load-model=echo_cpu while keeping --model-control-mode=explicit, then inspect /v2/health/live vs /v2/health/ready.
What to save
Container image digest, /v2 metadata JSON, 20 latency timings, and status codes for /v2/health/live and /v2/health/ready.
Test a failure
Remove --shm-size=512m or corrupt 1/model.py with a syntax error and observe the exact UNAVAILABLE reason logged by tritonserver and reported by /v2/health/ready.
Cleanup
Stop the container with Ctrl+C and remove the temporary models/ folder (rm -rf models).

How to use it

When and how to use it

Deploy Triton Inference Server when one host needs to serve multiple models or frameworks (TensorRT, ONNX Runtime, PyTorch, Python preprocessing, or vLLM) with shared batching, ensembles, and standardized KServe v2 HTTP/gRPC endpoints.

Multi-framework execution

Run TensorRT, ONNX Runtime, PyTorch, OpenVINO, Python, vLLM, and TensorRT-LLM backends side by side inside one server process.

Per-model scheduling

Configure dynamic batching, stateful sequence batching, or bypassed iteration-level batching independently per model.

Zero-copy internal pipelines

Chain CPU preprocessing and GPU scoring with ensembles or Business Logic Scripting without extra network round trips.

Unified observability

Export per-model queue wait, compute time, batch efficiency, and GPU telemetry from port 8002.

System workflow

  1. 1

    Audit total GPU VRAM (weights, workspaces, plus ~1.6 GB server/CUDA overhead) before co-locating models.

  2. 2

    Sum utilization (rps × service_time) across models to confirm headroom below 100%.

  3. 3

    Pin an explicit NGC tag (26.10-py3) and configure explicit config.pbtxt contracts for every model.

  4. 4

    Verify /v2/health/live, /v2/health/ready, and /v2 metadata before sending traffic.

  5. 5

    Monitor nv_inference_queue_duration_us vs nv_inference_compute_infer_duration_us as concurrency scales.

Verify both VRAM and utilization headroom

vram_ok = sum(weights + workspaces) + 1.6_GB < 0.90 * gpu_vram
util_ok = sum(rps * svc_sec) < 0.80
What to expect

Co-located models fit inside GPU memory and stay off the steep M/M/1 queueing knee.

Troubleshooting

If something goes wrong

What you observeEvidence to collectNext experiment
Packing two models onto one GPU doubled p95 latency even though 70% of VRAM is free.Compare nv_inference_queue_duration_us against nv_inference_compute_infer_duration_us on port 8002 and check nv_gpu_utilization.If queue duration exceeds compute duration, total utilization rho is near saturation: enable dynamic batching, assign rate-limiter priorities, or move one model to another GPU.
Python backend model crashes on startup or under load with SIGBUS or Failed to increase shm pool.Inspect container logs for /dev/shm errors and run df -h /dev/shm inside the container.Restart the container with --shm-size=1g (Docker defaults to 64 MiB, which starves Python backend stub communication).
A client using POSIX or CUDA shared memory fails immediately after upgrading to NGC 26.10.Inspect tritonserver startup flags and error messages returned by /v2/systemsharedmemory/register.Pass --allow-client-shm=true explicitly (default became false in 26.04) and ensure the client is inside a trusted network boundary.
/v2/health/live returns HTTP 200, yet inference calls return 400 or 503.Query GET /v2/health/ready and POST /v2/repository/index to see each model’s actual state.Inspect the reason string on UNAVAILABLE models, or call /v2/repository/models/<name>/load if the server booted in explicit mode without --load-model.

Knowledge check

You pack three low-memory models onto one GPU so total VRAM is 7.5 GB out of 80 GB, but combined compute utilization hits 91.2%. What happens to mean queueing wait compared to running each model on its own GPU?

Choose one answer

Sources and further reading

Finished this unit?