Commit History
-
Let evaluation run in batches and on a stratified sample
Hussein +1: Claude Opus 5 (1M context)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…646b079 -
Make GPU training run on the Kaggle image
Hussein +1: Claude Opus 5 (1M context)Four things stopped `train_gpu.sh` from reaching a first optimizer step on Kaggle, each independently fatal. A `.venv-gpu/pyvenv.cfg` from an earlier cloud run had been committed. Every fresh clone therefore started with a directory that looks like a virtualenv but has no `bin/`, and `python -m venv` on it fails inside ensurepip rather than rebuilding it. Untrack the file, ignore the directory, and have the script clear an incomplete tree before creating one so an existing clone self-heals. The image ships transformers 5 and huggingface-hub 1.x, while the extras pinned `transformers<5` and `huggingface-hub<1`. Installing the package downgraded the hub underneath transformers and broke the import. Widen both ceilings; the only hub API used is `snapshot_download`, which is unchanged in 1.x. Transformers 5 removed `warmup_ratio` from `Seq2SeqTrainingArguments` and folded it into `warmup_steps`, which reads a value below 1.0 as a fraction of total steps -- the same meaning. Choose the s…9954b4c
-
Initial commit of buddi-asr source
Verified signaturef4931e8