ealeng

Episode 11 of 11

One benchmark, many workers

A 240-clip speech benchmark, split across eight workers, with some of them crashing on purpose. Adding up every result they sent back gave 261 results and a better error rate than a run without crashes. How an evaluation tool keeps exactly one result per clip, spots missing clips, and refuses comparisons that don't line up.

Lab 10 · Evaluation Platform at Scale12 min read
Video transcript6:15

0:00Cold open

0:01

My speech benchmark has two hundred and forty test clips.

0:05

To run it faster, I split it across eight workers. And to test my tool, I made some of them crash on purpose.

0:12

If you simply add up every result the workers sent back, you get two hundred and sixty-one.

0:18

And the error rate from those came out better than in a run without crashes.

0:23

How do two hundred and forty clips become two hundred and sixty-one? And which score is true?

0:29Intro

0:31

Hands-on voice AI evals, episode eleven.

0:34

Today: turning my test scripts into a tool other teams can run. Many workers, and still exactly one result per clip.

0:4301 · The benchmark

0:44

First, what I’m running. A benchmark is a fixed set of test clips, each with a transcript a person wrote.

0:51

Mine has three kinds of audio: people reading aloud, the same kind of reading through a simulated phone line, and real company earnings calls.

1:00

The score is word error rate, from episode one: words the model got wrong, divided by the words actually said.

1:07

Errors are added up over all the clips first, then divided. For my speech model, sixteen point one one percent.

1:1602 · Shards and workers

1:17

Two hundred and forty clips on one worker is slow, and real benchmarks can have thousands of clips.

1:23

So I split the clips into sixteen shards. A shard is a fixed batch of clips.

1:28

Then eight workers run them. A worker is a separate program with its own copy of the model. When it finishes a shard, it takes the next one.

1:37

It’s like counting votes on election night. The ballots go into boxes, and several counting tables work at once.

1:44

Which shard a clip goes in is computed from the clip’s name alone, for a given number of shards. So if a shard has to be run again, it holds exactly the same clips.

1:55

Today, with my laptop busy with other work, eight workers took eighty-two seconds instead of a hundred and thirty-four.

2:02

In the lab’s own runs in September, on a quieter laptop, it went from a hundred and three seconds to thirty.

2:1003 · The crash test

2:11

Now the crash test. The tool has a test switch: here, each shard attempt has a three-in-ten chance of crashing at a random point. Five attempts crashed. Each crashed shard was run again, until it finished.

2:25

Look at shard fourteen. Before it died, it had already sent back five results. Then its second try sent all sixteen.

2:32

Back to the votes: a table stops halfway through a box, and another table counts the whole box again. If the board adds up both tallies, some ballots count twice.

2:43

Add up every row the workers sent, the naive way, and you get two hundred and sixty-one. Twenty-one clips were counted twice.

2:50

So, did the error rate go up, or down?

2:55

Down. Fifteen point three six, instead of sixteen point one one. The model looks better than it is.

3:02

Eighteen of the twenty-one repeated clips were read speech, which the model gets mostly right. Counting easy clips twice pulled the score down. With other clips repeated, it could have gone up instead.

3:1504 · One slot per clip

3:17

The fix, and what my tool actually does: its results store gives every clip one slot, labelled with the run and the clip.

3:24

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.

3:36

So the crash test stored exactly two hundred and forty clips, and the same error rate as a run without crashes.

3:43

Every single transcript matched it, too.

3:4605 · Missing shards

3:48

Now the opposite problem. The same crashes, but with retries switched off.

3:53

Four shards crashed, and nobody ran them again. The clips they hadn’t reached were never transcribed.

3:59

Two hundred and one clips have a result. Thirty-nine are missing.

4:04

The error rate on what’s there: fifteen point nine nine. Close, this time.

4:08

But it’s a score on different clips: whichever ones survived the crashes. Which ones go missing depends on which shards crash.

4:16

So before trusting any score, the tool checks the stored clips against the list of all two hundred and forty. One missing, and the run is marked incomplete. Before announcing the result, check that every ballot has a line.

4:3006 · Compare, or refuse

4:32

A score is mostly used for one thing: comparing two runs. Compare sets two runs side by side, clip by clip: each clip’s errors in one run against the same clip in the other.

4:4406 · Compare, or refuse

4:45

