Skip to navigation

Profile with ShareGPT Dataset

View as MarkdownOpen in Claude

AIPerf supports benchmarking using the ShareGPT dataset, which contains real conversational data from user interactions.

This guide covers profiling OpenAI-compatible chat completions endpoints using the ShareGPT public dataset.


Start a vLLM Server

Launch a vLLM server with a chat model:

docker pull vllm/vllm-openai:latest
docker run --gpus all -p 8000:8000 vllm/vllm-openai:latest \
--model Qwen/Qwen3-0.6B

Verify the server is ready:

curl -s localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"Qwen/Qwen3-0.6B","messages":[{"role":"user","content":"test"}],"max_tokens":1}'

Profile with ShareGPT Dataset

AIPerf automatically downloads and caches the ShareGPT dataset from HuggingFace.

On a cold cache, AIPerf downloads the full corpus and tokenizes every turn of all 73,499 conversations before profiling starts. This can take several minutes and exceed the default 300s dataset-configuration timeout, so raise both timeouts for the first run (AIPERF_SERVICE_PROFILE_CONFIGURE_TIMEOUT must be greater than or equal to AIPERF_DATASET_CONFIGURATION_TIMEOUT).

AIPERF_DATASET_CONFIGURATION_TIMEOUT=1200 \
AIPERF_SERVICE_PROFILE_CONFIGURE_TIMEOUT=1200 \
aiperf profile \
--model Qwen/Qwen3-0.6B \
--endpoint-type chat \
--streaming \
--url localhost:8000 \
--public-dataset sharegpt \
--request-count 20 \
--concurrency 4

Sample Output (Successful Run):

INFO Starting AIPerf System
INFO No local dataset cache found, downloading from https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered/...
INFO Saving ShareGPT dataset to local cache .cache/aiperf/datasets/ShareGPT_V3_unfiltered_cleaned_split.json
INFO Validating ShareGPT dataset and constructing conversation dataset
INFO Data file finalized: 73499 conversations, 219.34 MB
INFO AIPerf System is PROFILING
Profiling: 20/20 |████████████████████████| 100% [00:45<00:00]
INFO Benchmark completed successfully
INFO Results saved to: artifacts/Qwen_Qwen3-0.6B-chat-concurrency4/
NVIDIA AIPerf | LLM Metrics
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ Metric ┃ avg ┃ min ┃ max ┃ p99 ┃ p50 ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━┩
│ Request Latency (ms) │ 1456.78 │ 1089.34 │ 1978.90 │ 1898.45 │ 1423.67 │
│ Time to First Token (ms) │ 267.89 │ 198.34 │ 389.12 │ 367.45 │ 262.12 │
│ Inter Token Latency (ms) │ 13.45 │ 10.67 │ 18.90 │ 17.89 │ 13.12 │
│ Output Token Count (tokens) │ 187.00 │ 142.00 │ 245.00 │ 239.00 │ 184.00 │
│ Request Throughput (req/s) │ 8.45 │ - │ - │ - │ - │
└─────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┘
JSON Export: artifacts/Qwen_Qwen3-0.6B-chat-concurrency4/profile_export_aiperf.json