First runs: speech, vision, image generation, and KYAI
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, and an API path.
Before you start
Each first run below uses one machine, one model, and a small scenario list. The same configuration runs through the web app, benchctl, and the API.
-
Onboard a machine in your workspace. The machine must show as available. See Hardware onboarding.
-
Check that your plan includes the tool.
Tool Plan feature Included from MetrumBench ASR feature:metrumbench-asrTier 2 MetrumBench VLM feature:metrumbench-vlmTier 2 MetrumBench ImageGen feature:image_genTier 2 KYAI feature:kyaiTier 1 -
For the CLI, sign in with
benchctl auth login. See the CLI reference. -
For the API, set these variables. Read the machine id from
list_server_config_instances.export METRUM_BASE="https://<control-plane-host>/api/postgrest"export METRUM_TOKEN="<personal-access-token>"export ACCOUNT_ID="<account-uuid>"export ORG_ID="<workspace-uuid>"export SERVER_ID="<machine-id>"curl -fsS -X POST "$METRUM_BASE/rpc/list_server_config_instances" \-H "Authorization: Bearer $METRUM_TOKEN" \-H "Content-Type: application/json" \-d "{\"p_org_id\":\"$ORG_ID\",\"p_account_id\":\"$ACCOUNT_ID\"}" | jq '.[] | {server_id, hostname, availability_code}'
Every API example saves the project with save_project_config, then starts it with execute_project_run. The saved project returns project_uuid. Pass it to the run call:
curl -fsS -X POST "$METRUM_BASE/rpc/execute_project_run" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_owner_account_id\":\"$ACCOUNT_ID\",
\"p_project_name\":\"<project-name>\",
\"p_project_uuid\":\"<project-uuid>\",
\"p_run_name\":\"<run-name>\",
\"p_server_config_instance_id\":$SERVER_ID
}" | jq
The response holds run_id and job_ids. Poll each job with get_job_status, as the API reference shows.
A project that has run cannot change. To change a configuration after a run, copy the project. See Project lifecycle.
MetrumBench ASR first run
MetrumBench ASR transcribes audio with a Whisper model and reports speed and accuracy. ASR runs on vLLM only.
Starter configuration
| Setting | Value |
|---|---|
| Model | Whisper Small (whisper-small, Hugging Face id openai/whisper-small) |
| Framework and version | vLLM 0.22.1 |
| Build variant | Default (NVIDIA CUDA) |
| Argument preset | vllm-asr (sets max_model_len to 448, the Whisper limit) |
| Dataset | LibriSpeech Test Clean (librispeech-test-clean) |
| Machine | One available machine with an NVIDIA GPU |
| GPUs to use | 1 |
| Concurrency | 1 and 8 |
| Scenarios | 2: c1, c8 |
ASR has serving adapters for vLLM 0.20.1 and 0.22.1 only. A launch on another vLLM version fails with "No compatible serving adapter found". SGLang and TensorRT-LLM are not offered for ASR.
Other Whisper models in the catalog work the same way: whisper-large-v3, whisper-large-v3-turbo, whisper-large-v2, whisper-medium, and whisper-base.
Run it in the web app
- Create a project. See Quickstart for the project name and visibility fields.
- In the Workload Catalog, open Automatic Speech Recognition and select MetrumBench ASR.
- On the Model step, select Whisper Small in Models. In Dataset, keep the first entry, MetrumBench ASR Snapshot: LibriSpeech Test Clean. Select Next: serving engine.
- On the Serving engine step, set Serving framework to vLLM, which is already set because ASR has one framework. Set Version to
0.22.1. Under Advanced settings, set Argument preset to vLLM ASR. Keep Build variant at the default. Select Next: hardware. - On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
- On the Load step, set Concurrency to
1and8. ASR has no Input Sequence Length, Output Sequence Length, or Streaming field. - Select Save & Run.
Run it with the CLI
benchctl project create first-asr-run --visibility private
benchctl workload create --project first-asr-run \
--name "Whisper Small on vLLM" --code whisper-small-vllm \
--tool metrumbench-asr --model whisper-small \
--framework vllm --version 0.22.1 --engine-args vllm-asr
benchctl scenario create --project first-asr-run --workload whisper-small-vllm \
--name c1 --code c1 --concurrency 1
benchctl scenario create --project first-asr-run --workload whisper-small-vllm \
--name c8 --code c8 --concurrency 8
benchctl job schedule-all --project first-asr-run \
--workload whisper-small-vllm --server <machine-hostname>
benchctl workload create has no dataset flag. An ASR workload with no dataset uses librispeech-test-clean.
benchctl job schedule-all has no GPU limit and uses every GPU on the machine. To limit the run to one GPU, schedule each scenario with benchctl job schedule --scenario c1 --gpu-count 1.
Run it with the API
curl -fsS -X POST "$METRUM_BASE/rpc/save_project_config" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d @- <<EOF | jq
{
"p_account_id": "$ACCOUNT_ID",
"p_org_id": "$ORG_ID",
"p_project_uuid": null,
"p_save_as_new": false,
"p_expected_revision": null,
"p_payload": {
"project_name": "first-asr-run",
"visibility_code": "private",
"workloads": [{
"type": "benchmark",
"workload_code": "whisper-small-vllm",
"workload_name": "Whisper Small on vLLM",
"tool_code": "metrumbench-asr",
"model_codes": ["whisper-small"],
"framework_code": "vllm",
"version": "0.22.1",
"engine_args_set_code": "vllm-asr",
"asr_snapshot_code": "librispeech-test-clean",
"scenarios": [
{"scenario_code": "c1", "concurrency": 1},
{"scenario_code": "c8", "concurrency": 8}
],
"target_selections": [{"server_id": $SERVER_ID, "gpu_count": 1}]
}]
}
}
EOF
Then call execute_project_run as shown in Before you start.
MetrumBench VLM first run
MetrumBench VLM sends an image and a text prompt in each request and reports throughput and latency.
Starter configuration: vLLM on NVIDIA CUDA
| Setting | Value |
|---|---|
| Model | Qwen2.5-VL 3B Instruct (qwen2.5-vl-3b-instruct, Hugging Face id Qwen/Qwen2.5-VL-3B-Instruct) |
| Framework and version | vLLM 0.20.1 |
| Build variant | Default (NVIDIA CUDA) |
| Argument preset | vllm-metrumbench-vlm |
| Dataset | MetrumBench VLM 4K Images v1 (metrumbench-vlm-4k-v1) |
| Machine | One available machine with an NVIDIA GPU |
| GPUs to use | 1 |
| Concurrency | 1 and 8 |
| Max Tokens | 256 |
| Images per request | 1 |
| Image detail | low |
| Scenarios | 2: c1-mt256, c8-mt256 |
The web app sends 1 image per request and image detail low for every VLM scenario. The Load step has no field for either value.
Run it in the web app
- Create a project. See Quickstart.
- In the Workload Catalog, open Vision Language and select MetrumBench VLM.
- On the Model step, select Qwen2.5-VL 3B Instruct in Models. Keep the preselected Dataset. Select Next: serving engine.
- On the Serving engine step, set Serving framework to vLLM and Version to
0.20.1. Under Advanced settings, set Argument preset to MetrumBench VLM (VLM). Select Next: hardware. - On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
- On the Load step, set Concurrency to
1and8, and Max Tokens to256. - Select Save & Run.
Run it with the CLI
benchctl project create first-vlm-run --visibility private
benchctl workload create --project first-vlm-run \
--name "Qwen2.5-VL 3B on vLLM" --code qwen25-vl-3b-vllm \
--tool metrumbench-vlm --model qwen2.5-vl-3b-instruct \
--framework vllm --version 0.20.1 --engine-args vllm-metrumbench-vlm
benchctl scenario create --project first-vlm-run --workload qwen25-vl-3b-vllm \
--name c1-mt256 --code c1-mt256 --concurrency 1 \
--max-tokens 256 --num-images 1 --image-detail low
benchctl scenario create --project first-vlm-run --workload qwen25-vl-3b-vllm \
--name c8-mt256 --code c8-mt256 --concurrency 8 \
--max-tokens 256 --num-images 1 --image-detail low
benchctl job schedule-all --project first-vlm-run \
--workload qwen25-vl-3b-vllm --server <machine-hostname>
benchctl workload create has no dataset flag. A VLM workload with no dataset uses metrumbench-vlm-4k-v1. To limit the run to one GPU, use benchctl job schedule --gpu-count 1 for each scenario.
Run it with the API
curl -fsS -X POST "$METRUM_BASE/rpc/save_project_config" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d @- <<EOF | jq
{
"p_account_id": "$ACCOUNT_ID",
"p_org_id": "$ORG_ID",
"p_project_uuid": null,
"p_save_as_new": false,
"p_expected_revision": null,
"p_payload": {
"project_name": "first-vlm-run",
"visibility_code": "private",
"workloads": [{
"type": "benchmark",
"workload_code": "qwen25-vl-3b-vllm",
"workload_name": "Qwen2.5-VL 3B on vLLM",
"tool_code": "metrumbench-vlm",
"model_codes": ["qwen2.5-vl-3b-instruct"],
"framework_code": "vllm",
"version": "0.20.1",
"engine_args_set_code": "vllm-metrumbench-vlm",
"scenarios": [
{"scenario_code": "c1-mt256", "concurrency": 1, "max_tokens": 256, "num_images_batch": 1, "image_detail": "low"},
{"scenario_code": "c8-mt256", "concurrency": 8, "max_tokens": 256, "num_images_batch": 1, "image_detail": "low"}
],
"target_selections": [{"server_id": $SERVER_ID, "gpu_count": 1}]
}]
}
}
EOF
Then call execute_project_run as shown in Before you start.
MetrumBench ImageGen first run
MetrumBench ImageGen sends text prompts to an image generation endpoint and reports images per second and latency. It runs on two serving frameworks. Both use the model Z-Image Turbo.
Starter configuration
| Setting | vLLM-Omni | SGLang diffusion |
|---|---|---|
| Model | Z-Image Turbo (z-image-turbo, Hugging Face id Tongyi-MAI/Z-Image-Turbo) | Same |
| Framework code | vllm-omni | sglang |
| Version | 0.24.0 | 0.5.15.post1 |
| Build variant | default, shown as "vLLM Omni 0.24.0 (NVIDIA/CUDA)" | sglang-diffusion, shown as "SGLang 0.5.15.post1 (NVIDIA/CUDA)" |
| Argument preset | vllm-omni-metrumbench-imagegen | sglang-metrumbench-imagegen |
| Preset values | tensor_parallel_size 1, usp 1, ring 1 | tp_size 1, ulysses_degree 1, ring_degree 1 |
| Machine | One available machine with an NVIDIA GPU | Same |
| GPUs to use | 1 | 1 |
| Concurrency | 1 and 2 | 1 and 2 |
| Image Size | 1024x1024 | 1024x1024 |
| Images per Request | 1 | 1 |
| Scenarios | 2: c1-size1024x1024, c2-size1024x1024 | Same |
| Dataset | metrumbench-imagegen-smoke-prompts-v1, a small built-in prompt set | Same |
Keep Images per Request at 1 on SGLang. Some diffusion models fail when a request asks for more than one image on SGLang.
The web app limits Image Size to 4096 pixels on each side and Images per Request to 1 through 16.
Run it in the web app
- Create a project. See Quickstart.
- In the Workload Catalog, open Text to Image Generation and select MetrumBench ImageGen. If your plan lacks Image generation, the tool shows a lock.
- On the Model step, select Z-Image Turbo in Models. Select Next: serving engine.
- On the Serving engine step, set Serving framework to vLLM Omni or SGLang. Set Version to
0.24.0for vLLM Omni or0.5.15.post1for SGLang. Under Advanced settings, keep Build variant at the NVIDIA CUDA entry. Set Argument preset to the ImageGen preset of the framework. Select Next: hardware. - On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
- On the Load step, set Concurrency to
1and2, Image Size to1024x1024, and Images per Request to1. - Select Save & Run.
Run it with the CLI
The example uses vLLM-Omni. For SGLang, change --framework to sglang, --version to 0.5.15.post1, and --engine-args to sglang-metrumbench-imagegen.
benchctl project create first-imagegen-run --visibility private
benchctl workload create --project first-imagegen-run \
--name "Z-Image Turbo on vLLM-Omni" --code zimage-vllm-omni \
--tool metrumbench-imagegen --model z-image-turbo \
--framework vllm-omni --version 0.24.0 \
--engine-args vllm-omni-metrumbench-imagegen \
--metrumbench-imagegen-snapshot metrumbench-imagegen-smoke-prompts-v1
benchctl scenario create --project first-imagegen-run --workload zimage-vllm-omni \
--name c1-size1024x1024 --code c1-size1024x1024 --concurrency 1 \
--num-images 1 --param size=1024x1024
benchctl scenario create --project first-imagegen-run --workload zimage-vllm-omni \
--name c2-size1024x1024 --code c2-size1024x1024 --concurrency 2 \
--num-images 1 --param size=1024x1024
benchctl job schedule-all --project first-imagegen-run \
--workload zimage-vllm-omni --server <machine-hostname>
The --num-images help text names VLM. The flag also sets Images per Request for ImageGen. benchctl workload create has no build variant flag, so the CLI always uses the default NVIDIA CUDA build.
Run it with the API
The example uses vLLM-Omni. For SGLang, change framework_code to sglang, version to 0.5.15.post1, engine_args_set_code to sglang-metrumbench-imagegen, and framework_profile_code to sglang-diffusion.
curl -fsS -X POST "$METRUM_BASE/rpc/save_project_config" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d @- <<EOF | jq
{
"p_account_id": "$ACCOUNT_ID",
"p_org_id": "$ORG_ID",
"p_project_uuid": null,
"p_save_as_new": false,
"p_expected_revision": null,
"p_payload": {
"project_name": "first-imagegen-run",
"visibility_code": "private",
"workloads": [{
"type": "benchmark",
"workload_code": "zimage-vllm-omni",
"workload_name": "Z-Image Turbo on vLLM-Omni",
"tool_code": "metrumbench-imagegen",
"model_codes": ["z-image-turbo"],
"framework_code": "vllm-omni",
"version": "0.24.0",
"engine_args_set_code": "vllm-omni-metrumbench-imagegen",
"imagegen_snapshot_code": "metrumbench-imagegen-smoke-prompts-v1",
"scenarios": [
{"scenario_code": "c1-size1024x1024", "concurrency": 1, "num_images_batch": 1, "job_params": {"size": "1024x1024"}},
{"scenario_code": "c2-size1024x1024", "concurrency": 2, "num_images_batch": 1, "job_params": {"size": "1024x1024"}}
],
"target_selections": [{"server_id": $SERVER_ID, "gpu_count": 1}]
}]
}
}
EOF
Then call execute_project_run as shown in Before you start.
KYAI first run
KYAI measures answer quality. A run has two phases. The candidate model answers every question in a dataset (generation). A judge then scores each answer against the reference answer (evaluation). The platform runs your model on your machine and uses the Metrum hosted judge.
Starter configuration: a Metrum hosted candidate on vLLM
| Setting | Value |
|---|---|
| Candidate model | microsoft/Phi-4-mini-instruct |
| Endpoint name and code | Phi-4 mini vLLM, phi-4-mini-vllm |
| Framework and version | vLLM 0.24.0 |
| Argument preset | kyai-default, shown as "vLLM Args" |
| Max Concurrent Requests | 4 |
| Judge | Metrum hosted judge (metrum-hosted-judge) |
| Dataset | MMLU-Pro (mmlu-pro), a built-in set of 100 questions |
| Evaluation name and workload code | Phi-4 mini first run, phi-4-mini-first-run |
| Machine | One available machine with an NVIDIA GPU |
| GPUs to use | 1 |
| Scenarios | 1: phi-4-mini-first-run-mmlu-pro-eval |
Phi-4 mini does not write a reasoning block before its answer. A reasoning model needs a reasoning parser in its engine arguments, or the judge scores the reasoning text as part of the answer.
KYAI offers preset kyai-default for these framework versions only.
| Framework | Versions with kyai-default | Preset name |
|---|---|---|
| vLLM | 0.21.0, 0.22.0, 0.22.1, 0.23.0, 0.24.0 | vLLM Args |
| SGLang | 0.5.12.post1, 0.5.13, 0.5.13.post1, 0.5.14, 0.5.15 | SGLang Args |
| TensorRT-LLM | 1.0.0, 1.1.0, 1.2.0, 1.2.1 | TensorRT-LLM Args |
The built-in datasets are mmlu-pro, gpqa-diamond, math-500, python-codes-25k, humaneval, quantum-mechanics, and ifeval-25.
Run it in the web app
-
Create a project. See Quickstart.
-
In the Workload Catalog, open KYAI Evaluation and select KYAI Run.
-
On the Models step, enter
Phi-4 mini first runin Evaluation name. Under Models to compare, select Add a model and fill the form.- Endpoint Name:
Phi-4 mini vLLM. - Keep the Configure manually option.
- HuggingFace Model:
microsoft/Phi-4-mini-instruct. - Framework: vLLM. Version:
0.24.0. - Engine Args Set: vLLM Args.
- Max Concurrent Requests:
4. - Select Create Endpoint.
Select Next: judge.
- Endpoint Name:
-
On the Judge step, keep the Metrum hosted judge. Select Next: datasets.
-
On the Datasets step, select MMLU-Pro. Select Next: hardware.
-
On the Hardware step, select your machine under Machines. Set GPUs to use to 1.
-
Select Save & Run. The run generates the answers, then judges them.
The web app does not offer external endpoints in this release. A KYAI model always runs on your machine.
Run it with the CLI
benchctl project create first-kyai-run --visibility private
benchctl kyai endpoint-create \
--code phi-4-mini-vllm --name "Phi-4 mini vLLM" \
--api-base-url http://placeholder:8000/v1 \
--model-name microsoft/Phi-4-mini-instruct \
--framework vllm --version 0.24.0 \
--engine-args-set kyai-default --max-concurrent-requests 4
benchctl kyai workload-create --project first-kyai-run \
--code phi-4-mini-first-run --name "Phi-4 mini first run" \
--candidate phi-4-mini-vllm --judge metrum-hosted-judge
benchctl kyai scenario-create --project first-kyai-run \
--workload phi-4-mini-first-run \
--code phi-4-mini-first-run-mmlu-pro-eval --snapshot mmlu-pro
# Phase 1: generation
benchctl kyai generation-create --project first-kyai-run \
--name first-kyai-generation \
--workload phi-4-mini-first-run \
--scenario phi-4-mini-first-run-mmlu-pro-eval \
--server-hostname <machine-hostname>
benchctl kyai generation-get <generation-job-id>
# Phase 2: evaluation, after the generation job completes
benchctl kyai evaluation-create --project first-kyai-run \
--generation-job-id <generation-job-id> \
--name first-kyai-evaluation --judge metrum-hosted-judge
benchctl kyai evaluation-get <evaluation-job-id>
benchctl kyai evaluation-results --job-id <evaluation-job-id>
The placeholder address is the value the web app sends for a model that Metrum AI hosts. The platform replaces it when it starts the model server.
Run it with the API
Save the project, then run it. The run creates the generation job and the judge job.
curl -fsS -X POST "$METRUM_BASE/rpc/create_kyai_candidate_endpoint" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"p_account_id\":\"$ACCOUNT_ID\",
\"p_org_id\":\"$ORG_ID\",
\"p_endpoint_code\":\"phi-4-mini-vllm\",
\"p_endpoint_name\":\"Phi-4 mini vLLM\",
\"p_api_base_url\":\"http://placeholder:8000/v1\",
\"p_model_name\":\"microsoft/Phi-4-mini-instruct\",
\"p_framework_code\":\"vllm\",
\"p_framework_version\":\"0.24.0\",
\"p_engine_args_set_code\":\"kyai-default\",
\"p_max_concurrent_requests\":4
}" | jq
curl -fsS -X POST "$METRUM_BASE/rpc/save_project_config" \
-H "Authorization: Bearer $METRUM_TOKEN" \
-H "Content-Type: application/json" \
-d @- <<EOF | jq
{
"p_account_id": "$ACCOUNT_ID",
"p_org_id": "$ORG_ID",
"p_project_uuid": null,
"p_save_as_new": false,
"p_expected_revision": null,
"p_payload": {
"project_name": "first-kyai-run",
"visibility_code": "private",
"workloads": [{
"type": "kyai",
"workload_code": "phi-4-mini-first-run",
"workload_name": "Phi-4 mini first run",
"candidate_endpoint_code": "phi-4-mini-vllm",
"judge_config_code": "metrum-hosted-judge",
"scenarios": [{
"scenario_code": "phi-4-mini-first-run-mmlu-pro-eval",
"scenario_name": "Phi-4 mini first run - mmlu-pro",
"snapshot_code": "mmlu-pro"
}],
"target_selections": [{"server_id": $SERVER_ID, "gpu_count": 1}]
}]
}
}
EOF
Then call execute_project_run as shown in Before you start.
To run the two phases yourself, call create_kyai_generation_run with p_owner_account_id, p_project_name, p_project_uuid, p_workload_code, p_scenario_code, p_job_name, and p_server_hostname. Then call create_kyai_judge_run with p_owner_account_id, p_project_name, p_generation_job_id, p_job_name, and p_judge_config_code. See KYAI workload and run.