Skip to content

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.

  • The loadgen engine. Every current preset lists it as its only engine.
PresetInput tokensOutput tokensPurpose
agent-prefix@12048 ± 512128 ± 32Agent 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@11024 ± 512256 ± 128Single-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@1256256Six-turn chat, 256 tokens in and 256 out per turn. A growing context that exercises the prefix cache. Built by loadgen.
chat-short@1256 ± 64256 ± 64Single-turn chat, about 256 tokens in and 256 out. The balanced baseline.
decode-long@1256 ± 641536 ± 384Short prompts with long generations, about 256 tokens in and 1536 out. Stresses decode, the KV pool and max_num_seqs.
rag-prefill@14096 ± 1024256 ± 64Retrieval-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@18192 ± 2048512 ± 128Long documents with short summaries, about 8192 tokens in and 512 out. Stresses long-context prefill and max_model_len.
  1. In New run, choose a preset. servtuner fills in its suggested SLOs and a starting ladder.
  2. Or reference it in the RunSpec:
preset.yaml
apiVersion: servtuner.dev/v1
kind: RunSpec
name: chat-short
target:
type: openai-compatible
endpoint: http://localhost:18000/v1
model: mock-model
tls: { mode: platform }
engine: { type: loadgen }
workload:
preset: chat-short@1
streaming: true
load:
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.

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.

Set SLOs and a ladder, or use a preset in a tuning session.