Signed-off-by: PeaBrane <yanrpei@gmail.com> |
||
|---|---|---|
| .. | ||
| burstgpt_loadgen | ||
| frontend/scripts/bpf | ||
| incluster | ||
| llm | ||
| multimodal | ||
| nat_trace | ||
| prefix_data_generator | ||
| router | ||
| sin_load_generator | ||
| README.md | ||
| pyproject.toml | ||
README.md
Benchmarks
This directory contains benchmarking tools and scripts for Dynamo deployments. Benchmarking uses AIPerf directly — a comprehensive tool for measuring generative AI inference performance.
Quick Start
Benchmark a Dynamo Deployment
First, deploy your DynamoGraphDeployment using the deployment documentation, then:
# Port-forward your deployment to http://localhost:8000
kubectl port-forward -n <namespace> svc/<frontend-service-name> 8000:8000 > /dev/null 2>&1 &
# Run a single benchmark
aiperf profile \
--model <your-model> \
--url http://localhost:8000 \
--endpoint-type chat \
--streaming \
--concurrency 10 \
--request-count 100
# Run a concurrency sweep for Pareto analysis
for c in 1 2 5 10 50 100; do
aiperf profile \
--model <your-model> \
--url http://localhost:8000 \
--endpoint-type chat \
--streaming \
--concurrency $c \
--request-count $(( c * 3 > 10 ? c * 3 : 10 )) \
--artifact-dir "artifacts/my-benchmark/c$c"
done
# Generate comparison plots
aiperf plot artifacts/my-benchmark
Directory Contents
incluster/— Kubernetes Job manifest for running benchmarks inside the clusterrouter/— KV Router benchmarking scripts (prefix ratio, trace replay, agent, priority queue)prefix_data_generator/— Tools for analyzing and synthesizing prefix-structured data
Comprehensive Guide
For detailed documentation including server-side benchmarking, Pareto analysis, and advanced AIPerf features, see the complete benchmarking guide.