Triton
Dynamo Triton Runtime (DRT) integrates NVIDIA Triton Inference Server into Dynamo’s distributed runtime. Models, across its full backend ecosystem (TensorRT, ONNX Runtime, PyTorch, Python, DALI, …), are served through the Dynamo Frontend over the KServe gRPC protocol. This enabled the Dynamo Triton Runtime to benefit from Dynamo’s service discovery and routing.
The runtime is composed exactly like the vLLM / SGLang / TensorRT-LLM runtimes: the Dynamo wheels are installed on top of the upstream Triton release image (nvcr.io/nvidia/tritonserver:<tag>).
That image is the build’s RUNTIME_IMAGE, so the result is a single “Dynamo + Triton” artifact.
Feature Support Matrix
Core Dynamo Features
Known Limitations
The KServe gRPC tensor path is still being completed. The Triton and KServe features below are not yet supported end-to-end through the Dynamo Frontend.
Discovery backend at scale.
The file discovery backend suits small repositories and the examples below for a simple quickstart.
A Dynamo Triton Runtime that registers a large repository (hundreds of models) in a single burst overflows the file watcher’s channels and can tear the Dynamo Frontend down before it reports ready.
Use the etcd discovery backend (--discovery-backend=etcd, with etcd running) for large repositories on bare-metal.
On Kubernetes, native k8s discovery will be used by default.
Container / Driver Matrix
The specific release of Triton Server is pinned in container/context.yaml under triton.cuda13.4 (runtime_image_tag/base_image_tag), the same way the other framework runtimes pin their images.
Prerequisites
- An NVIDIA GPU (Ampere or newer).
- NVIDIA device driver with a version greater-than-or-equal-to the version listed in the table above.
- Docker with the NVIDIA Container Toolkit installed.
Quick Start (prebuilt / release container)
-
Build the release image using source-built Dynamo wheels on the latest Triton release:
The
ai-dynamowheels are built from source and installed on top of the Triton release image, so the running Dynamo matches this repository.--network=hostis required at build time to fetch their Python dependencies from PyPI. -
Run the container:
Add
-v /path/to/models:/modelsto mount your own model repository. -
Start the Dynamo Frontend and Dynamo Triton Runtime inside the container:
Mirroring the other Dynamo runtimes, run the Dynamo Frontend and the Dynamo Triton Runtime as two processes that find each other over file-based discovery (no etcd/NATS required). Triton serves tensor models, so the Dynamo Frontend exposes the KServe gRPC endpoint (
--kserve-grpc-server) rather than the OpenAI HTTP API:The Dynamo Triton Runtime exposes the full
triton_runtime.Optionssurface as flags, named to match Triton’stritonserverCLI — runpython3 -m dynamo.triton --helpfor the complete list. The in-process Triton server finds its backends via the image’sLD_LIBRARY_PATHand the Dynamo Triton Runtime’s default backend directory (/opt/tritonserver/backends), so no extra environment setup is needed. -
Send an inference request:
Tensor models use the KServe gRPC protocol, so requests go through the bundled gRPC client rather than
curl. Point the client at the Dynamo Frontend’s port —client.pydefaults to8787, while the Dynamo Frontend above listens on8001, matching thetritonserverconvention:
Worker Configuration
The Dynamo Triton Runtime exposes the full triton_runtime.Options surface as CLI flags, named to match Triton’s tritonserver CLI.
Run python3 -m dynamo.triton --help for the complete list.
Common Flags
Environment Variables
Adding Your Own Models
-
Create a model directory in your repository:
-
Define the model config (
config.pbtxt): -
Launch the Dynamo Triton Runtime:
<Note> The Dynamo Triton Runtime will default to reading models from
/modelsunless the--model-repositoryoption is used to override the location.</Note>
Serving /v1/classify (OpenAI Classify)
Start the Dynamo Triton Runtime with --task classify to expose a Triton classifier through the OpenAI-compatible POST /v1/classify endpoint on the Dynamo Frontend, instead of the KServe tensor path.
The Dynamo Frontend translates the classify JSON into a Dynamo tensor request.
The Dynamo Frontend then forwards it to the Dynamo Triton Runtime as a single BYTES text input, and reads a single FP32 probability output back — no HuggingFace tokenizer or config.json fetch is required.
Expected Model Shape
The Dynamo Triton Runtime reads the input/output tensor names from config.pbtxt.
Any model, leaf or ensemble, that declares exactly one TYPE_STRING input and exactly one TYPE_FP32 output serves classify unchanged.
The STRING input must declare dims: [ 1 ] or dims: [ -1 ] (one string per request item); other layouts are rejected at startup.
An ensemble that runs tokenization inside Triton (Python-backend tokenizer plus a TensorRT plan wired through ensemble_scheduling) is the intended shape:
When the model has more than one BYTES input or FP32 output, disambiguate with --classify-input-name / --classify-output-name.
Class labels come from Triton’s own label_filename on the output when set; when absent, response label fields are null.
Launching the Worker and Issuing a Request
The response shape mirrors vLLM’s /classify:
Notes and Limits
- Text input only (
"input": "..."or"input": ["..."]); token-ID variants (Tokens/TokenBatch) return HTTP 400. - Pooling (
/v1/pooling) is not yet served by the Dynamo Triton Runtime; requests withencoding_formatset are rejected. use_activation,add_special_tokens,truncate_prompt_tokens, andtruncation_sideare rejected with HTTP 400. The model owns tokenization and the classify head’s activation. The Dynamo Triton Runtime can neither apply nor skip them. A silent no-op would let clients relying on those semantics get a different classification per backend.- To serve the same underlying model on both
/v2/models/{name}/infer(tensor) and/v1/classify, run two Dynamo Triton Runtime processes against the same--model-repository— one with the default--task=tensorand one with--task=classify. - Model aliases (multiple served names for one card) are not honored on this path.
Serving /v1/embeddings (OpenAI Embeddings)
Start the Dynamo Triton Runtime with --task embeddings to expose an embedding model through the OpenAI-compatible POST /v1/embeddings endpoint on the Dynamo Frontend, instead of the KServe tensor path.
The Dynamo Frontend translates the embeddings JSON into a Dynamo tensor request, the Dynamo Triton Runtime forwards it to Triton as a single BYTES text input, and reads a single FP32 vector output back, so no HuggingFace tokenizer or config.json fetch is required.
Expected Model Shape
The Dynamo Triton Runtime auto-detects the input/output tensor names from config.pbtxt.
Any model (leaf plan or ensemble) that declares exactly one TYPE_STRING input and exactly one TYPE_FP32 output serves embeddings unchanged.
The STRING input must declare dims: [ 1 ] or dims: [ -1 ] (one string per request item); other layouts are rejected at startup.
An ensemble that runs tokenization inside Triton (Python-backend tokenizer plus a TensorRT plan wired through ensemble_scheduling) is the intended shape:
When the model has more than one BYTES input or FP32 output, disambiguate with --embeddings-input-name / --embeddings-output-name.
The output vector length is whatever the model’s FP32 output declares; the Dynamo Triton Runtime does not reshape or truncate it.
Model Repository Layout
A single Dynamo Triton Runtime process serves one task.
--task embeddings registers every user-facing model in --model-repository as an embedding, so every model in the repo must be shaped STRING-in / FP32-out. A classifier or raw-tensor model mixed into the same repo makes startup fail with the mismatched model’s name in the error.
Ensemble dependency models (tokenizer, encoder, anything referenced from another model’s ensemble_scheduling.step[].model_name) are the exception: they stay loaded in Triton so their parent ensemble can call them, but they are not registered as /v1/embeddings endpoints, so an ensemble + its dependencies are the intended repo shape.
To serve multiple tasks from the same underlying models, run one Dynamo Triton Runtime process per task against repositories dedicated to that task.
Launching the Worker and Issuing a Request
The response shape mirrors OpenAI’s /v1/embeddings:
The Dynamo Triton Runtime emits every vector as base64-encoded little-endian FP32 bytes on the Dynamo wire.
The Dynamo Frontend decodes to a float array at the HTTP boundary when the client omits encoding_format or sets it to "float".
The Dynamo Frontend then forwards the base64 string unchanged when the client sets encoding_format: "base64".
Notes and Limitations
- Text input only (
"input": "..."or"input": ["..."]); token-ID variants (Tokens/TokenBatch) return HTTP 400. dimensions(Matryoshka truncation),add_special_tokens, andtruncate_prompt_tokensare rejected with HTTP 400. The model owns tokenization and the output dimension is fixed by the model; a silent no-op would let clients relying on those semantics get a different embedding per backend.encoding_formatonly accepts"float"(default) and"base64"; other values return HTTP 400.- To serve the same underlying model on both
/v2/models/{name}/infer(tensor) and/v1/embeddings, run two Dynamo Triton Runtime processes against the same--model-repository: one with the default--task=tensorand one with--task=embeddings. - Model aliases (multiple served names for one card) are not honored on this path.
Configuring the Triton Version
The Triton release is pinned by triton.cuda13.4.runtime_image_tag in container/context.yaml (default 26.09-py3), mirroring how the other framework runtimes pin their images.
The CUDA family is fixed by the Triton release, so --cuda-version is auto-derived; passing it explicitly is rejected.
To build with a different Triton release, override RUNTIME_IMAGE_TAG at build time (no context.yaml edit needed).
Keep BASE_IMAGE_TAG on CUDA 13.1 (default 26.02-cuda13.1-devel-ubuntu24.04):
the Rust cudarc crate rejects other CUDA versions at build time, and the wheels load CUDA dynamically so they run on the 13.4 runtime image regardless:
To make a release the default, edit triton.cuda13.4 in container/context.yaml.
Metrics
Metric collection and reporting is enabled by default (--allow-metrics).
The Dynamo Triton Runtime serves Triton’s native nv_* metrics from Dynamo’s /metrics endpoint alongside the dynamo_* metrics; set DYN_SYSTEM_PORT to expose that endpoint:
The nv_* metrics are collected on each scrape of /metrics.
Pass --allow-metrics=false to stop collection and exclude them from the endpoint.
Troubleshooting
”Model not found” Error
- Verify the model exists in
/models/<model_name>/. - Check that
config.pbtxtis valid. - Ensure the backend is available in the backend directory (
/opt/tritonserver/backends).
Worker Fails to Start
- Verify GPU is available:
nvidia-smi. - Confirm the model repository path is mounted into the container.
- Increase log verbosity:
--log-verbose=1(or higher for more detail).
How it Works
The Dynamo Triton Runtime (components/src/dynamo/triton/main.py):
- Starts an in-process server object.
- Loads all models from the model repository.
- Reads each model’s configuration (
config.pbtxt). - Registers each model with the Dynamo runtime, keyed on
--task:tensor(default):ModelInput.Tensor/ModelType.TensorBased— Dynamo Frontend hosted KServe gRPC endpoint. Requests are translated to Triton inference requests and streamed back as Dynamo tensors.classify:ModelInput.Text/ModelType.Classify— Dynamo Frontend hostedPOST /v1/classify. Requests are translated to a singleBYTEStext input and theFP32probability output is wrapped in the OpenAI classify response shape.embed:ModelInput.Text/ModelType.Embedding: Dynamo Frontend hostedPOST /v1/embeddings. Requests are translated to a singleBYTEStext input and theFP32vector output is base64-encoded on the wire. Then the Dynamo Frontend decodes to a float-array at the HTTP boundary when the client asks for float.
- Each model is served on its own endpoint (
triton.<model_name>), meaning a single Dynamo Triton Runtime can serve multiple models routed by name.