Overview of Triton Client Libraries
mainTriton provides several client libraries to simplify communication with the Triton Inference Server. These libraries allow you to access capabilities such as inferencing, status and health, statistics and metrics, and model repository management.
Supported Languages and Protocols
- C++ and Python APIs: Supports both HTTP/REST and GRPC protocols. These libraries also support using system and CUDA shared memory for high-performance input/output passing.
- Java API: Supports HTTP/REST requests (currently a limited feature subset).
- gRPC via protoc: You can use the
protoccompiler to generate gRPC APIs for many other languages. Examples are provided for Go, Java/Scala, and JavaScript.
Example Applications
- image_client: C++ and Python versions for executing image classification models.
- Simple C++/Python Examples: Demonstrates HTTP/REST (prefixed with
simple_http_) and gRPC (prefixed withsimple_grpc_) usage. - Java Examples: Demonstrates basic inferencing tasks.
- Python gRPC Examples: Uses generated gRPC client stubs (e.g.,
grpc_client.pyandgrpc_image_client.py).