First runs: KV cache and Agentic Bench
Each section gives one configuration that you can run end to end. Every value comes from the product catalog. Each configuration has a web app path, a benchctl path where benchctl supports it, and an API path.
KV cache offload on one machine
A KV Cache Offload workload replays multi-round conversations against a vLLM server and measures what happens when the KV cache lives in GPU memory, in CPU RAM, or on an SSD. The tool code is multiroundqa. The web app, the benchctl CLI, and the API store the same values, so a workload saved on one path runs the same as a workload saved on another.
One machine runs the benchmark for the three tiers. The engine is vLLM. SGLang and TensorRT-LLM take part in KV benchmarks only through distributed KV cache.
First run values
All three tiers use the same values except the cache storage tier.
| Setting | Value | Source |
|---|---|---|
| Model | qwen-3-8b (Qwen3-8B, Qwen/Qwen3-8B) | seed/06a_kyai.sql |
| Framework and version | vllm 0.32.0 | seed/66_onboard_vllm_0310_0320.sql |
| Dataset | sammshen (the default, 767 conversations) | seed/43_kv_cache_offload.sql |
| Concurrency | 8 users at the same time | At most 4,946 on sammshen at 5 rounds per user |
| Input Sequence Length | 8192 tokens (the default) | Scenario default |
| Output Sequence Length | 512 tokens (the default) | Scenario default |
| Rounds per conversation | 5 | The smallest value the product accepts |
| Machine | One onboarded NVIDIA machine with one GPU of at least 24 GB | Qwen3-8B in BF16 holds about 16 GB of weights |
| Project visibility | Team (org) | Results of a private project on team machines are dropped |
The CPU RAM and NVMe SSD tiers start an LMCache server beside vLLM. Their defaults need no edit:
| Tier | vLLM settings | Cache server settings | Cache server defaults |
|---|---|---|---|
| GPU | kv-cache-offload-gpu | None | None |
| CPU RAM | kv-cache-offload-cpu | lmcache-server-cpu-default | Host pool sized to the machine (auto) |
| NVMe SSD | kv-cache-offload-cpu | lmcache-server-nvme-default | 32 GB host pool, disk pool at /data/lmcache/l2 |
The NVMe SSD tier works on any writable folder. If /data/lmcache/l2 is on the operating system disk, the run works but does not measure a separate SSD. To test a real SSD, mount it and set l2_path in your own cache server settings. See Mounting the SSD and setting l2_path.
Web app
- Open Projects, and then select New Project.
- Enter a Project name, for example
kv-starter. Under Who can see it, choose Team. - Under Add a workload, select KV Cache Offload.
- In the Model stage, under Models, choose Qwen 3 8B. Leave Datasets empty to use
sammshen. - In the Serving engine stage, keep vLLM. Under Version, choose
0.32.0. - Under Cache storage, choose GPU, CPU RAM, or NVMe SSD. Choose it before you edit any argument, because a new tier resets the arguments.
- For CPU RAM and NVMe SSD, keep Cache server build at NVIDIA (vllm/vllm-openai) and keep the Cache server version that is filled in.
- In the Hardware stage, keep Deployment at One machine. Under Machines, choose your machine. Set GPUs to use to
1. - In the Load stage, set Concurrency to
8, keep Input Sequence Length at8192and Output Sequence Length at512, and set Rounds per Conversation to5. - Select Save & Run. The Monitoring page shows one job.
To compare tiers, add one workload per tier to the same project and keep every other value the same.
CLI
Find the machine hostname first.
benchctl server list
benchctl workload kv-cache-tiers --framework vllm
Create the project, the workload, and the scenario. The example uses the CPU RAM tier. Use --kv-cache-tier gpu or --kv-cache-tier nvme for the other tiers.
benchctl project create kv-starter --visibility org --no-switch
benchctl workload create \
--project kv-starter \
--name "cpu tier" --code cpu-tier \
--tool multiroundqa \
--model qwen-3-8b \
--framework vllm --version 0.32.0 \
--kv-cache-tier cpu
benchctl scenario create \
--project kv-starter --workload cpu-tier \
--name c8-r5 --code c8-r5 \
--concurrency 8 --num-rounds 5
benchctl job schedule \
--project kv-starter --workload cpu-tier \
--scenario c8-r5 --server <machine-hostname> \
--name kv-cpu-c8-r5 --gpu-count 1
Leave --engine-args and --lmcache-engine-args-set out to use the tier defaults. The scenario takes the sammshen dataset, 8192 input tokens, and 512 output tokens as defaults. Read the result with benchctl job status <job-id> and benchctl job results <job-id>.
API
The calls below match the KV Cache Offload API page. Set METRUM_API_URL, METRUM_JWT_TOKEN, METRUM_ACCOUNT_ID, and METRUM_ORG_ID as described there.
-
List the tiers with
list_kv_cache_tiers_for_recipeand{"p_tool_code":"multiroundqa","p_framework_code":"vllm"}. -
Create the project with
create_project. Setp_visibility_codetoorg. -
Create the workload with
create_workload:{"p_owner_account_id": "<account-uuid>","p_project_name": "kv-starter","p_workload_name": "cpu tier","p_workload_code": "cpu-tier","p_tool_code": "multiroundqa","p_model_code": "qwen-3-8b","p_framework_code": "vllm","p_version": "0.32.0","p_kv_cache_tier_code": "cpu"} -
Create the scenario with
create_scenario. Sendp_concurrency8andp_job_params{"num_rounds":"5"}. -
Run it with
execute_scenario. Sendp_server_hostnameandp_gpu_count1. -
Poll
get_job_status, and then readlist_multiroundqa_outputs_for_job.
Round counts below 5 are refused. More users than the dataset gives at the chosen rounds per user are refused too: sammshen gives 598 at 25 rounds per user. A project that has run is locked. Copy it to change it.
Distributed KV cache
A distributed KV cache workload shares or moves KV cache between the machines of a cluster group. In every path it is a KV Cache Offload workload (multiroundqa) that carries a stack. A stack is one engine, one KV mode, one cache layer, and one transfer path that the runtime can start. Metrum AI Bench starts the engines through each machine's agent (the bare metal orchestrator). The other orchestrators are listed in the product and are locked as coming soon.
Requirements for every stack
| Requirement | Detail |
|---|---|
| Machines | Two or more machines of one GPU family, for example all NVIDIA L40S. Machines of different vendors never share a cluster group. |
| Cluster group | A group that holds the machines, head machine first. Create it on the Infrastructure page or with create_cluster_group. The CLI has no command for it. |
| Agent | The Metrum AI Bench agent runs on every machine, and every machine reports an address the others can reach. |
| Model | qwen-3-8b. It is the model the validated runs used. |
| Switches | Connect each switch the machines are cabled to, with a read-only login, before you publish a result. |
Two machines with two NVIDIA L40S GPUs each is the pair that backs every validated run in the catalog.
Stacks the catalog states a verdict for
The catalog records one verdict for each stack. Only one stack is Verified: LMCache with a shared Valkey tier on vLLM 0.28.0. Pool runs 855 and 856 on two machines with two L40S GPUs each, over TCP, back it. Every other stack is Untested or Needs a setup step. The runtime implements them and they are launchable. A hardware run has not backed them. Broken stacks are refused.
First run values
| Setting | Value |
|---|---|
| Model | qwen-3-8b |
| Users, rounds | 8 users, 5 rounds |
| Input and output tokens | 1024 in, 64 out (the CLI defaults) |
| Repeats | 3 (fewer than 3 mark every result preliminary) |
| Workload shape | Agentic data set replay, the default |
| Orchestrator | Bare metal, the default |
| Sizes | 16 GB for each host tier and each shared store |
The sizes are examples that satisfy the planner rule that a size is above zero. Keep a host tier well below the RAM of the machine.
How to read the stack tables
| Column | Meaning |
|---|---|
| Engine and version | --framework and --framework-version. Defaults to vLLM. |
| Tier | --tier. gpu for stacks without an LMCache server. cpu for stacks that start one. |
| Extra flags | The values the planner requires for the stack. A stack refuses a missing value. |
The planner rules behind the flags:
- A stack that starts a shared store (Valkey or Mooncake) needs
--shared-tier-gb. A stack without one refuses it. - A stack with the engine's own offload (vLLM native offload, SGLang HiCache, TensorRT-LLM host offload) needs
--host-tier-gb. - A stack on a shared filesystem needs
--disk-tier-path, the same path on every machine. - A prefill and decode stack on two or more machines needs
--prefill-nodes. The value runs from 1 to the machine count minus 1. - A stack with an LMCache server needs
--tier cpuor--tier nvme. A stack without one needs--tier gpu. - Mooncake stacks move bytes over RDMA by default. The examples use
--transfer-backend mooncake_tcp --transport tcp, which needs no RDMA card.
vLLM stacks
Use --framework-version 0.28.0 unless the table says otherwise.
| Stack code | Strategy | Tier | Extra flags | Verdict |
|---|---|---|---|---|
vllm-no-prefix | Baseline, prefix cache off | gpu | None | Untested |
vllm-gpu-prefix | Baseline | gpu | None | Untested |
vllm-native-offload | Offload to host memory | gpu | --host-tier-gb 16 | Untested |
vllm-native-fs-shared | Shared pool on a shared filesystem | gpu | --host-tier-gb 16 --disk-tier-path /mnt/shared/kv | Needs a setup step |
vllm-lmcache-valkey | Shared pool through LMCache and Valkey | cpu or nvme | --shared-tier-gb 16 | Verified on 0.28.0 |
vllm-lmcache-mooncake | Shared pool through LMCache and Mooncake | cpu | --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcp | Needs a setup step |
vllm-mooncake-store | Shared pool in a Mooncake store | gpu | --framework-version 0.30.0 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcp | Untested |
vllm-nixl-pd | Prefill and decode over NIXL | gpu | --prefill-nodes 1 | Untested |
vllm-mooncake-pd | Prefill and decode over Mooncake | gpu | --prefill-nodes 1 --transfer-backend mooncake_tcp --transport tcp | Untested |
vllm-nixl-pd-native-offload | Prefill and decode with host offload | gpu | --prefill-nodes 1 --host-tier-gb 16 | Untested |
vllm-nixl-pd-lmcache | Prefill and decode with LMCache | cpu or nvme | --prefill-nodes 1 --gpus-per-node 1 | Untested |
vllm-store-pd | Prefill and decode through the LMCache store (baseline) | cpu | --prefill-nodes 1 --shared-tier-gb 16 | Untested |
vllm-moriio-pd (AMD only) | Prefill and decode over MoRI-IO | gpu | --prefill-nodes 1 | Needs a setup step |
vllm-nixl-pd-lmcache runs one engine on each machine. Set --gpus-per-node to the tensor parallel size, which is 1 for the default engine settings.
vllm-p2p-nccl-pd is Broken. vLLM removed its connector in 0.24.0, and the planner refuses it.
SGLang stacks
Use --framework sglang --framework-version 0.5.20 --tier gpu. SGLang offers only the GPU tier, because none of its stacks starts an LMCache server. The tier's engine settings are sglang-default.
| Stack code | Strategy | Extra flags | Verdict |
|---|---|---|---|
sglang-no-radix | Baseline, radix cache off | None | Untested |
sglang-radix | Baseline | None | Untested |
sglang-hicache-host | Offload to host memory | --host-tier-gb 16 | Untested |
sglang-hicache-file-shared | Shared pool on a shared filesystem | --host-tier-gb 16 --disk-tier-path /mnt/shared/kv | Needs a setup step |
sglang-hicache-mooncake | Shared pool in Mooncake | --host-tier-gb 16 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcp | Untested |
sglang-pd-nixl | Prefill and decode over NIXL | --prefill-nodes 1 | Untested |
sglang-pd-mooncake | Prefill and decode over Mooncake | --prefill-nodes 1 --transfer-backend mooncake_tcp --transport tcp | Untested |
sglang-pd-hicache | Prefill and decode with decode-side offload | --prefill-nodes 1 --host-tier-gb 16 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcp | Untested |
sglang-hicache-mori (AMD only) | Shared pool through MoRI | --host-tier-gb 16 | Needs a setup step |
sglang-pd-mori (AMD only) | Prefill and decode over MoRI | --prefill-nodes 1 | Needs a setup step |
TensorRT-LLM stacks
Use --framework trt-llm --framework-version 1.3.0rc28. TensorRT-LLM runs on NVIDIA only. Version 1.3.0rc28 is a release candidate, so the catalog marks it as not stable. The GPU tier uses the engine settings trt-llm-default. The cpu and nvme tiers exist for TensorRT-LLM in distributed KV only.
| Stack code | Strategy | Tier | Extra flags | Verdict |
|---|---|---|---|---|
trtllm-no-reuse | Baseline, block reuse off | gpu | None | Untested |
trtllm-block-reuse | Baseline | gpu | None | Untested |
trtllm-host-offload | Offload to host memory | gpu | --host-tier-gb 16 | Untested |
trtllm-pd-nixl | Prefill and decode over NIXL | gpu | --prefill-nodes 1 | Untested |
trtllm-lmcache-mp | Shared pool through LMCache and Valkey | cpu or nvme | --shared-tier-gb 16 | Untested |
On 1.3.0rc28, a prefill and decode run can return content from another prompt in the batch, so the catalog marks every response of trtllm-pd-nixl for a content check.
Web app
- Open Projects, and then select New Project. Enter a Project name and choose Team.
- Under Add a workload, select KV Cache Offload.
- In the Model stage, choose Qwen 3 8B.
- In the Serving engine stage, choose the Serving framework and Version from the tables. Under Cache storage, choose the tier from the Tier column.
- In the Hardware stage, set Deployment to Several machines. The Distributed setup steps open.
- Cluster: choose the Cluster group.
- Strategy: choose the strategy that matches the stack.
- Stack: choose the KV stack. Leave Transfer backend and Network on Automatic, or choose the Mooncake TCP path for the stacks that need it.
- Sizing: set the fields named in Extra flags. Shared store size is
--shared-tier-gb. Host memory tier is--host-tier-gb. Disk tier path or Shared mount path is--disk-tier-path. Prefill machines is--prefill-nodes. GPUs per machine is--gpus-per-node. - Workload: keep Agentic data set replay.
- Measurement: set Repeats to
3. - Review: check the plan for each machine. Select Save & Run.
- In the Load stage of the workload card, set Concurrency to
8, and Rounds per Conversation to5.
If a setting cannot run, the step that holds it shows the reason.
CLI
benchctl distributed-kv workload create builds the same workload the wizard builds. It prints the plan for each machine first and refuses settings that cannot run. It then saves a project. The example runs the verified stack on the CPU RAM tier.
benchctl distributed-kv workload create \
--cluster-group <group-code> \
--stack vllm-lmcache-valkey \
--model qwen-3-8b \
--framework vllm --framework-version 0.28.0 \
--tier cpu \
--shared-tier-gb 16 \
--users 8 --rounds 5 \
--input-tokens 1024 --output-tokens 64 \
--repeat-count 3 \
--project dkv-starter --workload-code dkv-valkey
The command prints the exact start command. For the example it is:
benchctl distributed-kv run --project dkv-starter --workload dkv-valkey
When another run uses a machine of the group, the run waits in the queue and starts when the machines are free. Add --project-uuid to run if two of your projects share the name.
For the other stacks, change --stack, --framework, --framework-version, --tier, and the extra flags from the tables. Optional flags:
| Flag | Use |
|---|---|
--transport auto, tcp, or rdma | Network path for KV. |
--rdma-device <name> | RDMA port. Repeat for more than one. |
--tcp-interface-name <name> | Interface for KV traffic over TCP. |
--routing-policy <code> | Router. The default depends on the stack. |
--node-layout <prefill>:<decode> | GPUs per role on one machine. Repeat for each machine, head first. |
--prefill-gpus, --prefill-tp | Prefill split on a one-machine group, and prefill tensor parallel size. |
The CLI has no flag for the orchestrator, the load duration, the warm-up, or a workload shape other than the default. Use the web app or the API for those.
API
Use the calls on the Distributed KV Cache API page.
-
list_cluster_groupsreturns thegroup_code. -
list_kv_cache_tiers_for_recipewithp_tool_codemultiroundqaand yourp_framework_codereturns the tier row. It holdsmodel_server_engine_args_set_code,requires_cache_server, andcache_server_engine_args_set_code. -
preview_distributed_kv_topology(optional) returns the plan for each machine, or the reason the settings cannot run. -
save_project_configsaves the project. Send onebenchmarkworkload with adistributed_kvobject:{"p_account_id": "<account-uuid>","p_org_id": "<org-uuid>","p_project_uuid": null,"p_save_as_new": false,"p_expected_revision": null,"p_payload": {"project_name": "dkv-starter","visibility_code": "org","workloads": [{"type": "benchmark","workload_code": "dkv-valkey","workload_name": "dkv-valkey","tool_code": "multiroundqa","model_codes": ["qwen-3-8b"],"framework_code": "vllm","version": "0.28.0","engine_args_set_code": "<model_server_engine_args_set_code>","lmcache_engine_args_set_code": "<cache_server_engine_args_set_code>","kv_cache_tier_code": "cpu","target_selections": [],"scenarios": [{"scenario_name": "8 users","scenario_code": "dkv-valkey-c8","concurrency": 8,"input_sequence_length": 1024,"output_sequence_length": 64,"num_requests": 16,"streaming": true,"job_params": {"num_rounds": "5"}}],"distributed_kv": {"cluster_group_code": "<group-code>","stack_code": "vllm-lmcache-valkey","shared_tier_gb": 16,"repeat_count": 3}}]}}Send
lmcache_engine_args_set_codeonly for a tier that needs a cache server. -
execute_project_runstarts the run. Sendp_owner_account_id,p_project_name,p_project_uuid,p_workload_code,p_run_name,p_manage_model_servertrue, andp_server_config_instance_idnull. A busy cluster group queues the run. -
get_distributed_kv_run_statusandget_distributed_kv_run_reportreturn the pool state and the results.
The distributed_kv keys that carry the extra flags are host_tier_gb, shared_tier_gb, disk_tier_path, prefill_node_count, gpus_per_node, transfer_backend_code, transport_code, repeat_count, and node_layout.
AMD machines
An AMD cluster group uses the same commands. Choose a stack that runs on AMD. TensorRT-LLM stacks and vllm-lmcache-mooncake do not run on AMD GPUs. The three MoRI stacks run on AMD only, and every machine needs a MoRI-capable RDMA card (AMD Pollara, Broadcom Thor2, or NVIDIA ConnectX-7) and an image with amd-mori. The CPU RAM and NVMe SSD tiers use an LMCache server that runs from the vLLM ROCm image, selected for AMD pools by the tier's vendor default.
Agentic Bench
Agentic Bench runs a real, tool-using agent through real tasks inside a Kubernetes sandbox. It measures how many agents one set of hardware sustains and where the run breaks first. A run sweeps the concurrency levels you choose. Each level is one measurement step.
First run values: Coding Agent
| Setting | Value | Source |
|---|---|---|
| Workload kind | Coding Agent | Launcher default |
| Task set | terminal-bench@2.0 | The launcher default and schema/95_agentic_bench_terminal_bench_tasks.sql |
| Task codes | fix-git (agent limit 900 s) | Seeded quick-pick list for the task set |
| Serving framework | vLLM | The only framework |
| Model | qwen3-4b (Qwen3-4B) | The approved list holds qwen3-4b, qwen-3.5-9b, qwen3-14b, qwen-3.8-27b, qwen-3.8-27b-fp8, and qwen3-32b |
| Version | 0.28.0 | The version the approved tool-call parsers were checked on |
| Cluster group | A group with one server or more | A single server becomes a one-node cluster |
| GPUs per node, tensor parallel size, pipeline parallel size | 1, 1, 1 | Launcher defaults |
| Concurrency levels | 1, 8 | Strictly increasing, positive whole numbers |
| Trials per task | 3 | Launcher default. The smallest value is 1. |
| SLA and validation | Leave every field empty | Defaults apply |
The run first runs the validation task once at concurrency 1. The validation task is always the first task code. The defaults for the coding task sets are an agent time multiplier of 1.0 (allowed range 1.0 to 576), a minimum pass rate of 85 percent, and a minimum GPU busy ratio of 60 percent. Every phase of a trial also gets a fixed allowance of 2100 seconds on top of its task limit.
Qwen3-4B holds about 8 GB of weights in BF16. The task sandboxes need CPU cores and memory on the same cluster.
Web app
- Open Projects, and then select New Project. Enter a Project name and choose Team.
- Under Add a workload, choose the Agentic Benchmarking card.
- Agent Config: under Workload, choose Coding Agent. Under Task set, keep Terminal-Bench 2.0. Under Task codes, replace the default with
fix-git. - Model Config: under Serving framework, keep vLLM. Under Model, choose Qwen3-4B. Under Version, choose
0.28.0. - Hardware: under Cluster group, choose your group. Keep GPUs per node, Tensor parallel size, and Pipeline parallel size at
1. - Load: set Concurrency levels to
1and8. Set Trials per task to3. - SLA and validation: leave the fields at their defaults.
- Select Save & Run.
CLI
benchctl has no command for Agentic Bench. Use the web app or the API.
API
-
Save the project with
save_project_config. Send one workload withtypeagentic_bench:{"p_account_id": "<account-uuid>","p_org_id": "<org-uuid>","p_project_uuid": null,"p_save_as_new": false,"p_expected_revision": null,"p_payload": {"project_name": "agentic-starter","visibility_code": "org","workloads": [{"type": "agentic_bench","workload_code": "agentic-starter","workload_name": "Agentic starter","model_code": "qwen3-4b","framework_code": "vllm","version": "0.28.0","tensor_parallel_size": 1,"pipeline_parallel_size": 1,"settings": {"dataset_ref": "terminal-bench@2.0","task_codes": ["fix-git"],"cluster_group_code": "<group-code>","concurrency_levels": [1, 8],"trials_per_task": 3},"target_selections": [{"server_id": 0, "gpu_count": 1}]}]}}Replace
0with the id of a machine in the cluster group.list_cluster_groupsandlist_server_config_instancesreturn the codes and ids. -
Start the run with
create_agentic_bench_multinode_run. The web app sends this call after it saves:{"p_account_id": "<account-uuid>","p_org_id": "<org-uuid>","p_run_code": "<new-uuid>","p_project_name": "agentic-starter","p_project_uuid": "<project-uuid>","p_workload_code": "agentic-starter","p_cluster_group_code": "<group-code>","p_concurrency_levels": [1, 8],"p_dataset_ref": "terminal-bench@2.0","p_task_codes": ["fix-git"],"p_validation_task_code": "fix-git","p_trials_per_task": 3,"p_server_ids": [0],"p_gpu_counts": [1],"p_prefill_decode_enabled": false}The response holds
r_run_code,r_validation_job_id, andr_measurement_job_count. -
Read the run with
get_agentic_bench_run_status,get_agentic_bench_rung_results, andget_agentic_bench_sizing_report_by_run. Each takesp_account_id,p_org_id, andp_run_code.
Check valid_operating_point on each step before you size hardware from it.
Other Agentic Bench variants
| Variant | Where to set it |
|---|---|
| Terminal-Bench 2.1 task set | Set Task set or dataset_ref to terminal-bench/terminal-bench-2-1@6. The same quick-pick tasks are seeded for it. |
| Prefill and decode split | Turn on Split prefill and decode across machines, or send p_prefill_decode_enabled true with p_prefill_node_count. It needs two or more machines. |
| Enterprise Agent task sets | Select Enterprise Agent as the workload. This guide has no starter configuration for it. |