MCPcopy Index your code
hub / github.com/triton-inference-server/server

github.com/triton-inference-server/server @v2.70.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.70.0 ↗
3,331 symbols 9,348 edges 396 files 341 documented · 10%
README

License

Triton Inference Server

Triton Inference Server is an open source inference serving software that streamlines AI inferencing. Triton enables teams to deploy any AI model from multiple deep learning and machine learning frameworks, including TensorRT, PyTorch, ONNX, OpenVINO, Python, RAPIDS FIL, and more. Triton Inference Server supports inference across cloud, data center, edge and embedded devices on NVIDIA GPUs, x86 and ARM CPU, or AWS Inferentia. Triton Inference Server delivers optimized performance for many query types, including real time, batched, ensembles and audio/video streaming. Triton inference Server is part of NVIDIA AI Enterprise, a software platform that accelerates the data science pipeline and streamlines the development and deployment of production AI.

Major features include:

New to Triton Inference Server? Make use of these tutorials to begin your Triton journey!

Join the Triton and TensorRT community and stay current on the latest product updates, bug fixes, content, best practices, and more. Need enterprise support? NVIDIA global support is available for Triton Inference Server with the NVIDIA AI Enterprise software suite.

Serve a Model in 3 Easy Steps

# Step 1: Create the example model repository
git clone -b r26.06 https://github.com/triton-inference-server/server.git
cd server/docs/examples
./fetch_models.sh

# Step 2: Launch triton from the NGC Triton container
docker run --gpus=1 --rm --net=host -v ${PWD}/model_repository:/models nvcr.io/nvidia/tritonserver:26.06-py3 tritonserver --model-repository=/models --model-control-mode explicit --load-model densenet_onnx

# Step 3: Sending an Inference Request
# In a separate console, launch the image_client example from the NGC Triton SDK container
docker run -it --rm --net=host nvcr.io/nvidia/tritonserver:26.06-py3-sdk /workspace/install/bin/image_client -m densenet_onnx -c 3 -s INCEPTION /workspace/images/mug.jpg

# Inference should return the following
Image '/workspace/images/mug.jpg':
    15.346230 (504) = COFFEE MUG
    13.224326 (968) = CUP
    10.422965 (505) = COFFEEPOT

Please read the QuickStart guide for additional information regarding this example. The quickstart guide also contains an example of how to launch Triton on CPU-only systems. New to Triton and wondering where to get started? Watch the Getting Started video.

Examples and Tutorials

Check out NVIDIA LaunchPad for free access to a set of hands-on labs with Triton Inference Server hosted on NVIDIA infrastructure.

Specific end-to-end examples for popular models, such as ResNet, BERT, and DLRM are located in the NVIDIA Deep Learning Examples page on GitHub. The NVIDIA Developer Zone contains additional documentation, presentations, and examples.

Documentation

Build and Deploy

The recommended way to build and use Triton Inference Server is with Docker images.

Using Triton

Preparing Models for Triton Inference Server

The first step in using Triton to serve your models is to place one or more models into a model repository. Depending on the type of the model and on what Triton capabilities you want to enable for the model, you may need to create a model configuration for the model.

Configure and Use Triton Inference Server

Client Support and Examples

A Triton client application sends inference and other requests to Triton. The Python and C++ client libraries provide APIs to simplify this communication.

Extend Triton

Triton Inference Server's architecture is specifically designed for modularity and flexibility

Additional Documentation

Contributing

Contributions to Triton Inference Server are more than welcome. To contribute please review the contribution guidelines. If you have a backend, client, example or similar contribution that is not modifying the core of Triton, then you should file a PR in the contrib repo.

Reporting problems, asking questions

We appreciate any feedback, questions or bug reporting regarding this project. When posting issues in GitHub, follow the process outlined in the Stack Overflow document. Ensure posted examples are: - minimal – use as little code as possible that still produces the same problem - complete – provide all parts needed to reproduce the problem. Check if you can strip external dependencies and still show the problem. The less time we spend on reproducing problems the more time we have to fix it - verifiable – test the code you're about to provide to make sure it reproduces the problem. Remove all other problems that are not relate

Core symbols most depended-on inside this repo

cleanup_shm_regions
called by 102
qa/common/sequence_util.py
load_model
called by 96
python/openai/openai_frontend/engine/engine.py
np_to_model_dtype
called by 95
qa/common/gen_common.py
precreate_register_regions
called by 86
qa/common/sequence_util.py
exec
called by 50
qa/python_models/generate_models/mock_llm/1/model.py
trt_set_dynamic_range
called by 47
qa/common/gen_common.py
comment
called by 44
build.py
Probe
called by 42
qa/common/shm_util.py

Shape

Method 2,230
Function 558
Class 529
Route 13
Enum 1

Languages

Python98%
Java2%

Modules by API surface

python/openai/openai_frontend/schemas/openai.py95 symbols
build.py78 symbols
qa/L0_lifecycle/lifecycle_test.py57 symbols
qa/L0_long_running_stress/scenarios.py55 symbols
python/openai/tests/test_model_management.py51 symbols
qa/L0_infer/infer_test.py49 symbols
qa/L0_trace/opentelemetry_unittest.py43 symbols
qa/L0_cuda_shared_memory/cuda_shared_memory_test.py41 symbols
qa/L0_sequence_batcher/sequence_batcher_test.py40 symbols
qa/L0_shared_memory/shared_memory_test.py38 symbols
qa/L0_model_update/instance_update_test.py38 symbols
qa/L0_batcher/batcher_test.py36 symbols

Dependencies from manifests, versioned

fastapi0.121.2 · 1×
httpx0.27.2 · 1×
openai1.107.3 · 1×
pytest8.1.1 · 1×
pytest-asyncio0.23.8 · 1×
scipy1.16.3 · 1×
starlette0.49.1 · 1×

For agents

$ claude mcp add server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact