`train_gpu.sh` and `build_pi_runtime.sh` were committed as 100644, so a fresh
clone could not run them:
/bin/bash: line 1: ./scripts/train_gpu.sh: Permission denied
Both notebooks carried `chmod +x scripts/*.sh` to paper over it, which works
until something restores the tree from git -- a `git reset --hard` to pick up a
fix brings the mode back with it, and the next cell fails on a repository that
looks correct. The scripts added later in this session were already 100755;
this makes the original two agree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uis9uRynosX69gefzFQeNN
Call the CLI as a module, not through its console script
Hussein+1: Claude Opus 5 (1M context)
b37bda4
On Colab the install succeeds and then every command dies:
./scripts/train_gpu.sh: line 222: buddi-asr: command not found
Missing manifest: data/manifests/splits/test.jsonl
`pip install` writes the console script into whichever bin directory the
environment uses, and that is not on the PATH a notebook's shell inherits. The
failure is confusing precisely because installation reported success -- the
package is importable, only its wrapper is unreachable.
`python -m buddi_asr.cli` needs the package on `sys.path` and nothing else, so it
works wherever the install landed. The multi-GPU branch already invoked it this
way through `accelerate launch -m`; this makes the other seven call sites and the
benchmark sweep agree with it.
Reproduced by putting a python on PATH with the console script deliberately
absent, which is the Colab situation: the old code failed there and the new code
prepares the manifests.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-…
Let the data stage run without a GPU, and split the Colab notebook by intent
Hussein+1: Claude Opus 5 (1M context)
f8a54ab
Benchmarking needs the held-out split but not an accelerator, and `train_gpu.sh`
probed CUDA, sized batches against VRAM, and refused to continue long before it
reached the data stage. `--prepare-only` skips every GPU probe and stops once
the manifests exist, printing their record counts. Verified on a machine with no
CUDA at all: it succeeds with the flag and still refuses without it.
That unlocks the useful thing to do with a second machine while a first one is
training: score the stock checkpoints. The Colab notebook now separates setup
from two independent sections -- benchmark, which duplicates no other run, and
train, which does and says so. A closing cell puts the fine-tuned adapter in the
same table as the baselines, on the same speakers and the same drawn sample,
which is the comparison the paper had no fine-tune to make.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uis9uRynosX69gefzFQeNN
Add the Whisper sweep this repo was missing
Hussein+1: Claude Opus 5 (1M context)
6494f15
The paper at arXiv:2510.23319 contributes two things: a corpus of Levantine
child speech, and a benchmark of eight Whisper variants on it showing the best
of them at 0.66 WER against sub-0.20 on adult data. The corpus is not
obtainable -- the id the paper points at 404s and the Hub search returns nothing
-- but the benchmark is a method, and this repo already has the harder half of
it: 40,646 child utterances with splits that hold zero speaker overlap.
So score the stock checkpoints on our own held-out speakers. Every model sees
the same drawn sample, because the comparison is the whole point; results are
keyed by model so a rerun skips what it already has; and a checkpoint that
exhausts VRAM is reported and stepped over rather than discarding the models
that already succeeded.
Only the multilingual family is in the default list. The .en checkpoints cannot
emit Arabic at all, so scoring them would measure the tokenizer rather than the
model. A local path works wherever a Hub id does,…
Make GPU training run on the Kaggle image
Hussein+1: Claude Opus 5 (1M context)
9954b4c
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…