This page is for AIPerf, version v0.12.0.
For other versions, use one of these documentation indexes:
- Latest (v0.13.0) (default): https://docs.nvidia.com/aiperf/latest/llms.txt
- dev: https://docs.nvidia.com/aiperf/dev/llms.txt
- v0.13.0: https://docs.nvidia.com/aiperf/v0.13.0/llms.txt
- v0.12.0: https://docs.nvidia.com/aiperf/v0.12.0/llms.txt
- v0.11.0: https://docs.nvidia.com/aiperf/v0.11.0/llms.txt
- v0.9.0: https://docs.nvidia.com/aiperf/v0.9.0/llms.txt
- v0.8.0: https://docs.nvidia.com/aiperf/v0.8.0/llms.txt
- v0.7.0: https://docs.nvidia.com/aiperf/v0.7.0/llms.txt
This tutorial will demonstrate how you can use AIPerf to measure the performance of models using various inference solutions.
Profile Qwen3-0.6B using vllm
# Pull and run vLLM Docker container:docker pull vllm/vllm-openai:latestdocker run --gpus all -p 8000:8000 -e HF_TOKEN vllm/vllm-openai:latest \--model Qwen/Qwen3-0.6B \--enforce-eager \--reasoning-parser qwen3 \--host 0.0.0.0 --port 8000
timeout 900 bash -c 'while [ "$(curl -s -o /dev/null -w "%{http_code}" localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d "{\"model\":\"Qwen/Qwen3-0.6B\",\"messages\":[{\"role\":\"user\",\"content\":\"test\"}],\"max_tokens\":1}")" != "200" ]; do sleep 2; done' || { echo "vLLM not ready after 15min"; exit 1; }
# Profile the modelaiperf profile \--model Qwen/Qwen3-0.6B \--endpoint-type chat \--endpoint /v1/chat/completions \--streaming \--request-rate 32 \--request-count 64 \--url localhost:8000
Sample Output (Successful Run):
INFO Starting AIPerf SystemINFO AIPerf System is PROFILINGProfiling: 64/64 |████████████████████████| 100% [00:42<00:00]INFO Benchmark completed successfullyINFO Results saved to: artifacts/Qwen_Qwen3-0.6B-chat-request_rate32/NVIDIA AIPerf | LLM Metrics┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓┃ Metric ┃ avg ┃ min ┃ max ┃ p99 ┃ p50 ┃┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩│ Request Latency (ms) │ 1234.56 │ 987.34 │ 1567.89 │ 1534.23 │ 1223.45 ││ Time to First Token (ms) │ 234.56 │ 189.23 │ 298.45 │ 289.34 │ 231.12 ││ Inter Token Latency (ms) │ 15.67 │ 12.34 │ 19.45 │ 19.01 │ 15.45 ││ Output Token Count (tokens) │ 150.00 │ 120.00 │ 180.00 │ 178.90 │ 149.00 ││ Request Throughput (req/s) │ 31.45 │ - │ - │ - │ - │└─────────────────────────────┴─────────┴────────┴─────────┴─────────┴─────────┘JSON Export: artifacts/Qwen_Qwen3-0.6B-chat-request_rate32/profile_export_aiperf.json