Triton Performance Analyzer (perf_analyzer) is a command-line interface (CLI) tool designed to optimize the inference performance of models running on the NVIDIA Triton Inference Server. It measures key metrics such as throughput and latency by generating inference requests to your model and repeating measurements until stable values are achieved. The library is currently at version 2.59.1 and follows the release cadence of the broader Triton Inference Server project.
pip install perf-analyzerNo compatibility data collected yet for this library.
This quickstart demonstrates how to run `perf_analyzer` against a hypothetical model named 'my_model' on a running Triton Inference Server. It measures performance over a 5-second interval across varying concurrency levels (1, 3, 5, 7).
For generative AI model benchmarking, consider using AIPerf instead of genai-perf. Consult NVIDIA Triton documentation for AIPerf migration guides.
Manually install any reported missing runtime dependencies. The recommended installation method is via the Triton SDK Docker container, which includes all necessary pre-built executables and dependencies.
Avoid these specific options when using `--service-kind=triton_c_api`. Consider HTTP or gRPC endpoints for full feature support if these functionalities are critical.
For more stable and potentially lower-latency measurements, use the `--shared-memory=system` (for CPU shared memory) or `--shared-memory=cuda` (for GPU shared memory) options when benchmarking.
It is generally recommended to run a single `perf_analyzer` instance per Triton server or manage concurrent testing through a single `perf_analyzer` process's built-in concurrency options. If multi-model analysis is needed, consider `Triton Model Analyzer`.
Increase the shared memory allocated to the Docker container by using the `--shm-size` flag when starting the Triton Inference Server container. Example: `docker run --shm-size=1g ...`
Specify the concrete input shapes using the `--shape` flag in the perf_analyzer command. Example: `perf_analyzer -m my_model --shape input_1:1,224,224,3`
Ensure perf_analyzer and model_analyzer (if used) are compatible versions, or check the documentation for your specific perf_analyzer version to verify supported options. If running in Docker, pull the latest SDK container.
No dependency data recorded yet.