Skip to main content

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.

SettingValueSource
Modelqwen-3-8b (Qwen3-8B, Qwen/Qwen3-8B)seed/06a_kyai.sql
Framework and versionvllm 0.32.0seed/66_onboard_vllm_0310_0320.sql
Datasetsammshen (the default, 767 conversations)seed/43_kv_cache_offload.sql
Concurrency8 users at the same timeAt most 4,946 on sammshen at 5 rounds per user
Input Sequence Length8192 tokens (the default)Scenario default
Output Sequence Length512 tokens (the default)Scenario default
Rounds per conversation5The smallest value the product accepts
MachineOne onboarded NVIDIA machine with one GPU of at least 24 GBQwen3-8B in BF16 holds about 16 GB of weights
Project visibilityTeam (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:

TiervLLM settingsCache server settingsCache server defaults
GPUkv-cache-offload-gpuNoneNone
CPU RAMkv-cache-offload-cpulmcache-server-cpu-defaultHost pool sized to the machine (auto)
NVMe SSDkv-cache-offload-cpulmcache-server-nvme-default32 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​

  1. Open Projects, and then select New Project.
  2. Enter a Project name, for example kv-starter. Under Who can see it, choose Team.
  3. Under Add a workload, select KV Cache Offload.
  4. In the Model stage, under Models, choose Qwen 3 8B. Leave Datasets empty to use sammshen.
  5. In the Serving engine stage, keep vLLM. Under Version, choose 0.32.0.
  6. Under Cache storage, choose GPU, CPU RAM, or NVMe SSD. Choose it before you edit any argument, because a new tier resets the arguments.
  7. 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.
  8. In the Hardware stage, keep Deployment at One machine. Under Machines, choose your machine. Set GPUs to use to 1.
  9. In the Load stage, set Concurrency to 8, keep Input Sequence Length at 8192 and Output Sequence Length at 512, and set Rounds per Conversation to 5.
  10. 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.

  1. List the tiers with list_kv_cache_tiers_for_recipe and {"p_tool_code":"multiroundqa","p_framework_code":"vllm"}.

  2. Create the project with create_project. Set p_visibility_code to org.

  3. 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"
    }
  4. Create the scenario with create_scenario. Send p_concurrency 8 and p_job_params {"num_rounds":"5"}.

  5. Run it with execute_scenario. Send p_server_hostname and p_gpu_count 1.

  6. Poll get_job_status, and then read list_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​

RequirementDetail
MachinesTwo or more machines of one GPU family, for example all NVIDIA L40S. Machines of different vendors never share a cluster group.
Cluster groupA 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.
AgentThe Metrum AI Bench agent runs on every machine, and every machine reports an address the others can reach.
Modelqwen-3-8b. It is the model the validated runs used.
SwitchesConnect 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​

SettingValue
Modelqwen-3-8b
Users, rounds8 users, 5 rounds
Input and output tokens1024 in, 64 out (the CLI defaults)
Repeats3 (fewer than 3 mark every result preliminary)
Workload shapeAgentic data set replay, the default
OrchestratorBare metal, the default
Sizes16 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​

ColumnMeaning
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 flagsThe 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 cpu or --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 codeStrategyTierExtra flagsVerdict
vllm-no-prefixBaseline, prefix cache offgpuNoneUntested
vllm-gpu-prefixBaselinegpuNoneUntested
vllm-native-offloadOffload to host memorygpu--host-tier-gb 16Untested
vllm-native-fs-sharedShared pool on a shared filesystemgpu--host-tier-gb 16 --disk-tier-path /mnt/shared/kvNeeds a setup step
vllm-lmcache-valkeyShared pool through LMCache and Valkeycpu or nvme--shared-tier-gb 16Verified on 0.28.0
vllm-lmcache-mooncakeShared pool through LMCache and Mooncakecpu--shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcpNeeds a setup step
vllm-mooncake-storeShared pool in a Mooncake storegpu--framework-version 0.30.0 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcpUntested
vllm-nixl-pdPrefill and decode over NIXLgpu--prefill-nodes 1Untested
vllm-mooncake-pdPrefill and decode over Mooncakegpu--prefill-nodes 1 --transfer-backend mooncake_tcp --transport tcpUntested
vllm-nixl-pd-native-offloadPrefill and decode with host offloadgpu--prefill-nodes 1 --host-tier-gb 16Untested
vllm-nixl-pd-lmcachePrefill and decode with LMCachecpu or nvme--prefill-nodes 1 --gpus-per-node 1Untested
vllm-store-pdPrefill and decode through the LMCache store (baseline)cpu--prefill-nodes 1 --shared-tier-gb 16Untested
vllm-moriio-pd (AMD only)Prefill and decode over MoRI-IOgpu--prefill-nodes 1Needs 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 codeStrategyExtra flagsVerdict
sglang-no-radixBaseline, radix cache offNoneUntested
sglang-radixBaselineNoneUntested
sglang-hicache-hostOffload to host memory--host-tier-gb 16Untested
sglang-hicache-file-sharedShared pool on a shared filesystem--host-tier-gb 16 --disk-tier-path /mnt/shared/kvNeeds a setup step
sglang-hicache-mooncakeShared pool in Mooncake--host-tier-gb 16 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcpUntested
sglang-pd-nixlPrefill and decode over NIXL--prefill-nodes 1Untested
sglang-pd-mooncakePrefill and decode over Mooncake--prefill-nodes 1 --transfer-backend mooncake_tcp --transport tcpUntested
sglang-pd-hicachePrefill and decode with decode-side offload--prefill-nodes 1 --host-tier-gb 16 --shared-tier-gb 16 --transfer-backend mooncake_tcp --transport tcpUntested
sglang-hicache-mori (AMD only)Shared pool through MoRI--host-tier-gb 16Needs a setup step
sglang-pd-mori (AMD only)Prefill and decode over MoRI--prefill-nodes 1Needs 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 codeStrategyTierExtra flagsVerdict
trtllm-no-reuseBaseline, block reuse offgpuNoneUntested
trtllm-block-reuseBaselinegpuNoneUntested
trtllm-host-offloadOffload to host memorygpu--host-tier-gb 16Untested
trtllm-pd-nixlPrefill and decode over NIXLgpu--prefill-nodes 1Untested
trtllm-lmcache-mpShared pool through LMCache and Valkeycpu or nvme--shared-tier-gb 16Untested

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​

  1. Open Projects, and then select New Project. Enter a Project name and choose Team.
  2. Under Add a workload, select KV Cache Offload.
  3. In the Model stage, choose Qwen 3 8B.
  4. In the Serving engine stage, choose the Serving framework and Version from the tables. Under Cache storage, choose the tier from the Tier column.
  5. In the Hardware stage, set Deployment to Several machines. The Distributed setup steps open.
  6. Cluster: choose the Cluster group.
  7. Strategy: choose the strategy that matches the stack.
  8. Stack: choose the KV stack. Leave Transfer backend and Network on Automatic, or choose the Mooncake TCP path for the stacks that need it.
  9. 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.
  10. Workload: keep Agentic data set replay.
  11. Measurement: set Repeats to 3.
  12. Review: check the plan for each machine. Select Save & Run.
  13. In the Load stage of the workload card, set Concurrency to 8, and Rounds per Conversation to 5.

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:

