GuideLLM
Run SLO-aware load tests against an LLM server: pick a traffic profile, a data source and stop conditions, and get TTFT, ITL, throughput and goodput reports (benchmarks.json, CSV, HTML).
Scope: this one product: install, point at an endpoint, choose profile and data, set SLOs, read the report, update, troubleshoot. Engine and hardware choice belongs to choosing-inference-engine and choosing-hardware; a second benchmark tool with a different design is nvidia-aiperf. Answer quality belongs to lm-evaluation-harness and promptfoo.
Work through the steps in order. Load a reference only when a step names it. Verified against GuideLLM 0.8.1 (2026-10-11). The CLI changed in 0.7 and again in 0.8: confirm with guidellm run --help.
Discover first
Read-only; nothing here prints secrets.
python3 --version # 3.10-3.13
command -v guidellm && guidellm --help | head -20
pip index versions guidellm 2>/dev/null | head -1
guidellm env 2>/dev/null | head -20 # GUIDELLM__* settings in effect (0.7+)
ls benchmarks.* results/ 2>/dev/null
URL="${LLM_BASE_URL:-http://localhost:8000}"
[ -n "${LLM_API_KEY:-}" ] && echo "LLM_API_KEY set" || echo "LLM_API_KEY not set"
curl -fsS ${LLM_API_KEY:+-H "Authorization: Bearer $LLM_API_KEY"} "$URL/v1/models" | jq -r '.data[].id'
Decision flow
- No guidellm, or an old one (the old
guidellm benchmark runform):references/install.md, thenreferences/updating.md. - First run: the sweep in Workflow 1 (flags in
references/run-and-profiles.md). - Need a capacity number under a latency target:
--metricsSLOs plus thegoodputprofile (references/metrics-and-slo.md). - Need a specific shape (fixed concurrency, fixed rate, bursty, production trace):
references/run-and-profiles.md. - Own prompts, a Hugging Face dataset, multimodal, multi-turn:
references/data-and-backends.md. - Gated API or a key:
references/data-and-backends.md(key handling). - Errors, crashes, empty or odd numbers:
references/troubleshooting.md. - Comparing two servers or configs: same data, seed and profile;
references/combos/vllm-sweep-and-slo.md.
Rules
- Pin the version.
pip install "guidellm[recommended]==0.8.1"in a venv, or an immutable image tag (vX.Y.Z), neverlatestfor decisions. The CLI has changed between minor versions. - Say what you ran. A result needs profile, constraints, data (prompt and output tokens), backend
target/modeland the version. The report stores them; keep the file. - Fixed lengths by default. For a requested output length GuideLLM sets
ignore_eosso outputs reach the requested size; models that must stop on their own end token (for example Harmony/gpt-oss) needextras.body.ignore_eos=false, and then output lengths shrink. - Warm up and stop explicitly. Use profile
warmup/cooldownand amax_durationormax_requestsconstraint per strategy; addover_saturationso overloaded points do not waste time. - Same everything but one thing when comparing: data, seed, profile, constraints, client host.
- Keys never inline.
api_keylives in the backend config: put it in a0600file or environment variable, not in shell history or logs (references/data-and-backends.md). trust_remote_codeonly for trusted tokenizers. It executes repository code.- Prompts in reports.
benchmarks.jsonkeeps request and response text by default: limit with--metricssample_sizeand keep the file private.
Workflows
1. First benchmark (sweep)
- Install in a venv. ->
references/install.md - Check the server:
/v1/modelslists the model; GuideLLM auto-detects the model whenmodel=is omitted. - Run:
guidellm run --backend kind=openai_http,target=$URL --profile kind=sweep --constraint kind=max_duration,seconds=60 --data kind=synthetic_text,prompt_tokens=256,output_tokens=128. ->references/run-and-profiles.md - Verify: results include a synchronous point, a throughput point and interpolated points; error counts are 0;
benchmarks.jsonand.csvexist.
2. Capacity under an SLO
- Declare objectives:
--metrics '{"kind":"generative","slo":{"ttft_ms":200,"tpot_ms":50}}'. ->references/metrics-and-slo.md - Search:
--profile kind=goodput,target_attainment=0.99, orkind=kneefor the throughput knee. - Verify: the
conclusionssection lists the highest passing and lowest failing concurrency; no "interval straddles the target" warning.
3. Specific traffic shape
-
concurrent(streams=),constantorpoisson(rate=),throughput, orreplayfor traces. ->references/run-and-profiles.md - Verify: achieved rate or concurrency matches the target; dispatch delay stays near zero (otherwise the client is the bottleneck).
4. Own data and other APIs
-
json_file,csv_file,huggingface, multimodal,request_formatfor chat, completions, embeddings, audio. ->references/data-and-backends.md - Verify: reported prompt and output token means match your data.
5. Compare two configurations
- Same seed, data, profile; repeat runs. ->
references/combos/vllm-sweep-and-slo.md - Verify: differences exceed run-to-run variation, else report no measurable difference.
Reference index
references/install.md: requirements, pip, container, status, first check.references/run-and-profiles.md: CLI format, profiles, constraints, scenarios, seed, warmup, replay.references/data-and-backends.md: data kinds, synthetic options, tokenizer, backend options, key handling, vLLM in-process backend.references/metrics-and-slo.md: metrics, SLO attainment and goodput, knee and goodput profiles, outputs and file size.references/combos/vllm-sweep-and-slo.md: vLLM server, sweep, SLO search, comparison.references/troubleshooting.md: symptoms and fixes.references/updating.md: upgrade procedure and CLI migration from 0.6.
Companion skills
vllm: the usual server under test. Install:npx skills add ScaleDockHQ/llm-skills --skill vllm.nvidia-aiperf: alternative benchmark tool; do not mix numbers between tools. Install:npx skills add ScaleDockHQ/llm-skills --skill nvidia-aiperf.self-hosted-llms: sharedbench.shsmoke benchmark and sizing. Install:npx skills add ScaleDockHQ/llm-skills --skill self-hosted-llms.lm-evaluation-harness: answer quality for the same endpoint. Install:npx skills add ScaleDockHQ/llm-skills --skill lm-evaluation-harness.