# NVIDIA Triton 推理服务器

**NVIDIA Triton 推理服务器**（NVIDIA Triton Inference Server）是一款开源推理服务软件，可将任意主流框架训练好的 AI 模型部署到云端、数据中心或边缘的 GPU 或 CPU 基础设施上。它为 [TensorFlow](https://www.edgepedia.org/zh/tensorflow)、PyTorch、TensorRT、ONNX Runtime、OpenVINO、XGBoost 和 Python 等框架提供统一的标准化服务平台，无需再为每种模型类型单独配置框架专用的服务器。<sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup><sup> • </sup><sup>[2](https://github.com/triton-inference-server/server)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 开源推理服务软件，提供经过优化的云端与边缘推理解决方案，采用 BSD-3-Clause 许可证<sup>[2](https://github.com/triton-inference-server/server)</sup> |
| 支持的框架 | TensorFlow、PyTorch、TensorRT、XGBoost、ONNX、OpenVINO、Python 等<sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup> |
| 硬件 | x86 与 Arm CPU、NVIDIA GPU 以及 AWS Inferentia<sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup> |
| 接口 | 通过 HTTP/REST、gRPC 或 C API 进行推理；通过相同协议提供模型管理 API<sup>[3](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/architecture.html)</sup> |
| 起源 | 2018 年 9 月 12 日以 NVIDIA TensorRT 推理服务器的名义发布，是从 NVIDIA GPU Cloud 镜像仓库免费获取的容器化微服务<sup>[4](https://nvidianews.nvidia.com/news/new-nvidia-data-center-inference-platform-to-fuel-next-wave-of-ai-powered-services)</sup> |
| 当前版本 | 2.73.0 版，对应 26.09 NGC 容器版本；容器每月更新<sup>[2](https://github.com/triton-inference-server/server)</sup><sup> • </sup><sup>[5](https://docs.nvidia.com/deeplearning/triton-inference-server/release-notes/index.html)</sup> |
| 后继产品 | NVIDIA Dynamo 于 2025 年 3 月 18 日发布，NVIDIA 称其为 Triton 推理服务器的后继产品<sup>[6](https://nvidianews.nvidia.com/news/nvidia-dynamo-open-source-library-accelerates-and-scales-ai-reasoning-models)</sup> |

## 架构

Triton 从模型仓库提供模型服务——模型仓库是一个基于文件系统的存储，存放服务器可供推理的模型。推理请求通过 HTTP/REST、gRPC 或 C API 到达，并被路由到每个模型各自的调度器。每个模型的调度器可选择性地对请求进行批处理，再将其传递给与该模型类型对应的后端；后端对批处理后的输入执行推理并返回输出。<sup>[3](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/architecture.html)</sup>

调度与批处理算法可按模型逐一配置。模型配置文件用于设置模型级选项，例如输出张量重塑和动态批大小；对于 ONNX 和 TensorRT 模型，Triton 可根据模型本身自动生成所需的最小配置。运维人员还可以加载同一模型的多个实例，并选择每个实例运行在 CPU 还是 GPU 上，以及运行在哪些 GPU 上。<sup>[7](https://github.com/triton-inference-server/server/blob/main/docs/README.md)</sup>

服务器提供就绪与存活健康检查端点，以及利用率、吞吐量和延迟指标，便于集成到 [Kubernetes](https://www.edgepedia.org/zh/kubernetes) 等部署框架中。<sup>[3](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/architecture.html)</sup>

## 后端与可扩展性

Triton 后端是执行模型的实现：既可以是深度学习框架的封装，也可以是执行任意操作（如图像预处理）的自定义 C/C++ 或 Python 逻辑。支持的后端包括 TensorRT、ONNX Runtime、TensorFlow（GraphDef 和 SavedModel 格式）、PyTorch（[TorchScript](https://www.edgepedia.org/zh/torchscript) 和 PyTorch 2.0 序列化模型）、OpenVINO、TensorRT-LLM 和 vLLM 等；并非每个后端都能在 Triton 运行的所有平台上得到支持。<sup>[8](https://github.com/triton-inference-server/backend/blob/main/README.md)</sup>

Triton 提供后端 C API，允许以新功能扩展服务器，例如自定义的预处理和后处理操作，或一个全新的深度学习框架。<sup>[3](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/architecture.html)</sup> 仓库代理在模型加载或卸载时添加功能，例如身份验证、解密或转换；解耦后端可以为一个请求发送多个响应，也可以不发送任何响应。<sup>[2](https://github.com/triton-inference-server/server)</sup>

对于大型模型，[FasterTransformer](https://www.edgepedia.org/zh/fastertransformer) 后端可为 GPT、T5 等超出单 GPU 内存容量的 transformer 模型启用多 GPU、多节点推理。<sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup>

## 性能工具

Triton 附带用于寻找高效服务配置的工具。Perf Analyzer 对正在提供服务的模型进行基准测试以建立基线，Model Analyzer 则运行离线模拟以寻找最优配置参数，例如批大小和模型并发数；NVIDIA 报告称，这将搜索时间从数周缩短到数天甚至数小时。<sup>[9](https://github.com/triton-inference-server/server/blob/main/docs/user_guide/performance_tuning.md)</sup><sup> • </sup><sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup> 该服务器还支持动态批处理、多 GPU 执行、面向流式输入的不规则输入批处理，以及自动搜索满足指定性能目标的模型配置。<sup>[10](https://www.nvidia.com/content/dam/en-zz/Solutions/data-center/gated-resources/inference-technical-overview.pdf)</sup>

## 历史

该服务器于 2018 年 9 月 12 日在 GTC Japan 上以 NVIDIA TensorRT 推理服务器的名义发布，是围绕 Tesla T4 GPU 构建的 TensorRT 超大规模推理平台的一部分。NVIDIA 将其描述为容器化微服务软件，可最大化数据中心吞吐量和 GPU 利用率，支持流行的 AI 模型和框架，并与 Kubernetes 和 Docker 集成。<sup>[4](https://nvidianews.nvidia.com/news/new-nvidia-data-center-inference-platform-to-fuel-next-wave-of-ai-powered-services)</sup> 它后来更名为 Triton 推理服务器，并以 BSD-3-Clause 许可证作为开源软件发布。<sup>[2](https://github.com/triton-inference-server/server)</sup>

2025 年 3 月 18 日，NVIDIA 发布了 Dynamo，称其为 Triton 推理服务器的后继产品，面向推理型 AI 模型的大规模服务，具备分离式服务等特性——将大语言模型的处理阶段和生成阶段分离到不同的 GPU 上。Triton 产品线更名为 [NVIDIA Dynamo](https://www.edgepedia.org/zh/nvidia-dynamo)-Triton。<sup>[6](https://nvidianews.nvidia.com/news/nvidia-dynamo-open-source-library-accelerates-and-scales-ai-reasoning-models)</sup><sup> • </sup><sup>[11](https://developer.nvidia.com/triton-inference-server?linkId=100000040866405)</sup>

## 部署

Triton 在各行各业的生产环境中得到使用。蔚来（NIO）、GE HealthCare、Wealthsimple、腾讯、阿里智能互联、Yahoo Japan 和 Airtel 等组织使用它在多样化的框架、处理器和部署平台上统一推理。<sup>[1](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)</sup>

**Docusign** 采用 Triton 作为其所有 AI 框架的统一推理服务器，取代了定制的、框架专用的推理服务器。在将模型从本地 CPU 服务器迁移到 [Microsoft Azure](https://www.edgepedia.org/zh/microsoft-azure) 上的 NVIDIA GPU 并用 Triton 提供服务后，该公司报告其主要场景的运行速度提升了数倍，并已开始使用 TensorRT 编译模型，同时迁移到 A100 Tensor Core GPU。<sup>[12](https://www.nvidia.com/en-us/case-studies/docusign-accelerates-agreement-management-with-inference-platform/)</sup>

**USPS** 在微服务架构中运行 Triton，用于 192 个配送中心的包裹分析，多个图像模型每年处理数十亿个包裹。大众汽车的 Smart Lab 将 Triton 集成到其计算机视觉工作台中，使贡献者可以将模型添加到其 Model Zoo，而无需考虑模型是基于 ONNX、PyTorch 还是 TensorFlow 构建的。<sup>[13](https://developer.nvidia.com/blog/simplifying-ai-inference-in-production-with-triton/)</sup> 在科学计算领域，费米实验室（Fermilab）的弹性分析设施使用 Triton，为众多用户提供对图神经网络的可扩展、高吞吐访问，用于高能物理分析。<sup>[14](https://arxiv.org/abs/2312.06838)</sup>

## 在服务框架中的定位

与 TorchServe 等框架专用服务器相比，Triton 是一个多后端推理平台，围绕 GPU 调度、模型实例、批处理和优化的执行引擎构建；两者都提供 REST 和 gRPC 端点并支持动态批处理，但它们针对不同的部署问题进行优化，正确的选择取决于模型、硬件和流量模式，而非单一的基准测试数字。<sup>[15](https://paperscode.org/articles/triton-vs-torchserve-inference-latency/)</sup> 学术界对 TensorFlow Serving、TorchServe 和 Triton 的比较评估了它们在不同场景下的优缺点，以指导框架选择。<sup>[16](https://www.thinkmind.org/articles/scalability_2024_1_20_20010.pdf)</sup>

## References

1. [Solving AI Inference Challenges with NVIDIA Triton, NVIDIA Technical Blog](https://developer.nvidia.com/blog/solving-ai-inference-challenges-with-nvidia-triton/)
2. [triton-inference-server/server, GitHub](https://github.com/triton-inference-server/server)
3. [Triton Architecture, NVIDIA Triton Inference Server Documentation](https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/user_guide/architecture.html)
4. [New NVIDIA Data Center Inference Platform to Fuel Next Wave of AI-Powered Services, NVIDIA Newsroom (September 12, 2018)](https://nvidianews.nvidia.com/news/new-nvidia-data-center-inference-platform-to-fuel-next-wave-of-ai-powered-services)
5. [Triton Inference Server Container Release Notes, NVIDIA Documentation](https://docs.nvidia.com/deeplearning/triton-inference-server/release-notes/index.html)
6. [NVIDIA Dynamo Open-Source Library Accelerates and Scales AI Reasoning Models, NVIDIA Newsroom (March 18, 2025)](https://nvidianews.nvidia.com/news/nvidia-dynamo-open-source-library-accelerates-and-scales-ai-reasoning-models)
7. [server/docs/readme.md at main · triton-inference-server/server · github](https://github.com/triton-inference-server/server/blob/main/docs/README.md)
8. [Triton Inference Server Backend, backend repo README, GitHub](https://github.com/triton-inference-server/backend/blob/main/README.md)
9. [Deploying your trained model using Triton, server docs, GitHub](https://github.com/triton-inference-server/server/blob/main/docs/user_guide/performance_tuning.md)
10. [Technical Overview, NVIDIA AI for GPU-Accelerated Deep Learning Inference](https://www.nvidia.com/content/dam/en-zz/Solutions/data-center/gated-resources/inference-technical-overview.pdf)
11. [Dynamo Inference Framework, NVIDIA Developer](https://developer.nvidia.com/triton-inference-server?linkId=100000040866405)
12. [Docusign Accelerates Agreement Management with Inference Platform, NVIDIA Customer Stories](https://www.nvidia.com/en-us/case-studies/docusign-accelerates-agreement-management-with-inference-platform/)
13. [Simplifying AI Inference in Production with NVIDIA Triton, NVIDIA Technical Blog](https://developer.nvidia.com/blog/simplifying-ai-inference-in-production-with-triton/)
14. [Optimizing High Throughput Inference on Graph Neural Networks at Shared Computing Facilities with the NVIDIA Triton Inference Server, arXiv:2312.06838](https://arxiv.org/abs/2312.06838)
15. [Triton vs TorchServe: Inference Latency and Throughput, Paperscode](https://paperscode.org/articles/triton-vs-torchserve-inference-latency/)
16. [Comparison of TensorFlow Serving, PyTorch TorchServe, and NVIDIA Triton Inference Server, ThinkMind](https://www.thinkmind.org/articles/scalability_2024_1_20_20010.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 基础模型方法与训练 › 基础模型的推理、服务与效率

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/nvidia-triton-inference-server

English original: https://www.edgepedia.org/nvidia-triton-inference-server
