ai-dynamo/aiperf

AIPerf is a comprehensive benchmarking tool that measures the performance of generative AI models served by your preferred inference solution.

What it solves

AIPerf is a benchmarking tool designed to measure the performance of generative AI models across various inference solutions. It helps developers and researchers determine the exact performance characteristics of their model deployments, such as latency, throughput, and how the system handles different load patterns.

How it works

AIPerf uses a scalable multiprocess architecture with 10 services communicating via ZMQ to simulate user traffic. It can be configured via CLI flags or YAML files to send requests to supported APIs (including OpenAI-compatible endpoints, NIM, and Hugging Face TGI). It supports multiple benchmarking modes, including fixed concurrency, request-rate control, and the replay of real-world production traces (e.g., from SageMaker or Baseten).

Who it’s for

It is intended for AI engineers, ML Ops professionals, and researchers who need to rigorously test the performance and scalability of LLM, image, audio, and video generation endpoints before or during production deployment.

Highlights

  • Comprehensive Metrics: Tracks Time to First Token (TTFT), Inter Token Latency (ITL), and overall request throughput.
  • Linguistic & Multimodal Support: Benchmarks text LLMs, embeddings, rankings, audio, image generation, and video generation.
  • Advanced Load Control: Supports Poisson and gamma traffic arrival patterns, gradual ramping, and warmup phases to eliminate cold-start effects.
  • Production Trace Replay: Ability to replay deterministic workloads from public datasets (ShareGPT) or production logs.
  • Telemetry Integration: Integrates with MLflow, OpenTelemetry, and Weights & Biases for live metric streaming and result uploads.
  • Extensible Architecture: Features a plugin system for custom endpoints, datasets, and metrics.

Related

  • Project
  • Project
  • Project
  • Project
  • Project