genai-perf
GenAI Perf Analyzer CLI - CLI tool to simplify profiling LLMs and Generative AI models with Perf Analyzer
What it is and what it does
GenAI-Perf is a profiling and benchmarking tool designed to measure the performance characteristics of generative AI models running on inference servers. It generates configurable load (concurrent requests or request rates) against a running inference server and collects detailed metrics including output token throughput, time to first token, inter-token latency, and request latency. Results are reported in console tables and exported to CSV and JSON for further analysis.
The tool targets a wide range of model types—large language models, multi-modal models, embeddings, ranking models, and LoRA-adapted variants—and supports both synthetic load generation and real input datasets. It can be configured via command-line arguments or YAML configuration files, and provides customizable frontends and Jinja2-templated payloads for benchmarking custom APIs. The package is in active development (Alpha status) and requires an external inference server to already be running.
Use it for:
- Benchmark LLM inference latency and throughput on Triton Inference Server with TensorRT-LLM backends.
- Measure time-to-first-token and inter-token latency for streaming language model deployments.
- Profile multi-modal model performance under concurrent request loads to identify bottlenecks.
- Compare inference performance across different model backends or hardware configurations.
- Generate performance reports (CSV/JSON) for embedding or ranking models to track optimization progress.
- Test custom API endpoints with templated payloads to validate inference server integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
GenAI-Perf is a command-line tool for measuring throughput, latency, and token-generation metrics of generative AI models served through an inference server, supporting LLMs, multi-modal models, embeddings, and custom APIs.
Yes, if you are benchmarking generative AI models on Triton Inference Server or compatible inference servers and need detailed token-level and request-level metrics. The low install friction and active maintenance make it a practical choice. Requires CUDA 12 and a running inference server; the large dependency tree (19 runtime packages) may add setup time. Not suitable if you need to profile models without an external inference server or on non-Triton platforms.
Install
genai-perf on PyPI
pip
pip install genai-perfuv
uv add genai-perfpoetry
poetry add genai-perfInstalling genai-perf
Before you install
Low install friction with a pure Python wheel. Requires Python 3.10 or 3.12 and CUDA 12 to be pre-installed; the 19 runtime dependencies include heavy data science and ML stacks (transformers, pandas, numpy, plotly, statsmodels) which may take time to resolve. Actively maintained with recent commits.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions; you must retain copyright notices and disclaimers in redistributions.
Quickstart
pip install genai-perf
genai-perf profile -m gpt2 --backend tensorrtllm --streaming
Requires CUDA 12 to be pre-installed on the system and an inference server (e.g., Triton) already running at the specified endpoint.
Verify before relying
- Whether the tool works with inference servers other than Triton Inference Server.
- Performance overhead of the profiling tool itself on measured metrics.
- Compatibility with custom model backends beyond those documented in the description.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 19 — fastparquet, jinja2, kaleido, numpy, optuna, orjson, pandas, perf-analyzer, pillow, plotly, pyarrow, pytest, pytest-mock, pyyaml, responses, rich, soundfile, statsmodels, transformers |
| Maintenance | actively maintained — 353 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 314,511/month — #7,698 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: genai_perf-0.0.16-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
aiperfAIPerf measures the performance of generative…
permissive · top 15,000 on PyPI
perf-analyzerPerf Analyzer is a CLI tool that measures and…
unclear · top 15,000 on PyPI
gllm-inference-binaryProvides inference components and utilities for…
unclear · top 15,000 on PyPI
onnxruntime-genaiRuns small and large language models and…
permissive · top 15,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
tokenspeed-mlaProvides optimized MLA (Multi-head Latent…
permissive · top 5,000 on PyPI
nvidia-modeloptApplies state-of-the-art model optimization…
permissive · top 15,000 on PyPI
azure-ai-evaluationEvaluates generative AI application outputs…
permissive · top 15,000 on PyPI
cache-ditCache-DiT accelerates inference for Diffusion…
unclear · top 15,000 on PyPI
genagentGenAgent provides utilities for building…
unclear · top 15,000 on PyPI