Skip to main content

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.

  1. Onboard a machine in your workspace. The machine must show as available. See Hardware onboarding.

  2. Check that your plan includes the tool.

    ToolPlan featureIncluded from
    MetrumBench ASRfeature:metrumbench-asrTier 2
    MetrumBench VLMfeature:metrumbench-vlmTier 2
    MetrumBench ImageGenfeature:image_genTier 2
    KYAIfeature:kyaiTier 1
  3. For the CLI, sign in with benchctl auth login. See the CLI reference.

  4. 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​

SettingValue
ModelWhisper Small (whisper-small, Hugging Face id openai/whisper-small)
Framework and versionvLLM 0.22.1
Build variantDefault (NVIDIA CUDA)
Argument presetvllm-asr (sets max_model_len to 448, the Whisper limit)
DatasetLibriSpeech Test Clean (librispeech-test-clean)
MachineOne available machine with an NVIDIA GPU
GPUs to use1
Concurrency1 and 8
Scenarios2: 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​

  1. Create a project. See Quickstart for the project name and visibility fields.
  2. In the Workload Catalog, open Automatic Speech Recognition and select MetrumBench ASR.
  3. 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.
  4. 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.
  5. On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
  6. On the Load step, set Concurrency to 1 and 8. ASR has no Input Sequence Length, Output Sequence Length, or Streaming field.
  7. 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​

SettingValue
ModelQwen2.5-VL 3B Instruct (qwen2.5-vl-3b-instruct, Hugging Face id Qwen/Qwen2.5-VL-3B-Instruct)
Framework and versionvLLM 0.20.1
Build variantDefault (NVIDIA CUDA)
Argument presetvllm-metrumbench-vlm
DatasetMetrumBench VLM 4K Images v1 (metrumbench-vlm-4k-v1)
MachineOne available machine with an NVIDIA GPU
GPUs to use1
Concurrency1 and 8
Max Tokens256
Images per request1
Image detaillow
Scenarios2: 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​

  1. Create a project. See Quickstart.
  2. In the Workload Catalog, open Vision Language and select MetrumBench VLM.
  3. On the Model step, select Qwen2.5-VL 3B Instruct in Models. Keep the preselected Dataset. Select Next: serving engine.
  4. 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.
  5. On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
  6. On the Load step, set Concurrency to 1 and 8, and Max Tokens to 256.
  7. 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​

SettingvLLM-OmniSGLang diffusion
ModelZ-Image Turbo (z-image-turbo, Hugging Face id Tongyi-MAI/Z-Image-Turbo)Same
Framework codevllm-omnisglang
Version0.24.00.5.15.post1
Build variantdefault, shown as "vLLM Omni 0.24.0 (NVIDIA/CUDA)"sglang-diffusion, shown as "SGLang 0.5.15.post1 (NVIDIA/CUDA)"
Argument presetvllm-omni-metrumbench-imagegensglang-metrumbench-imagegen
Preset valuestensor_parallel_size 1, usp 1, ring 1tp_size 1, ulysses_degree 1, ring_degree 1
MachineOne available machine with an NVIDIA GPUSame
GPUs to use11
Concurrency1 and 21 and 2
Image Size1024x10241024x1024
Images per Request11
Scenarios2: c1-size1024x1024, c2-size1024x1024Same
Datasetmetrumbench-imagegen-smoke-prompts-v1, a small built-in prompt setSame

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​

  1. Create a project. See Quickstart.
  2. In the Workload Catalog, open Text to Image Generation and select MetrumBench ImageGen. If your plan lacks Image generation, the tool shows a lock.
  3. On the Model step, select Z-Image Turbo in Models. Select Next: serving engine.
  4. On the Serving engine step, set Serving framework to vLLM Omni or SGLang. Set Version to 0.24.0 for vLLM Omni or 0.5.15.post1 for 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.
  5. On the Hardware step, select your machine under Machines. Set GPUs to use to 1. Select Next: load.
  6. On the Load step, set Concurrency to 1 and 2, Image Size to 1024x1024, and Images per Request to 1.
  7. 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​

SettingValue
Candidate modelmicrosoft/Phi-4-mini-instruct
Endpoint name and codePhi-4 mini vLLM, phi-4-mini-vllm
Framework and versionvLLM 0.24.0
Argument presetkyai-default, shown as "vLLM Args"
Max Concurrent Requests4
JudgeMetrum hosted judge (metrum-hosted-judge)
DatasetMMLU-Pro (mmlu-pro), a built-in set of 100 questions
Evaluation name and workload codePhi-4 mini first run, phi-4-mini-first-run
MachineOne available machine with an NVIDIA GPU
GPUs to use1
Scenarios1: 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.

FrameworkVersions with kyai-defaultPreset name
vLLM0.21.0, 0.22.0, 0.22.1, 0.23.0, 0.24.0vLLM Args
SGLang0.5.12.post1, 0.5.13, 0.5.13.post1, 0.5.14, 0.5.15SGLang Args
TensorRT-LLM1.0.0, 1.1.0, 1.2.0, 1.2.1TensorRT-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​

  1. Create a project. See Quickstart.

  2. In the Workload Catalog, open KYAI Evaluation and select KYAI Run.

  3. On the Models step, enter Phi-4 mini first run in Evaluation name. Under Models to compare, select Add a model and fill the form.

    1. Endpoint Name: Phi-4 mini vLLM.
    2. Keep the Configure manually option.
    3. HuggingFace Model: microsoft/Phi-4-mini-instruct.
    4. Framework: vLLM. Version: 0.24.0.
    5. Engine Args Set: vLLM Args.
    6. Max Concurrent Requests: 4.
    7. Select Create Endpoint.

    Select Next: judge.

  4. On the Judge step, keep the Metrum hosted judge. Select Next: datasets.

  5. On the Datasets step, select MMLU-Pro. Select Next: hardware.

  6. On the Hardware step, select your machine under Machines. Set GPUs to use to 1.

  7. 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.