Here are my runs, in the tool’s own command line. The one without retries says incomplete.

4:51

Compare it with the clean run, and the tool refuses.

4:5606 · Compare, or refuse

4:57

That’s one rule: never compare an incomplete run.

5:01

Another: same version of the benchmark. This run used only the sixty phone clips, so its fingerprint differs. Refused.

5:09

And the crash-test run, against the clean one: zero difference, on every kind of audio. Can’t tell is the tool’s phrase for no difference it can detect. With identical runs, even the range is zero to zero.

5:23

A third rule, not shown here: both runs must clean up the text the same way before scoring.

5:3007 · The run record

5:31

Every run leaves a run record: what was run, and how to run it again.

5:35

The benchmark, with its fingerprint: a code computed from every clip’s audio and transcript. Change one clip, and the fingerprint changes. That’s how compare spotted the phone-only run.

5:47

The model and its settings, the text cleanup before scoring, and how it ran: shards, workers, machine.

5:54

And one row per clip, with its transcript. That’s the slot that a retry overwrites.

6:00Summary

6:01

Many workers make a benchmark faster. They also add new ways to get the score wrong.

6:06

Keep one slot per clip, check that every clip is there, and let compare refuse what doesn’t line up.

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:

Try it · Counting tablesboxes sized by clip count (modelled)
Counting tables (workers):
table 1
1
7
10
16
62
table 2
2
6
12
14
59
table 3
3
5
9
13
50
table 4
4
8
11
15
69

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 speedup
3.5×
Measured speedup
2.6×

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.

Try it · The crash testRecorded run · 240 clips · 16 shards · 8 workers

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.

Retries
Counting
Show
Rows counted (240 clips)
261
Word error rate
15.36%
Clips counted twice
21
Missing clips · status
0 · complete
Shard 1try 1 ✕ after 0try 2 ✕ after 3try 3 ✓ all 16
Shard 2✓ all 15
Shard 3✓ all 14
Shard 4✓ all 18
Shard 5try 1 ✕ after 1try 2 ✓ all 12
Shard 6✓ all 17
Shard 7✓ all 13
Shard 8✓ all 11
Shard 9✓ all 11
Shard 10✓ all 20
Shard 11✓ all 16
Shard 12✓ all 11
Shard 13✓ all 13
Shard 14try 1 ✕ after 5try 2 ✓ all 16
Shard 15✓ all 24
Shard 16try 1 ✕ after 12try 2 ✓ all 13
one clip, counted once counted twice sent twice, its slot rewritten missingHover a square for its clip.

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:

  1. Never compare an incomplete run. The run without retries: "Refusing to compare: run 20261102-215507-e8a576 is incomplete".
  2. 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)".
  3. 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.

Try it · Compare, or refusevox-eval compare RUN clean-run · recorded runs
RunStatusClipsStoredWall sNotes
20261102-214943-827a87complete240240134clean, 1 worker
20261102-215158-bf301acomplete24024082clean, 8 workers (B: the run to compare with)
20261102-215320-254f7ccomplete240240105chaos 0.3
20261102-215507-e8a576incomplete240201102chaos 0.3, no retries
20261102-215720-715251complete606024phone clips only

The tool's runs table, plus a “Stored” column: clips with a result in the store.

Compare with the clean run:

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

  1. Shard by clip id, with a hash, so a retried shard is the same shard.
  2. Retry failed shards, with a limit, and record every failure.
  3. Store one slot per (run, clip). Never append results from a stream of rows.
  4. Combine from per-clip counts: all errors over all words, never an average of shards.
  5. Check completeness against the benchmark's list before reporting any score; mark a run with missing clips incomplete.
  6. Make compare refuse incomplete runs, different benchmark versions and different normalizers. Always show the interval.
  7. 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.

Try it · Practice in PythonRuns in your browser · ⌘/Ctrl + Enter to run
platform_practice.py72 lines

Quiz

Try it · Check your understanding0 of 6 answered
  1. 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. 2.With 21 clips counted twice, the error rate came out 15.36% instead of 16.11%. Why lower?

  3. 3.What does the tool's results store do to keep one result per clip?

  4. 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. 5.Why does a clip's shard depend only on its id?

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

Learning something useful?

New labs, articles, and videos on evaluating and testing AI systems come out regularly. Follow along so you don't miss the next one.