Limitations and open questions¶
What the benchmark doesn't cover yet, what is unverified, and what is easy to get wrong when reading results. Design gaps covers the larger structural limits, each with a planned or suggested direction.
Design gaps¶
1. Manifest runs are a first version¶
A run can measure many clips: --manifest takes a CSV with one row per
clip, optionally with a reference transcript, and the input is the
outermost sweep dimension inside one run, with one run ID, one set of
network baselines and one warm-up per target
(Inputs and manifests). Streams on
clips with a reference are scored for word error rate
(Accuracy). The first version leaves open:
- No resume. An interrupted run starts again from the first clip. A
long manifest run is best split with
--whereon a column such asduration_bucketinto runs that each finish in hours (--limitonly gives the first part). - No directory or S3 prefix input. Only a manifest lists several clips.
A two-column CSV (
clip_id,uri) made withlsoraws s3 lsis enough. - Every clip is staged and decoded up front to the work directory: the source media (kept as a cache after the run) plus 115 MB per hour of decoded audio. Each clip is loaded into memory on its turn. The 100-clip Ego-Exo4D set needs about 30 GB of free disk, mostly media.
- Run-wide settings.
--languageand the sweep apply to every clip. A manifest can't set a clip's language or mark a row as warm-up audio. - Per-host preparation. On-host runs prepare the clips on each host.
The same manifest and selection flags (including
--seed) give the same clips, whichmanifest_loaded.input_idsrecords, but each host stages its own copy. - WER only. One English-oriented normalization, no number normalization, and no CER for languages written without spaces. See Reading results.
Design prompts:
- Resume. Skip clips whose streams all completed in an earlier run's JSONL, under a new run ID or the same one?
- Per-clip settings. Which manifest columns may override run options
(
languagefirst), and how are they recorded? - Warm-up rows. A
rolecolumn (warmupormeasure) instead of--warmup-input(3). - Other gaps. In a benchmark plan, the manifest and its selection are
[run]keys (4). Under concurrent load, every speaker replays the current clip from its own offset, so only speaker 0 is scored. Drawing each speaker's audio from a different manifest clip would let every speaker be scored (5).
2. Fixed host set, instance types and cloud provider¶
The system is built around four named hosts on AWS: bench, g4dn, g7e
and trn (served as target trn2). Their names, instance types and
platforms are written into the code in several places that have to agree:
| Where | What's fixed |
|---|---|
terraform/variables.tf |
One set of variables per host: <host>_instance_type, <host>_az, <host>_vpc_cidr, and region and reservation variables for some hosts |
terraform/ec2.tf, terraform/vpc.tf |
locals that list the four hosts by name and pick each one's AMI, VPC and reservation. peers lists the inference hosts. |
deploy/nvidia/g4dn.env, g7e.env, deploy/trn2/ |
One env file per host or platform, with the dtype and vLLM settings for that accelerator |
Makefile |
NVIDIA_HOST must be g4dn or g7e |
deploy/client/run-on-hosts.sh |
The list of target names and their Terraform keys |
| Documentation | Install pages and runbooks per host |
The instance types themselves are variables, but each variable belongs to
one named host. Comparing a fifth instance type, or replacing g4dn with
another GPU, means adding variables, editing the locals, adding an env
file and updating the Makefile, the run script and the docs.
The design is also tied to AWS beyond Terraform:
- Trainium (trn2) exists only on AWS, and its image is built on AWS's Neuron SDK and pulled from ECR.
- AMIs are found through AWS SSM public parameters (Deep Learning AMIs and Canonical's Ubuntu images). Capacity Blocks and On-Demand Capacity Reservations are AWS features.
- Remote operation uses SSM Session Manager and
send-command(run-on-hosts.sh), not SSH. - Storage is S3, through boto3 in the client (
source.py,cli.py) and the AWS CLI in the deploy steps. - Host metadata in
run_startcomes from the EC2 instance metadata service. Off EC2 it's recorded asnull, which is harmless. - The instance-store mount script finds the disk by its AWS model name,
Amazon EC2 NVMe Instance Storage.
Adapting the system to another cloud, or adding hosts on AWS, is therefore spread across Terraform, shell scripts, the Makefile and the docs, with no single place that defines what a host is.
Suggested direction:
- Describe hosts as data. Replace the per-host variables with one map,
for example
hosts = { name = { platform, instance_type, region, zone, cidr, image, reservation } }, and generate the VPCs, instances and peering from it. Adding a host or changing an instance type becomes a config change. - Separate platform from host. Key the server settings by platform
(
nvidia-t4,nvidia-blackwell,neuron) and let each host name its platform, so two hosts on the same accelerator share one env file. - Drive the tools from Terraform outputs. Have
run-on-hosts.sh, the Makefile andtargets.tomlread the host list and addresses from Terraform outputs instead of keeping their own copies. - Put the provider behind interfaces. Keep one Terraform module per
cloud that produces the same outputs (host name, private address,
instance ID, platform). Behind the harness, hide object storage (S3 or
other
s3://,gs://,az://URLs), remote execution (SSM or SSH) and host metadata.
The client's measurement code (runner.py, transcribe.py, chunking.py,
media.py) and the sidecar don't depend on the cloud and would carry over
unchanged.
Design prompts (for whoever writes the full design):
- Scope first. Is the near-term need adding or swapping instance types on AWS, or actually running on another cloud? The first needs steps 1 to 3 of the direction above. The second also needs step 4. Write the design for the one that's needed, and leave room for the other.
- The host map. Define the schema for
hosts: which fields are required, which have defaults, and how the bench host differs from an inference host. How does it handle hosts in different regions (VPC peering, AMI lookup per region)? - Terraform migration. Moving from per-host resources to
for_eachchanges resource addresses. Plan themovedblocks (or state moves) so existing instances, VPCs and reservations aren't destroyed and recreated. - Platforms. List the platforms and what each one fixes: image or
container, start script, env file, dtype, sidecar commands. Where does a
per-host override go (for example a different
VLLM_ARGSon one host)? - One source of truth. How
run-on-hosts.sh, the Makefile andtargets.tomlread the host list from Terraform outputs, and what they do when Terraform isn't available (for example a local run). Shouldtargets.tomlbe generated? - Provider interfaces. For storage, remote execution and host metadata: is a small interface in the client plus a shell abstraction enough, or should remote execution move into Python? What is the minimum for SSH, so non-AWS hosts and local machines work too?
- Reservations and capacity. Capacity Blocks and ODCRs are AWS-specific and time-limited. How does the host map express them, and what happens when one expires?
- Docs. Install pages and runbooks are written per host. Can they be written per platform instead, with a host table generated from the map?
- Interaction with other gaps. A benchmark plan names targets (4), so plan target names should match host names in the map. Capacity results (5) need the instance type and price per host, which the map could supply.
3. Warm-up is time-based¶
Each target can warm up before its sweep with its own audio
(Warm-up). It's off by default
(--warmup-seconds 0). The first version leaves open:
- It ends on time, not readiness. It doesn't stop early on a warm host, or carry on while requests are still slow.
- DP rank coverage is per engine, reported, not enforced.
warmup_endlists engines that served no warm-up request, but warm-up doesn't wait for them. An engine that served some requests may still not have seen every chunk length. - Shapes. A
growingstream reaches its largest window (--max-window-seconds) only if the warm-up input is at least that long. Warm-up runs--warmup-concurrencystreams, not the measured--concurrency, so a larger load's batch shapes may still be cold (5). - No standard warm-up clip ships with the repo.
On 2026-11-17, on long-running servers, trn2's first requests with a new chunk length took 14 to 37 s each, four slow requests for four DP ranks, then under a second. That fits a cost per input shape and per DP rank on the trn2 vLLM-Neuron stack, not only after a start, but the cause is unverified. g4dn and g7e showed no comparable cold start. GPU warm-up after a fresh vLLM start wasn't measured.
Design prompts:
- Default length. Pick a recommended
--warmup-secondsfrom data: one value for every platform, or per target? - Time or readiness. Should warm-up end once every engine has served a request and latency has settled, with the time as a cap?
- Shapes. Should warm-up loop its input up to
--max-window-secondsforgrowing, and cover the batch sizes of the measured--concurrencylevels? - Warm-up input. A standard clip in the repo, or entries marked in the manifests (1)?
- Other gaps. In a plan, warm-up settings are
[run]keys (4). With a manifest, warm-up already runs once per target, before the first clip. Under concurrent load, it should run at the highest measured--concurrencyor--warmup-concurrency, whichever is higher, and each step up in load may need a short settle period of its own (5).
4. Benchmark plans are a first version¶
--plan reads a run's options from a TOML file with a [run] table, a
[defaults] table and one [[job]] table per sweep, modelled on fio job
files (Benchmark plans). Every key is a
flag name, flags on the command line override the plan for every job, and
--dry-run prints the resolved jobs. run_start records the plan's path,
its SHA-256 and every job's settings, and stream events carry job. The
first version leaves open:
- No agreed plans yet. Only
resources/examples/plans/platform-comparison.tomlships.resources/plans/is the intended home for agreed plans, reviewed like code. - No
includeor${VAR}expansion. A bucket name is written into the plan, or given on the command line (--manifest,--results-s3), and two plans can't share a[defaults]block. - Jobs run one at a time. There's no equivalent of running fio jobs in
parallel, and so no
stonewall. Load comes fromconcurrencyinside a job. - One warm-up per target. It covers every job's configurations up
front. There's no per-job
ramp_time, and a configuration shared by jobs warms up once with the first job's settings (3). - The dry run doesn't estimate time. It doesn't read the manifest or the media, so it reports loads and streams per input but not how long the run will take.
- Where each value came from isn't recorded.
run_start.argv, the plan hash and the resolved jobs are enough to reconstruct it, but no field says whether a value came from the plan or the command line. - Local files only. A plan is read from disk, not S3. On-host runs read
it from the synced repository, and
run-on-hosts.shoverrides itstargets,only,work-dir,results-s3andrun-id.
Design prompts:
- Agreed plans. Which benchmarks get a plan in
resources/plans/, who approves a change to one, and should a result that feeds a comparison be required to come from a committed plan (checked by its SHA-256)? - Reuse. Does
includeor${VAR}expansion earn its keep, for example to fill in the bucket, or is a command-line override enough? - Per-job inputs. Should a job be able to narrow the run's manifest
(a per-job
where), with warm-up and staging still done once? - Time estimate. Have
--dry-runread the manifest (and theduration_seccolumn where present) to estimate wall-clock time per target, as fio's--showcmdhelps preview a job? - Value sources. Record which layer (built-in,
[defaults], job, command line) set each value, or leave that toargvand the plan file? - Other gaps. Capacity keys such as a hold time
(5) become job options. A readiness-based
warm-up (3) stays in
[run].
5. No capacity search¶
--concurrency runs N streams at once
(Concurrent load). Each speaker
replays the input from its own offset, starts are staggered across a
chunk, and load_start/load_end summarize each level, including
event-loop lag. That fills batch slots a single stream leaves idle: trn2
runs TP1 × DP4 with --max-num-seqs 48 (deploy/trn2/trn2.env), and one
stream uses one DP replica. The NVIDIA hosts use vLLM's default batch
limits.
It doesn't yet produce a capacity figure, or a full cost one:
- Closed-loop per stream. Each stream still waits for the previous
response (stop-and-wait), so offered load can never exceed what the
server absorbs. Overload shows up as
behind_realtime_seconds, not as a backlog. - Fixed levels, no ramp. Each level lasts as long as the clip. There's no hold time, no stepped ramp and no pass/fail per level, so capacity has to be read off by hand.
- Cost per token only. The analysis scripts give each level a cost per
million output tokens at its steady-state throughput
(
steady_cost_per_million_tokens_usdinload_summary.csv), from reference prices. Nothing turns a level into cost per stream or per audio-hour, which the platform comparison needs. afaprtfxis still the wrong proxy for capacity. Compareload_end.rtfx, or the analysis'ssteady_audio_hours_per_wall_hour, at the same--concurrencyacross targets instead.
Suggested direction: make each speaker open-loop: send on its own schedule whether or not its last response is back. Step the load up, holding each level for minutes, and report capacity as the highest level that still meets the latency and error thresholds.
Design prompts (for whoever writes the full design):
- Load model. Open-loop per speaker, with several requests in flight
per stream allowed? Keep today's stop-and-wait as an option for
per-stream latency runs? Define backlog (chunks ready but not answered)
and log it per stream. Decide what
growingand--carry-promptmean when the previous response isn't back yet. - Load shape. Today it's a list of fixed levels swept like the other
options, each lasting one clip. Add a stepped ramp with a hold time per
level? What is the
afapequivalent under concurrency, if any? - Distinct audio. Today each speaker starts at a fixed offset into the current clip, with a seam where it wraps, so only speaker 0 lines up with the clip's reference. Different clips from the manifest (1) would be more realistic and would let every speaker be scored. Use a fixed seed so every target sees the same crowd, and record the assignment.
- Pass/fail per level. What thresholds (caption latency p95, growing backlog, error and empty-output rates) decide that a level failed? This needs a definition of caption latency, which isn't computed today (Not covered). Who sets the targets?
- Capacity and cost outputs. How capacity becomes cost per stream and per audio-hour: instance price source, reservation versus on-demand, and where the calculation lives (client, analysis or docs).
- Client limits. One asyncio loop carries N streams, the telemetry
followers and synchronous JSONL writes.
load_endreports loop lag and client CPU. Set the lag threshold that marks a level as client-bound, and decide when the client must move to a separate host. g4dn.xlarge has 4 vCPUs. - Interaction with other gaps. Warm-up should run at the measured
concurrency or above (3). In a benchmark plan
(4), concurrency is a job setting, like
fio's
numjobs. - Server configuration. Record
max-num-seqs, TP/DP and the other batch settings in the run, since capacity depends on them. Decide whether the NVIDIA hosts need tuned batch limits before a capacity comparison is fair.
Not covered¶
- Caption latency. Its parts are logged, but the client doesn't compute it (What the timings mean).
- Equal output limits. No output token cap is sent, so each server's cap
follows its
--max-model-len(1024 on trn2, 4096 on NVIDIA). That only matters for runaway outputs, but it can skew tail latency. - Cross-platform equivalence. Per-chunk text and token usage are logged, but nothing compares them across platforms.
- Accuracy beyond WER. Streams on clips with a reference are scored for word error rate (Accuracy). There's no CER, no per-chunk or time-aligned scoring, and no reference set ships with the repo.
- Utterance chunking. Chunks are
fixedorsilence-snapped on a fixed cadence. Cutting at utterance boundaries isn't implemented. - Client host telemetry. Only per-stream and per-load CPU figures
(
stream_end,load_end) are collected for the host the client runs on, with no continuous CPU or network series.
Unverified¶
- g6.12xlarge settings.
deploy/nvidia/g6.envwas written on 2026-11-23, before the host first ran: data parallel over its four L4s, eight API servers,bfloat16, and g7e's memory and length settings. Check that vLLM starts four engines and how much KV cache each gets, as the NVIDIA hosts' table records for g7e (NVIDIA hosts). - Ego-Exo4D take transcripts. The schema of
audio/aria*_transcriptions.jsonisn't in the public Ego-Exo4D docs, so it's read as generic segment JSON (Accuracy), and it isn't known whether it's a manual or a machine transcription. If it's machine-made, WER against it compares two ASR systems rather than measuring accuracy. - Ego4D AV utterance times.
start_time_secis taken as relative to the clip. It only sets the order of utterances in the reference. - Language prefix. Qwen3-ASR's chat output carries a language tag that
qwen_asr.parse_asr_outputstrips. Check whether/v1/audio/transcriptionstext includes it, and whether vLLM 0.29 and 0.33 format it the same. - Output on non-speech. On a 5-minute first-person video, 31 of 150 2 s
chunks came back as short Chinese or Portuguese text, mostly where there
was little speech, on all three hosts. That was with automatic language
detection.
--languagenow defaults toen. Confirm that fixes it. promptsupport. It isn't confirmed that vLLM's Qwen3-ASR path uses--carry-prompt'spromptas context.- Silence boundaries on real speech. Only tested on one synthetic clip (Design decisions).
- trn2 restarts recompile. Every start so far has spent about 520 s
compiling, even with the caches mounted, and
neuron-compile-cachestays empty. - Neuron driver. The DLAMI has driver 2.25.4, and the SDK 2.33 runtime warns that it's too old for H2D DMA notification capture. A newer driver might change trn2 latency.
- 0.6B on trn2. The fork only documents 1.7B.
- Multimodal processor cache. Besides prefix caching
(Design decisions),
recent vLLM versions keep a cache of preprocessed multimodal inputs, keyed
by the content's hash, so byte-identical repeats could skip audio
preprocessing. Check whether vLLM 0.33 and the trn2 fork's vLLM 0.29
enable it for audio, and if so turn it off (for example
--mm-processor-cache-gb 0, if that version supports it).
Open decisions¶
-
Model revision.
MODELisn't pinned. vLLM requestsrevision=mainand checks the Hugging Face Hub on every start (confirmed on g4dn), so a new upstream commit changes what's served at the next restart, and hosts started at different times could serve different revisions. Pin it with--revision <commit>inVLLM_ARGS(Network dependencies). -
trn2 layout.
trn2.envuses the fork's throughput setup (TP1 × DP4). A latency setup (TP4, without the decode bucket override) may suit single-stream runs better. Both could be benchmarked. - Request logging. trn2 runs with
--enable-log-requests --enable-log-outputs. The NVIDIA hosts can't (vLLM 0.33 breaks on it). Turning it off on trn2 would make the server settings match. - GPU tuning. trn2 uses the fork's tuned scheduler and bucket settings. The GPUs use vLLM defaults beyond dtype, memory and length.
- TCP slow start after idle (bench runs only). With
realtimepacing, the connection is idle between chunks for longer than a round trip to trn2, so a large upload can pay an extra 230 ms round trip. Setnet.ipv4.tcp_slow_start_after_idle = 0on bench, or read the effect fromrequest_trace.
Reading results¶
- Warm-up. Use only
phase == "measure"events. Without a warm-up phase, the first requests may be cold (3). - Prefix caching before 2026-11-16. g4dn and g7e ran with vLLM's default prefix caching on until then (Design decisions). Treat their repeat-to-repeat differences with care, and rerun anything that feeds a comparison.
rtfxisn't throughput. Underrealtimepacing it is at most about 1. For throughput, useload_end.rtfx, which sums audio across a load's streams.- WER under concurrency. Only speaker 0 of each load is scored, since
the other speakers start part-way into the clip. A load's WER rests on one
stream whatever its
concurrency. - Per-stream CPU under concurrency.
stream_end.client_cpu_secondsandhost_cpu_busy_fractioninclude the other streams of the same load. Useload_endfor them. - Precision differs. g4dn runs FP16 (the T4 has no BF16). g7e and trn2 run BF16.
independenttranscripts are joined with spaces, which is wrong for languages written without them. Per-chunk text is inresponse_complete.growingpast--max-window-seconds. The stream transcript only covers the last successful window, so its WER on longer clips is mostly deletions.- WER. Use the pooled
werfromsnap-asr-bench-score(total errors over total reference words), and compare targets on the same clips. Failed chunks count as deletions, so checkstreams_with_failures. Dataset references may cover only some speakers. - Clocks. On bench runs,
tsandmono_nscome from bench, and journal timestamps from each inference host. All hosts sync to the Amazon Time Sync Service, so offsets should be well under a millisecond. - Sidecar processes for quiet streams only notice a disconnected client
on their next output line, so an idle
journalctl -fcan outlive its client for a while.