Use workload presets
A preset is one exact request mix. Runs with the same preset always have the same workload hash, so they can be compared.
Prerequisites
Section titled “Prerequisites”- The
loadgenengine. Every current preset lists it as its only engine.
Available presets
Section titled “Available presets”| Preset | Input tokens | Output tokens | Purpose |
|---|---|---|---|
agent-prefix@1 | 2048 ± 512 | 128 ± 32 | Agent calls with long shared instructions and tool definitions, about 2048 tokens in (a 1536-token prefix shared by 8 groups) and 128 out. Measures how much the prefix cache saves. |
chat-long@1 | 1024 ± 512 | 256 ± 128 | Single-turn chat with longer prompts, about 1024 tokens in and 256 out, the shape of the Azure conversation trace. The realistic chat baseline. |
chat-multiturn@1 | 256 | 256 | Six-turn chat, 256 tokens in and 256 out per turn. A growing context that exercises the prefix cache. Built by loadgen. |
chat-short@1 | 256 ± 64 | 256 ± 64 | Single-turn chat, about 256 tokens in and 256 out. The balanced baseline. |
decode-long@1 | 256 ± 64 | 1536 ± 384 | Short prompts with long generations, about 256 tokens in and 1536 out. Stresses decode, the KV pool and max_num_seqs. |
rag-prefill@1 | 4096 ± 1024 | 256 ± 64 | Retrieval-augmented chat, about 4096 tokens in (a 512-token system prompt shared by 4 groups, then retrieved context) and 256 out. Stresses prefill, chunked prefill and max_num_batched_tokens. |
summarize@1 | 8192 ± 2048 | 512 ± 128 | Long documents with short summaries, about 8192 tokens in and 512 out. Stresses long-context prefill and max_model_len. |
- In New run, choose a preset. servtuner fills in its suggested SLOs and a starting ladder.
- Or reference it in the RunSpec:
apiVersion: servtuner.dev/v1kind: RunSpecname: chat-shorttarget: type: openai-compatible endpoint: http://localhost:18000/v1 model: mock-model tls: { mode: platform }engine: { type: loadgen }workload: preset: chat-short@1 streaming: trueload: stages: - { rate: 4, duration: 60s }slos: { ttft_p95: 500ms, itl_p95: 50ms }Do not combine a preset with dataset or conversation. To change anything, write the workload out. bench never applies a preset’s suggested SLOs, so state yours.
Verify
Section titled “Verify”servtuner presets prints the catalog built into your binary. After a run, spec.resolved.json contains the expanded workload and the preset’s name and version.
Next steps
Section titled “Next steps”Set SLOs and a ladder, or use a preset in a tuning session.