Key takeaways
- ✓Assign each clip to a shard from its id alone (a hash of the id, modulo the number of shards). Then a retried shard holds exactly the same clips.
- ✓Crashes plus retries send some clips twice. Adding up every row gave 261 results for 240 clips and a WER of 15.36% instead of 16.11%: the 21 repeated clips were mostly easy read speech (7.67%).
- ✓A double count can move the score either way. Here it made the model look better; with harder clips repeated, it would have looked worse.
- ✓Store one slot per (run, clip), so a retry replaces its row instead of adding one. The crash test then stored exactly 240 clips, 16.11%, and every transcript matched a run without crashes.
- ✓Check the stored clips against the benchmark's list before trusting a score. Without retries, 39 clips were missing; the 15.99% on what was left is a score on different clips, so the run is marked incomplete.
- ✓Let compare refuse what doesn't line up: an incomplete run, a different benchmark version (fingerprint), or a different text cleanup before scoring.
- ✓A run record says what was run and how to run it again: the benchmark and its fingerprint, the model and its settings, the normalizer, shards, workers and machine, and one row per clip with its transcript.
This chapter is about turning the series' test scripts into a tool other teams can run: one benchmark split across many workers, that still gives exactly one result per clip. To test the tool, some workers were made to crash on purpose. Simply adding up every result they sent back gave 261 results for 240 clips, and a better error rate than a run without crashes. Below is how that happens, and the three things the tool does about it.
Sources. This chapter follows the episode and Lab 10 of the voice-ai-labs repo (labs/10_eval_platform, "Evaluation Platform at Scale"), its vox_eval package and vox-eval command line. The runs shown were recorded for the video on 2 November 2026 with the lab's own code: whisper-base.en on a laptop CPU, no API calls. The crash pattern is seeded, so it's the same as in the lab's own September run, with the same 261 results and 15.36%. Lab 10's other findings (where a clip runs changing its transcript, averaging shard WERs, plugins, containers, int8) are summarised in Chapter 10, and briefly at the end of this one.
The benchmark
A benchmark is a fixed set of test clips, each with a transcript a person wrote. This one, voxbench-v1, has 240 clips, 26 minutes of audio, in three kinds:
| Kind | Clips | What it is | WER (clean run) |
|---|---|---|---|
| read | 120 | People reading aloud (LibriSpeech) | 7.24% |
| phone | 60 | The same kind of reading, through a simulated phone line with background voices | 33.78% |
| calls | 60 | Segments of 5 real company earnings calls (Earnings-22) | 18.72% |
| all | 240 | 16.11% |
The score is word error rate (WER, Chapter 1): words the model got wrong, divided by the words actually said. Errors are added up over all the clips first, then divided. For whisper-base.en, that's 666 errors in 4,133 words: 16.11%.
Shards and workers
Two hundred and forty clips on one worker is slow, and real benchmarks can have thousands. So the tool splits the clips into shards: fixed batches of clips, 16 here. Then workers run them in parallel: a worker is a separate program with its own copy of the model, and when it finishes a shard it takes the next one.
Which shard a clip goes in is computed from the clip's id alone: the SHA-256 hash of the id, modulo the number of shards. Nothing else goes in: not the order, not the worker, not the time. So for a given number of shards, a shard always holds the same clips, and a retried shard is the same shard. The 16 shards here hold between 11 and 24 clips.
The video used the counting of votes on election night as an analogy: ballots are clips, boxes of ballots are shards, counting tables are workers, and the tally board is the results store.
Pick a number of tables and watch the 16 real boxes get dealt out:
Each box is a shard, numbered 1–16, its width its clips (11–24). A table that finishes takes the next box; the number on the right is the clips it counted. The highlighted table finishes last, and the night ends with it.
Modelled: the slowest table counts 69 of 240 clips, so the run takes 69/240 of the one-table time. Measured: 39 s against 103 s for one worker. The gap between the two is what box sizes don't explain: every table loads its own model, and the tables share the laptop's memory bandwidth.
How much faster? On the day of the recording the laptop was busy with other work, and 8 workers took 82 s instead of 134 s for one worker. In the lab's own runs in September, on a quieter laptop, it went from 103 s to 30 s:
| Workers | Wall time | Speedup | Transcripts identical to 1 worker |
|---|---|---|---|
| 1 | 103 s | 1.0× | 240/240 |
| 2 | 60 s | 1.7× | 239/240 |
| 4 | 39 s | 2.6× | 239/240 |
| 8 | 30 s | 3.4× | 238/240 |
The curve bends: each worker loads the model, workers share memory bandwidth, and a run ends when its slowest shard does.
The crash test
The tool has a test switch for crashes. With it at 0.3, each shard attempt has a three-in-ten chance of crashing at a random point. A crashed shard is retried, up to 3 attempts (the command line's default; the lab's script allows 5, and the seeded crashes are the same). Five attempts crashed:
| Shard | Attempt | Clips already sent | Shard size |
|---|---|---|---|
| 1 | 1 | 0 | 16 |
| 5 | 1 | 1 | 12 |
| 14 | 1 | 5 | 16 |
| 1 | 2 | 3 | 16 |
| 16 | 1 | 12 | 13 |
Every crashed shard was run again until it finished, so the run was complete. But look at shard 14: before it died, it had already sent back 5 results. Then its second try sent all 16. Those 5 clips arrived twice.
Add up every row the workers sent, the naive way, and you get 261 results: 0 + 1 + 5 + 3 + 12 = 21 clips counted twice. In the tally board picture: a table stops halfway through a box, another table counts the whole box again, and the board adds up both tallies.
Did the error rate go up or down? Down: 15.36% instead of 16.11%. The model looks better than it is. 18 of the 21 repeated clips were read speech, which the model gets mostly right: together they had a WER of 7.67% (31 errors in 404 words). Counting easy clips twice pulled the score down: (666 + 31) ÷ (4,133 + 404) = 697 ÷ 4,537 = 15.36%. With other clips repeated, it could have gone up instead.
Try it: switch retries and counting, and hover a square to see its clip.
Each shard attempt had a three-in-ten chance of crashing at a random point. The crashes are seeded, so both runs hit the same ones. Choose whether failed shards are retried, and how the rows the workers send back are counted.
The arithmetic
697 errors ÷ 4,537 words = 15.36%
Five attempts crashed after sending 0, 1, 5, 3 and 12 clips, and each retry sent its whole shard again: 21 clips counted twice. They were 18 read and 3 phone clips, with a WER of 7.67% (31 errors in 404 words), so counting them twice pulled the score down from 16.11%. Repeat harder clips and it would have gone up.
One slot per clip
The fix, and what the tool actually does: its results store gives every clip one slot, labelled with the run and the clip. In SQLite, that's a table whose key is (run_id, clip_id), written with INSERT OR REPLACE. When a retry sends the same clip again, it replaces the old row instead of adding a new one. On the tally board, every ballot has its own line, and a recount just rewrites it.
So the crash test stored exactly 240 clips, with 16.11%, the same as a run without crashes, and all 240 transcripts matched it. Every repeat had sent the same transcript as the first time, which is why replacing loses nothing.
Missing shards
Now the opposite problem: the same crashes, with retries switched off. Four shards (1, 5, 14 and 16) crashed, and nobody ran them again. The clips they hadn't reached were never transcribed.
| Clips | WER | |
|---|---|---|
| Stored | 201 | 15.99% (on what's there) |
| Missing | 39: 23 read, 6 phone, 10 calls | 16.74% (the same 39 clips, in the clean run) |
| The clean run | 240 | 16.11% |
The error rate on what's there is 15.99%: close, this time. But it's a score on different clips, whichever ones survived the crashes, and which ones go missing depends on which shards crash. The crash switch picks crashes at random; a real failure, like a worker running out of memory on long recordings, would leave out a particular kind of audio. A missing shard isn't a smaller sample.
So before trusting any score, the tool checks the stored clips against the benchmark's list of all 240 clips. One missing, and the run is marked incomplete. Before announcing the result, check that every ballot has a line.
Compare, or refuse
A score is mostly used for one thing: comparing two runs. Compare sets two runs side by side, clip by clip, and reports the difference per kind of audio with an interval (Chapter 4's paired comparison, resampling whole speakers and calls). It refuses comparisons that don't line up:
- Never compare an incomplete run. The run without retries: "Refusing to compare: run 20261102-215507-e8a576 is incomplete".
- Same benchmark version. A run of only the 60 phone clips has a different fingerprint, a code computed from every clip's audio and transcript: "different dataset versions (voxbench-v1 3065f0ad044d vs voxbench-v1 6212109252ac)".
- Same text cleanup. Both runs must clean up the text the same way (the normalizer) before scoring. This rule exists in the tool but wasn't triggered in the video.
And the crash-test run, against the clean one: +0.00 on every kind of audio, verdict "can't tell". That's the tool's phrase for no difference it can detect; with identical runs even the interval is zero to zero.
| Run | Status | Clips | Stored | Wall s | Notes |
|---|---|---|---|---|---|
| 20261102-214943-827a87 | complete | 240 | 240 | 134 | clean, 1 worker |
| 20261102-215158-bf301a | complete | 240 | 240 | 82 | clean, 8 workers (B: the run to compare with) |
| 20261102-215320-254f7c | complete | 240 | 240 | 105 | chaos 0.3 |
| 20261102-215507-e8a576 | incomplete | 240 | 201 | 102 | chaos 0.3, no retries |
| 20261102-215720-715251 | complete | 60 | 60 | 24 | phone clips only |
The tool's runs table, plus a “Stored” column: clips with a result in the store.
The rules
- ✕Both runs complete (201 of 240 clips stored)
- ✓Same benchmark version: fingerprint 6212109252ac on both
- ✓Same text cleanup (normalizer): whisper-normalizer==0.1.15 on both
$ vox-eval compare 20261102-215507-e8a576 20261102-215158-bf301a Refusing to compare: run 20261102-215507-e8a576 is incomplete
39 clips are missing, so the run is incomplete. Its 15.99% is a score on different clips, so the tool refuses instead of reporting a difference.
The widget's last option wasn't in the video: the same compare on the 1-worker run. 238 of 240 transcripts are identical, the difference is −0.02 points overall (−0.09 to +0.00), and the verdict is "can't tell". That's Lab 10's noise floor: a clip or two that differ between runs that should be identical, measured instead of ignored.
The run record
Every run leaves a run record: what was run, and how to run it again.
| Field | The crash-test run |
|---|---|
| Benchmark | voxbench-v1, fingerprint 6212109252ac |
| Model and settings | whisper-base.en: float32, beam 5, reseeded per clip |
| Text cleanup | whisper-normalizer==0.1.15 |
| How it ran | 16 shards, 8 workers, Darwin arm64, Python 3.14.7 |
| Status | complete, 240 clips |
| One row per clip | e.g. read/1580-141084-0017, shard 14 (stored as 13: the tool counts from 0), attempt 2, "No good, my dear Watson.", 0 errors in 5 words |
The fingerprint is how compare spotted the phone-only run: change one clip, and it changes. The row per clip, with its transcript, is the slot a retry overwrites. Stored transcripts also let a new metric score old runs without transcribing again (the lab's rescore).
The record doesn't hold everything: there's no code version, no crash-switch seed and no retry limit in it.
The rest of Lab 10
The episode covers the crash test. The lab also found (details in Chapter 10's Lab 10 section):
- Where a clip runs can change its transcript. Whisper's random sampling on hard clips carried state between clips in a worker; reseeding from each clip's id fixed it. A clip or two can still differ between identical runs; the tool measures that as the noise floor instead of ignoring it.
- Combine clips, never shards. The mean of the 16 shard WERs was 16.15%, close to 16.11% only because hashing mixes the kinds of audio evenly. With shards cut by kind of audio, the mean became 19.91%.
- Plugins, rescoring, containers and int8: adding a model or a metric in one file, scoring old runs from stored transcripts, a throwaway container that always tears down, and int8 being about 25% slower on the lab's laptop.
What to do
- Shard by clip id, with a hash, so a retried shard is the same shard.
- Retry failed shards, with a limit, and record every failure.
- Store one slot per (run, clip). Never append results from a stream of rows.
- Combine from per-clip counts: all errors over all words, never an average of shards.
- Check completeness against the benchmark's list before reporting any score; mark a run with missing clips incomplete.
- Make compare refuse incomplete runs, different benchmark versions and different normalizers. Always show the interval.
- Write a run record for every run, with one row per clip and its transcript.
Caveats
- The crashes are simulated: a test switch with a seeded random chance per attempt, not real worker failures. Real failures may cluster on certain audio, which is exactly why a missing shard can bias the score.
- The direction of the naive error was luck. Repeated easy clips pulled WER down; repeated hard ones would push it up. The lesson is "a different number", not "a better one".
- The 15.99% being close was also luck, as the video says: four random shards happened to be typical.
- Timings depend on the machine and its load. The recording's 134 s → 82 s was on a busy laptop; the lab's 103 s → 30 s on a quieter one.
- The normalizer rule wasn't demonstrated, and the run record lacks the code version and the crash seed.
- One model, one 240-clip benchmark. The pattern generalises; the numbers don't.
The checklist
Lab 10's questions that this chapter covers (the rest are in Chapter 10):
- How do you shard a benchmark and still get exactly one result per clip?
- Why must results be combined from per-clip data, not per-shard averages?
- What makes an internal evaluation tool actually get used?
Practice: one result per clip
Implement the pieces that keep a sharded run honest: a clip's shard from its id, WER as a ratio of sums, a store with one slot per clip, the completeness check, and compare's refusals with the tool's own messages. The tests replay the crash test's four crashed shards with their recorded errors and words, and check the run's real numbers: 261 rows, 15.36% added up, 16.11% keyed, and 39 missing without retries.
Quiz
1.A crashed shard attempt had already sent 5 results. Its retry sent all 16 clips of the shard. If the tool simply appends every row it receives, what happens?
2.With 21 clips counted twice, the error rate came out 15.36% instead of 16.11%. Why lower?
3.What does the tool's results store do to keep one result per clip?
4.Without retries, four shards were lost: 201 clips have a result, 39 don't. The WER on what's there is 15.99%, close to 16.11%. Can you report it?
5.Why does a clip's shard depend only on its id?
6.A run that used only the 60 phone clips is compared with the full 240-clip run. What does the tool do?
Check your understanding
Try each question before opening its answer.
How do you shard a benchmark and still get exactly one result per clip?
Assign each clip to a shard from its id alone, so a retried shard holds the same clips. Retry failed shards with a limit and record the failures. Store results with one slot per (run, clip), so a repeat replaces instead of adding. Check the stored clips against the benchmark's list, and mark a run with missing clips incomplete.
How did 240 clips become 261 results, and why did the score improve?
Five shard attempts crashed after sending 0, 1, 5, 3 and 12 results, and each retry sent the whole shard again: 21 clips counted twice. 18 of them were read speech, with a WER of 7.67%, so counting them twice pulled the overall WER from 16.11% to 15.36%.
Why isn't a run with a missing shard just a smaller sample?
Which clips are missing depends on which shards failed, and a real failure can be tied to the audio, like long or noisy recordings. Its score is on different clips. Here 39 clips were missing and the score on the rest happened to be close (15.99% vs 16.11%), but the tool marks the run incomplete and refuses to compare it.
Which comparisons should a tool refuse, and how does it notice?
An incomplete run (the completeness check), a different version of the benchmark (the fingerprint, computed from every clip's audio and transcript, differs), and different text cleanup before scoring (the normalizer names differ). Otherwise it compares clip by clip and always shows an interval.
Why combine results from per-clip counts, not per-shard WERs?
WER is a ratio of sums. Averaging shard WERs weights a small shard like a big one: 16.15% with hash-based shards, but 19.91% with shards cut by kind of audio, against a corpus WER of 16.11%.
What belongs in a run record?
The benchmark and its fingerprint, the model and its settings, the text cleanup, how it ran (shards, workers, machine), its status, and one row per clip with its transcript. Ideally also the code version and any seeds, which this tool's record doesn't hold.
End of the Voice AI Evaluation series. Many workers make a benchmark faster, and add new ways to get the score wrong: keep one slot per clip, check that every clip is there, and let compare refuse what doesn't line up. Back to all tracks.