FlagUse
--transport auto, tcp, or rdmaNetwork 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-tpPrefill 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.

  1. list_cluster_groups returns the group_code.

  2. list_kv_cache_tiers_for_recipe with p_tool_code multiroundqa and your p_framework_code returns the tier row. It holds model_server_engine_args_set_code, requires_cache_server, and cache_server_engine_args_set_code.

  3. preview_distributed_kv_topology (optional) returns the plan for each machine, or the reason the settings cannot run.

  4. save_project_config saves the project. Send one benchmark workload with a distributed_kv object:

    {
    "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_code only for a tier that needs a cache server.

  5. execute_project_run starts the run. Send p_owner_account_id, p_project_name, p_project_uuid, p_workload_code, p_run_name, p_manage_model_server true, and p_server_config_instance_id null. A busy cluster group queues the run.

  6. get_distributed_kv_run_status and get_distributed_kv_run_report return 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​

SettingValueSource
Workload kindCoding AgentLauncher default
Task setterminal-bench@2.0The launcher default and schema/95_agentic_bench_terminal_bench_tasks.sql
Task codesfix-git (agent limit 900 s)Seeded quick-pick list for the task set
Serving frameworkvLLMThe only framework
Modelqwen3-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
Version0.28.0The version the approved tool-call parsers were checked on
Cluster groupA group with one server or moreA single server becomes a one-node cluster
GPUs per node, tensor parallel size, pipeline parallel size1, 1, 1Launcher defaults
Concurrency levels1, 8Strictly increasing, positive whole numbers
Trials per task3Launcher default. The smallest value is 1.
SLA and validationLeave every field emptyDefaults 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​

  1. Open Projects, and then select New Project. Enter a Project name and choose Team.
  2. Under Add a workload, choose the Agentic Benchmarking card.
  3. Agent Config: under Workload, choose Coding Agent. Under Task set, keep Terminal-Bench 2.0. Under Task codes, replace the default with fix-git.
  4. Model Config: under Serving framework, keep vLLM. Under Model, choose Qwen3-4B. Under Version, choose 0.28.0.
  5. Hardware: under Cluster group, choose your group. Keep GPUs per node, Tensor parallel size, and Pipeline parallel size at 1.
  6. Load: set Concurrency levels to 1 and 8. Set Trials per task to 3.
  7. SLA and validation: leave the fields at their defaults.
  8. Select Save & Run.

CLI​

benchctl has no command for Agentic Bench. Use the web app or the API.

API​

  1. Save the project with save_project_config. Send one workload with type agentic_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 0 with the id of a machine in the cluster group. list_cluster_groups and list_server_config_instances return the codes and ids.

  2. 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, and r_measurement_job_count.

  3. Read the run with get_agentic_bench_run_status, get_agentic_bench_rung_results, and get_agentic_bench_sizing_report_by_run. Each takes p_account_id, p_org_id, and p_run_code.

Check valid_operating_point on each step before you size hardware from it.

Other Agentic Bench variants​

VariantWhere to set it
Terminal-Bench 2.1 task setSet 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 splitTurn 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 setsSelect Enterprise Agent as the workload. This guide has no starter configuration for it.