TOOL WIKI · MODELS & SERVING
NVIDIA Triton
Serves trained models through a configurable inference-server runtime.
Jump to a section 10 sections
EXAMPLE USE CASE
Verify tensor I/O and readiness for a versioned service model
An agent application needs a working model or inference-service boundary before adding retrieval, tools and production traffic.
- Input
- An ORDER_ID BYTES input sent to the asg_order Python backend.
- Expected output
- A STATUS BYTES output containing packed.
- Success check: The model loads from its versioned repository and returns a BYTES output containing packed.
- Try a failure: Wrong tensor names/types or a model-load failure must block inference acceptance.
Example scope: Actual CPU Python-backend serving fixture; this is not an LLM, GPU benchmark or agent loop.
Official reference · NVIDIA Triton
Choose the model endpoint and send only the context required for this task.
Infrastructure that needs model-serving components on controlled hardware. Check backend compatibility and the performance of the full inference path.
Make the actual provider, weights, hardware, and supported API explicit.
resultTo 04 · Model responseValidate the returned structure and route proposed tools through application policy.
Capture failures, token use, queue time, and response latency.
outputTo 06 · EvaluationCompare the deployed model configuration against repeatable fixtures.
Result or stopping point
Infrastructure that needs model-serving components on controlled hardware. Check backend compatibility and the performance of the full inference path.
When to consider it
- Infrastructure that needs model-serving components on controlled hardware.
A design decision to make
- Check backend compatibility and the performance of the full inference path.
Prerequisites and setup
- Docker on a Triton-supported Linux host with enough resources for the official 26.11 container. The sample Python backend runs on CPU.
mkdir -p model_repository/asg_order/1Try a small integration
model_repository/asg_order/config.pbtxt
name: "asg_order"
backend: "python"
max_batch_size: 0
input [{ name: "ORDER_ID" data_type: TYPE_STRING dims: [1] }]
output [{ name: "STATUS" data_type: TYPE_STRING dims: [1] }]
instance_group [{ kind: KIND_CPU }]model_repository/asg_order/1/model.py
import numpy as np
import triton_python_backend_utils as pb_utils
class TritonPythonModel:
def execute(self, requests):
responses = []
for request in requests:
value = pb_utils.get_input_tensor_by_name(request,"ORDER_ID").as_numpy().reshape(-1)[0]
order_id = value.decode() if isinstance(value,bytes) else str(value)
status = {"A104":"packed"}.get(order_id,"not_found")
tensor = pb_utils.Tensor("STATUS",np.array([status.encode()],dtype=object))
responses.append(pb_utils.InferenceResponse(output_tensors=[tensor]))
return responsesrequest.json
{"inputs":[{"name":"ORDER_ID","shape":[1],"datatype":"BYTES","data":["A104"]}]}Run and check the result
docker run --rm --name asg-triton --shm-size=256m -p 127.0.0.1:8010:8000 \
-v "$PWD/model_repository:/models:ro" nvcr.io/nvidia/tritonserver:26.11-py3 \
tritonserver --model-repository=/models
# In another terminal:
curl --fail http://localhost:8010/v2/health/ready
curl --fail http://localhost:8010/v2/models/asg_order/infer \
-H "Content-Type: application/json" -d @request.json- The model loads from its versioned repository and returns a BYTES output containing packed.
- This CPU Python-backend fixture checks the inference contract; real GPU models need their own backend/configuration and resources.
Common failures
- A healthy HTTP server does not prove the model loaded or a request completed. Check model readiness and an actual response separately.
- Model identifiers, context length and supported parameters differ by backend; do not assume an OpenAI-compatible endpoint supports every API feature.
Production decisions
- Pin the model, tokenizer/chat template, runtime and request settings. Benchmark the actual workload for latency, memory, concurrency and quality.
- Keep model endpoints authenticated and scoped; cap request/output sizes, enforce deadlines and redact telemetry.
Keep exploring
Explore the same layer
Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.