Let evaluation run in batches and on a stratified sample
Hussein+1: Claude Opus 5 (1M context)
646b079
Reproducing the Arabic Little STT benchmark means scoring a dozen checkpoints on
the same held-out speakers, and `evaluate` transcribed one clip per forward
pass. The test split is 4,073 utterances; at that rate a single large checkpoint
is most of an hour and the sweep does not fit in a session.
Batch the generate call. Whisper pads every clip to the same 30 s window, so a
batch costs one forward pass rather than `batch_size` of them. Batches are
grouped by language first, because the language token rides in the decoder
prompt and one `generate` call carries a single prompt for the whole batch.
Verified identical: batch_size 1 and 4 produce the same WER, the same CER, and
the same hypothesis for every utterance.
`--limit` takes a speaker-stratified sample instead of the whole manifest.
Uniform sampling would let the child with the most recordings dominate a small
draw, moving the score for reasons unrelated to the model, so it draws from each
speaker in turn. Seeded, since a benchma…