Skip to content

Validate the results

Before reading a comparison's numbers, check that the hosts ran the same thing, the run is complete, and nothing but the hardware differed. This page applies to on-host runs and the alternate run methods. Accuracy has its own page: Validate accuracy.

Keep the comparison fair

  • The same model and settings on every host. On each host (over SSH: ssh <ssh-host> "<command>"):

    curl -s localhost:8000/v1/models | jq -r '.data[].id'   # same model everywhere
    curl -s localhost:8001/health                           # sidecar up
    grep -E '^(IMAGE|MODEL|VLLM_ARGS)=' /etc/snap-asr-bench/vllm.env
    

    The settings that differ between hosts on purpose are listed in Configuration.

  • A warm-up before the measured requests, with an input that isn't one of the measured clips (warmup-input, and warmup-seconds = 60, which covers the slowest cold request seen on trn2; Warm-up).

  • wav uploads and no carried prompt. Keep --audio-format wav (the default) and leave --carry-prompt off: lossy formats change the audio at the cuts, and a carried prompt makes later requests differ once one platform's text differs.

Checklist

For each host's events.jsonl:

  • [ ] The input digest matches across hosts (below).
  • [ ] stream_end.failures is 0, and there's no target_error or run_error.
  • [ ] With a manifest: run_end.skipped_inputs is empty, there's no reference_error, and manifest_loaded.input_ids is the same on every host.
  • [ ] Every target has a warmup_end with no failures or errors, and engines_not_reached is empty (every engine got traffic, not necessarily every chunk length).
  • [ ] Results use only phase == "measure" events.
  • [ ] The client kept up, and no host was CPU-bound (below).
  • [ ] With references: snap-asr-bench-score over every host's file shows comparable WER on the same clips (Validate accuracy).

Same input on every host

This digest should match across the hosts' files when the sweep and input are the same:

jq -r 'select(.event == "request_sent" and .phase == "measure") | [.input_id, .strategy, .boundary, .audio_format, .chunk_seconds, .chunk_index, .audio_sha256] | @tsv' events.jsonl | sort | sha256sum

Same client build

On-host runs build the client image on each runner host from the pushed code, so host.client_image differs between hosts even for the same code. Compare host.tools (ffmpeg version) and host.python in run_start instead.

CPU contention

The client. With --concurrency above 1, check each load_end: client_process_cpu_max_fraction near 1 means the busiest client process limited the load, not the server, and so does loop_lag_p99_seconds growing with the concurrency. client_processes shows how many processes shared the load (Concurrent load). For a single stream, read client_cpu_seconds in stream_end. The analyzer checks the busiest process too: at 80% of a CPU or more it sets client_bound and marks the group unreliable (client_cpu_max_fraction in benchmark_metrics.csv, and per load in load_summary.csv).

Throughput. To find where a target saturates, read the steady-state rate, while every stream of the level is running, not load_end.rtfx: it includes the ramp-up and the tail, so it reads low at high concurrency. The analyzer works it out as steady_output_tokens_per_second and steady_audio_hours_per_wall_hour, in benchmark_metrics.csv and per load in load_summary.csv. Its output_tokens_per_second and audio_hours_per_wall_hour cover the whole level, like load_end.rtfx.

The vLLM host. When the harness runs on the vLLM host itself (Alternate run methods), it shares the CPUs with vLLM: compare host_cpu_busy_fraction too. g4dn.xlarge has 4 vCPUs, g7e.2xlarge 8 and trn2.3xlarge 12.

Failures

stream_end.failures should be 0. See quick look for more queries.

Repeat an earlier run

Each JSONL carries what you need to repeat it:

# Client arguments and resolved options
jq -c 'select(.event == "run_start") | {argv, plan, options}' events.jsonl
# Each input's ID and hash, and the manifest selection if there was one
jq -r 'select(.event == "input_ready") | [.input_id, .sha256] | @tsv' events.jsonl
jq -c 'select(.event == "manifest_loaded") | {uri, sha256, selection}' events.jsonl
# Server image and, on trn2, fork commits, from the vLLM start-up journal
jq -r 'select(.event == "server_log" and .stream == "journal") | .record | objects | .MESSAGE // empty' events.jsonl | grep -E '^(image |vllm-neuron )'

The journal lines are only there if the run used --journal-from service-start (the default). With --plan, run_start.plan holds the plan's path and SHA-256, so the same plan file repeats the run.