How ai-dynamo/aiperf works
AIPerf is a generative-AI inference benchmarking tool: users configure and launch profiles or sweeps, generate workload against an inference endpoint, then inspect metrics and exported reports. The graph preserves documented dataset, plugin, UI, telemetry, accuracy, analysis, and Kubernetes capabilities. The README and source index support the documented workflow and selected module references; many service-to-service runtime calls were not excerpted, so those links are omitted or marked unverified.
Main entry points: system_controller.py System controller · common Service framework · records_manager.py Record processing · cli.py CLI commands
Components 21
Benchmark execution
- CLI commands
src/aiperf/cli.py - Configuration
src/aiperf/config/config.py - Run planning
src/aiperf/config/resolution/plan.py - Dataset loading
src/aiperf/dataset/dataset_manager.py - System controller
src/aiperf/controller/system_controller.py - Load timing
src/aiperf/timing/manager.py
Runtime services
- Inference workers
src/aiperf/workers/inference_client.py - Endpoint adapters
src/aiperf/endpoints - Service framework
src/aiperf/common - Plugin registry
src/aiperf/plugin/plugins.py
Results and analysis
- Record processing
src/aiperf/records/records_manager.py - Accuracy grading
src/aiperf/accuracy - Server metrics
src/aiperf/server_metrics/manager.py - GPU telemetry
src/aiperf/gpu_telemetry/manager.py - Result exporters
src/aiperf/exporters/exporter_manager.py - Benchmark analysis
src/aiperf/analysis
Interfaces and operations
- API service
src/aiperf/api/api_service.py - Live dashboard
src/aiperf/api/static-v2/app.js - Kubernetes operator
src/aiperf/operator/main.py
Other components
- Benchmark user
- Inference server
Connections 21
- Benchmark user → CLI commands: launches
- CLI commands → Configuration: sets options
- Configuration → Run planning: resolves run
src/aiperf/config/resolution/plan.py - Run planning → System controller: schedules run
src/aiperf/controller/system_controller.py - System controller → Dataset loading: coordinates
- System controller → Load timing: coordinates
- Load timing → Inference workers: drives workload
- Inference workers → Endpoint adapters: formats requests
src/aiperf/workers/inference_client.py - Endpoint adapters → Inference server: sends requests
- System controller → Service framework: uses shared services
src/aiperf/controller/system_controller.py - Dataset loading → Service framework: uses shared services
src/aiperf/dataset/dataset_manager.py - Plugin registry → Service framework: provides extensions
src/aiperf/plugin/plugins.py - Record processing → Service framework: uses shared services
src/aiperf/records/records_manager.py - Record processing → Accuracy grading: processes results
src/aiperf/records/records_manager.py - System controller → Server metrics: coordinates collection
- System controller → GPU telemetry: coordinates collection
- System controller → Result exporters: coordinates export
src/aiperf/controller/system_controller.py - Result exporters → Benchmark analysis: exports benchmark data
- Benchmark user → Live dashboard: views live metrics
- API service → Live dashboard: serves interface
- Benchmark user → Kubernetes operator: manages cluster runs