Skip to content

Commit e8d7325

Browse files
authored
Update README for 22.03 release (#4119)
1 parent f5d13dd commit e8d7325

File tree

1 file changed

+320
-2
lines changed

1 file changed

+320
-2
lines changed

README.md

+320-2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,323 @@
3030

3131
# Triton Inference Server
3232

33-
**NOTE: You are currently on the r22.03 branch which tracks stabilization
34-
towards the next release. This branch is not usable during stabilization.**
33+
Triton Inference Server provides a cloud and edge inferencing solution
34+
optimized for both CPUs and GPUs. Triton supports an HTTP/REST and
35+
GRPC protocol that allows remote clients to request inferencing for
36+
any model being managed by the server. For edge deployments, Triton is
37+
available as a shared library with a C API that allows the full
38+
functionality of Triton to be included directly in an
39+
application.
40+
41+
## What's New in 2.20.0
42+
43+
* Models can now [load from a serialized model_config
44+
message](docs/protocol/extension_model_repository.md#load)
45+
with the Triton Server API.
46+
47+
* ONNX Runtime, TensorRT, and Tensorflow backends now support server-side,
48+
multi-dimensional [ragged batching](docs/ragged_batching.md).
49+
50+
* [Cache miss statistics](docs/metrics.md) have been added to the Prometheus
51+
metrics.
52+
53+
* Trace settings can be configured with the
54+
[Triton Server Trace Protocol](docs/protocol/extension_trace.md).
55+
56+
## Features
57+
58+
* [Multiple deep-learning
59+
frameworks](https://github.com/triton-inference-server/backend). Triton
60+
can manage any number and mix of models (limited by system disk and
61+
memory resources). Triton supports TensorRT, TensorFlow GraphDef,
62+
TensorFlow SavedModel, ONNX, PyTorch TorchScript and OpenVINO model
63+
formats. Both TensorFlow 1.x and TensorFlow 2.x are
64+
supported. Triton also supports TensorFlow-TensorRT and
65+
ONNX-TensorRT integrated models.
66+
67+
* [Concurrent model
68+
execution](docs/architecture.md#concurrent-model-execution). Multiple
69+
models (or multiple instances of the same model) can run
70+
simultaneously on the same GPU or on multiple GPUs.
71+
72+
* [Dynamic batching](docs/architecture.md#models-and-schedulers). For
73+
models that support batching, Triton implements multiple scheduling
74+
and batching algorithms that combine individual inference requests
75+
together to improve inference throughput. These scheduling and
76+
batching decisions are transparent to the client requesting
77+
inference.
78+
79+
* [Extensible
80+
backends](https://github.com/triton-inference-server/backend). In
81+
addition to deep-learning frameworks, Triton provides a *backend
82+
API* that allows Triton to be extended with any model execution
83+
logic implemented in
84+
[Python](https://github.com/triton-inference-server/python_backend)
85+
or
86+
[C++](https://github.com/triton-inference-server/backend/blob/main/README.md#triton-backend-api),
87+
while still benefiting from the CPU and GPU support, concurrent
88+
execution, dynamic batching and other features provided by Triton.
89+
90+
* [Model pipelines](docs/architecture.md#ensemble-models). Triton
91+
*ensembles* represents a pipeline of one or more models and the
92+
connection of input and output tensors between those models. A
93+
single inference request to an ensemble will trigger the execution
94+
of the entire pipeline.
95+
96+
* [HTTP/REST and GRPC inference
97+
protocols](docs/inference_protocols.md) based on the community
98+
developed [KFServing
99+
protocol](https://github.com/kubeflow/kfserving/tree/master/docs/predict-api/v2).
100+
101+
* A [C API](docs/inference_protocols.md#c-api) allows Triton to be
102+
linked directly into your application for edge and other in-process
103+
use cases.
104+
105+
* [Metrics](docs/metrics.md) indicating GPU utilization, server
106+
throughput, and server latency. The metrics are provided in
107+
Prometheus data format.
108+
109+
## Documentation
110+
111+
[Triton Architecture](docs/architecture.md) gives a high-level
112+
overview of the structure and capabilities of the inference
113+
server. There is also an [FAQ](docs/faq.md). Additional documentation
114+
is divided into [*user*](#user-documentation) and
115+
[*developer*](#developer-documentation) sections. The *user*
116+
documentation describes how to use Triton as an inference solution,
117+
including information on how to configure Triton, how to organize and
118+
configure your models, how to use the C++ and Python clients, etc. The
119+
*developer* documentation describes how to build and test Triton and
120+
also how Triton can be extended with new functionality.
121+
122+
### User Documentation
123+
124+
* [QuickStart](docs/quickstart.md)
125+
* [Install Triton](docs/quickstart.md#install-triton-docker-image)
126+
* [Create Model Repository](docs/quickstart.md#create-a-model-repository)
127+
* [Run Triton](docs/quickstart.md#run-triton)
128+
* [Model Repository](docs/model_repository.md)
129+
* [Cloud Storage](docs/model_repository.md#model-repository-locations)
130+
* [File Organization](docs/model_repository.md#model-files)
131+
* [Model Versioning](docs/model_repository.md#model-versions)
132+
* [Model Configuration](docs/model_configuration.md)
133+
* [Required Model Configuration](docs/model_configuration.md#minimal-model-configuration)
134+
* [Maximum Batch Size - Batching and Non-Batching Models](docs/model_configuration.md#maximum-batch-size)
135+
* [Input and Output Tensors](docs/model_configuration.md#inputs-and-outputs)
136+
* [Tensor Datatypes](docs/model_configuration.md#datatypes)
137+
* [Tensor Reshape](docs/model_configuration.md#reshape)
138+
* [Shape Tensor](docs/model_configuration.md#shape-tensors)
139+
* [Auto-Generate Required Model Configuration](docs/model_configuration.md#auto-generated-model-configuration)
140+
* [Version Policy](docs/model_configuration.md#version-policy)
141+
* [Instance Groups](docs/model_configuration.md#instance-groups)
142+
* [Specifying Multiple Model Instances](docs/model_configuration.md#multiple-model-instances)
143+
* [CPU and GPU Instances](docs/model_configuration.md#cpu-model-instance)
144+
* [Configuring Rate Limiter](docs/model_configuration.md#rate-limiter-configuration)
145+
* [Optimization Settings](docs/model_configuration.md#optimization_policy)
146+
* [Framework-Specific Optimization](docs/optimization.md#framework-specific-optimization)
147+
* [ONNX-TensorRT](docs/optimization.md#onnx-with-tensorrt-optimization)
148+
* [ONNX-OpenVINO](docs/optimization.md#onnx-with-openvino-optimization)
149+
* [TensorFlow-TensorRT](docs/optimization.md#tensorflow-with-tensorrt-optimization)
150+
* [TensorFlow-Mixed-Precision](docs/optimization.md#tensorflow-automatic-fp16-optimization)
151+
* [NUMA Optimization](docs/optimization.md#numa-optimization)
152+
* [Scheduling and Batching](docs/model_configuration.md#scheduling-and-batching)
153+
* [Default Scheduler - Non-Batching](docs/model_configuration.md#default-scheduler)
154+
* [Dynamic Batcher](docs/model_configuration.md#dynamic-batcher)
155+
* [How to Configure Dynamic Batcher](docs/model_configuration.md#recommended-configuration-process)
156+
* [Delayed Batching](docs/model_configuration.md#delayed-batching)
157+
* [Preferred Batch Size](docs/model_configuration.md#preferred-batch-sizes)
158+
* [Preserving Request Ordering](docs/model_configuration.md#preserve-ordering)
159+
* [Priority Levels](docs/model_configuration.md#priority-levels)
160+
* [Queuing Policies](docs/model_configuration.md#queue-policy)
161+
* [Ragged Batching](docs/ragged_batching.md)
162+
* [Sequence Batcher](docs/model_configuration.md#sequence-batcher)
163+
* [Stateful Models](docs/architecture.md#stateful-models)
164+
* [Control Inputs](docs/architecture.md#control-inputs)
165+
* [Implicit State - Stateful Inference Using a Stateless Model](docs/architecture.md#implicit-state-management)
166+
* [Sequence Scheduling Strategies](docs/architecture.md#scheduling-strateties)
167+
* [Direct](docs/architecture.md#direct)
168+
* [Oldest](docs/architecture.md#oldest)
169+
* [Rate Limiter](docs/rate_limiter.md)
170+
* [Model Warmup](docs/model_configuration.md#model-warmup)
171+
* [Inference Request/Response Cache](docs/model_configuration.md#response-cache)
172+
* Model Pipeline
173+
* [Model Ensemble](docs/architecture.md#ensemble-models)
174+
* [Business Logic Scripting (BLS)](https://github.com/triton-inference-server/python_backend#business-logic-scripting)
175+
* [Model Management](docs/model_management.md)
176+
* [Explicit Model Loading and Unloading](docs/model_management.md#model-control-mode-explicit)
177+
* [Modifying the Model Repository](docs/model_management.md#modifying-the-model-repository)
178+
* [Metrics](docs/metrics.md)
179+
* [Framework Custom Operations](docs/custom_operations.md)
180+
* [TensorRT](docs/custom_operations.md#tensorrt)
181+
* [TensorFlow](docs/custom_operations.md#tensorflow)
182+
* [PyTorch](docs/custom_operations.md#pytorch)
183+
* [ONNX](docs/custom_operations.md#onnx)
184+
* [Client Libraries and Examples](https://github.com/triton-inference-server/client)
185+
* [C++ HTTP/GRPC Libraries](https://github.com/triton-inference-server/client#client-library-apis)
186+
* [Python HTTP/GRPC Libraries](https://github.com/triton-inference-server/client#client-library-apis)
187+
* [Java HTTP Library](https://github.com/triton-inference-server/client/src/java)
188+
* GRPC Generated Libraries
189+
* [go](https://github.com/triton-inference-server/client/tree/main/src/grpc_generated/go)
190+
* [Java/Scala](https://github.com/triton-inference-server/client/tree/main/src/grpc_generated/java)
191+
* [Performance Analysis](docs/optimization.md)
192+
* [Model Analyzer](docs/model_analyzer.md)
193+
* [Performance Analyzer](docs/perf_analyzer.md)
194+
* [Inference Request Tracing](docs/trace.md)
195+
* [Jetson and JetPack](docs/jetson.md)
196+
197+
The [quickstart](docs/quickstart.md) walks you through all the steps
198+
required to install and run Triton with an example image
199+
classification model and then use an example client application to
200+
perform inferencing using that model. The quickstart also demonstrates
201+
how [Triton supports both GPU systems and CPU-only
202+
systems](docs/quickstart.md#run-triton).
203+
204+
The first step in using Triton to serve your models is to place one or
205+
more models into a [model
206+
repository](docs/model_repository.md). Optionally, depending on the type
207+
of the model and on what Triton capabilities you want to enable for
208+
the model, you may need to create a [model
209+
configuration](docs/model_configuration.md) for the model. If your
210+
model has [custom operations](docs/custom_operations.md) you will need
211+
to make sure they are loaded correctly by Triton.
212+
213+
After you have your model(s) available in Triton, you will want to
214+
send inference and other requests to Triton from your *client*
215+
application. The [Python and C++ client
216+
libraries](https://github.com/triton-inference-server/client) provide
217+
APIs to simplify this communication. There are also a large number of
218+
[client examples](https://github.com/triton-inference-server/client)
219+
that demonstrate how to use the libraries. You can also send
220+
HTTP/REST requests directly to Triton using the [HTTP/REST JSON-based
221+
protocol](docs/inference_protocols.md#httprest-and-grpc-protocols) or
222+
[generate a GRPC client for many other
223+
languages](https://github.com/triton-inference-server/client).
224+
225+
Understanding and [optimizing performance](docs/optimization.md) is an
226+
important part of deploying your models. The Triton project provides
227+
the [Performance Analyzer](docs/perf_analyzer.md) and the [Model
228+
Analyzer](docs/model_analyzer.md) to help your optimization
229+
efforts. Specifically, you will want to optimize [scheduling and
230+
batching](docs/architecture.md#models-and-schedulers) and [model
231+
instances](docs/model_configuration.md#instance-groups) appropriately
232+
for each model. You can also enable cross-model prioritization using
233+
the [rate limiter](docs/rate_limiter.md) which manages the rate at
234+
which requests are scheduled on model instances. You may also want to
235+
consider combining multiple models and pre/post-processing into a
236+
pipeline using [ensembling](docs/architecture.md#ensemble-models) or
237+
[Business Logic Scripting
238+
(BLS)](https://github.com/triton-inference-server/python_backend#business-logic-scripting). A
239+
[Prometheus metrics endpoint](docs/metrics.md) allows you to visualize
240+
and monitor aggregate inference metrics.
241+
242+
NVIDIA publishes a number of [deep learning
243+
examples](https://github.com/NVIDIA/DeepLearningExamples) that use
244+
Triton.
245+
246+
As part of your deployment strategy you may want to [explicitly manage
247+
what models are available by loading and unloading
248+
models](docs/model_management.md) from a running Triton server. If you
249+
are using Kubernetes for deployment there are simple examples of how
250+
to deploy Triton using Kubernetes and Helm:
251+
[GCP](deploy/gcp/README.md), [AWS](deploy/aws/README.md), and [NVIDIA
252+
FleetCommand](deploy/fleetcommand/README.md)
253+
254+
The [version 1 to version 2 migration
255+
information](docs/v1_to_v2.md) is helpful if you are moving to
256+
version 2 of Triton from previously using version 1.
257+
258+
### Developer Documentation
259+
260+
* [Build](docs/build.md)
261+
* [Protocols and APIs](docs/inference_protocols.md).
262+
* [Backends](https://github.com/triton-inference-server/backend)
263+
* [Repository Agents](docs/repository_agents.md)
264+
* [Test](docs/test.md)
265+
266+
Triton can be [built using
267+
Docker](docs/build.md#building-triton-with-docker) or [built without
268+
Docker](docs/build.md#building-triton-without-docker). After building
269+
you should [test Triton](docs/test.md).
270+
271+
It is also possible to [create a Docker image containing a customized
272+
Triton](docs/compose.md) that contains only a subset of the backends.
273+
274+
The Triton project also provides [client libraries for Python and
275+
C++](https://github.com/triton-inference-server/client) that make it
276+
easy to communicate with the server. There are also a large number of
277+
[example clients](https://github.com/triton-inference-server/client)
278+
that demonstrate how to use the libraries. You can also develop your
279+
own clients that directly communicate with Triton using [HTTP/REST or
280+
GRPC protocols](docs/inference_protocols.md). There is also a [C
281+
API](docs/inference_protocols.md) that allows Triton to be linked
282+
directly into your application.
283+
284+
A [Triton backend](https://github.com/triton-inference-server/backend)
285+
is the implementation that executes a model. A backend can interface
286+
with a deep learning framework, like PyTorch, TensorFlow, TensorRT or
287+
ONNX Runtime; or it can interface with a data processing framework
288+
like [DALI](https://github.com/triton-inference-server/dali_backend);
289+
or you can extend Triton by [writing your own
290+
backend](https://github.com/triton-inference-server/backend) in either
291+
[C/C++](https://github.com/triton-inference-server/backend/blob/main/README.md#triton-backend-api)
292+
or
293+
[Python](https://github.com/triton-inference-server/python_backend).
294+
295+
A [Triton repository agent](docs/repository_agents.md) extends Triton
296+
with new functionality that operates when a model is loaded or
297+
unloaded. You can introduce your own code to perform authentication,
298+
decryption, conversion, or similar operations when a model is loaded.
299+
300+
## Papers and Presentation
301+
302+
* [Maximizing Deep Learning Inference Performance with NVIDIA Model
303+
Analyzer](https://developer.nvidia.com/blog/maximizing-deep-learning-inference-performance-with-nvidia-model-analyzer/).
304+
305+
* [High-Performance Inferencing at Scale Using the TensorRT Inference
306+
Server](https://developer.nvidia.com/gtc/2020/video/s22418).
307+
308+
* [Accelerate and Autoscale Deep Learning Inference on GPUs with
309+
KFServing](https://developer.nvidia.com/gtc/2020/video/s22459).
310+
311+
* [Deep into Triton Inference Server: BERT Practical Deployment on
312+
NVIDIA GPU](https://developer.nvidia.com/gtc/2020/video/s21736).
313+
314+
* [Maximizing Utilization for Data Center Inference with TensorRT
315+
Inference Server](https://on-demand-gtc.gputechconf.com/gtcnew/sessionview.php?sessionName=s9438-maximizing+utilization+for+data+center+inference+with+tensorrt+inference+server).
316+
317+
* [NVIDIA TensorRT Inference Server Boosts Deep Learning
318+
Inference](https://devblogs.nvidia.com/nvidia-serves-deep-learning-inference/).
319+
320+
* [GPU-Accelerated Inference for Kubernetes with the NVIDIA TensorRT
321+
Inference Server and
322+
Kubeflow](https://www.kubeflow.org/blog/nvidia_tensorrt/).
323+
324+
* [Deploying NVIDIA Triton at Scale with MIG and Kubernetes](https://developer.nvidia.com/blog/deploying-nvidia-triton-at-scale-with-mig-and-kubernetes/).
325+
326+
## Contributing
327+
328+
Contributions to Triton Inference Server are more than welcome. To
329+
contribute make a pull request and follow the guidelines outlined in
330+
[CONTRIBUTING.md](CONTRIBUTING.md). If you have a backend, client,
331+
example or similar contribution that is not modifying the core of
332+
Triton, then you should file a PR in the [contrib
333+
repo](https://github.com/triton-inference-server/contrib).
334+
335+
## Reporting problems, asking questions
336+
337+
We appreciate any feedback, questions or bug reporting regarding this
338+
project. When help with code is needed, follow the process outlined in
339+
the Stack Overflow (<https://stackoverflow.com/help/mcve>)
340+
document. Ensure posted examples are:
341+
342+
* minimal – use as little code as possible that still produces the
343+
same problem
344+
345+
* complete – provide all parts needed to reproduce the problem. Check
346+
if you can strip external dependency and still show the problem. The
347+
less time we spend on reproducing problems the more time we have to
348+
fix it
349+
350+
* verifiable – test the code you're about to provide to make sure it
351+
reproduces the problem. Remove all other problems that are not
352+
related to your request/question.

0 commit comments

Comments
 (0)