Views
No views yet

Disclaimer / Notice: Details for these are in Peer Review and publications of the paper will be made available soon for more details.
1import torch
2import librosa
3from transformers import WhisperProcessor, WhisperForConditionalGeneration
4
5device = "cuda" if torch.cuda.is_available() else "cpu"
6
7processor = WhisperProcessor.from_pretrained("andrewbawitlung/whisper-small-mizonal3-E4-lus-v2026.06")
8model = WhisperForConditionalGeneration.from_pretrained("andrewbawitlung/whisper-small-mizonal3-E4-lus-v2026.06").to(device)
9
10audio, sr = librosa.load("your_audio.wav", sr=16000)
11input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features.to(device)
12
13with torch.no_grad():
14 predicted_ids = model.generate(input_features, max_new_tokens=256)
15
16transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
17print(transcription)| Experiment | Hugging Face Repository |
|---|---|
| E1 (Baseline) | andrewbawitlung/whisper-small-mizonal3-E1-lus-v2026.06 |
| E2 (Noise) | andrewbawitlung/whisper-small-mizonal3-E2-lus-v2026.06 |
| E3 (Speed) | andrewbawitlung/whisper-small-mizonal3-E3-lus-v2026.06 |
| E4 (SpecAug) | andrewbawitlung/whisper-small-mizonal3-E4-lus-v2026.06 |
| E5 (Combined) | andrewbawitlung/whisper-small-mizonal3-E5-lus-v2026.06 |
| step | epoch | train_loss | eval_loss | eval_wer | eval_cer | learning_rate | grad_norm |
|---|---|---|---|---|---|---|---|
| 250 | 0.91 | 0.6510 | 0.5886 | 38.47 | 15.37 | 1.49e-04 | 8.01 |
| 500 | 1.82 | 0.7070 | 0.6960 | 41.22 | 16.54 | 2.99e-04 | 7.35 |
| 750 | 2.73 | 0.5222 | 0.5778 | 47.78 | 26.32 | 2.56e-04 | 4.32 |
| 1000 | 3.64 | 0.3354 | 0.5246 | 29.65 | 12.14 | 2.12e-04 | 3.21 |
| 1250 | 4.55 | 0.2034 | 0.5009 | 28.23 | 11.60 | 1.68e-04 | 3.17 |
| 1500 | 5.46 | 0.1231 | 0.4744 | 23.27 | 7.47 | 1.24e-04 | 2.51 |
| 1750 | 6.36 | 0.0741 | 0.4535 | 20.68 | 6.55 | 7.96e-05 | 2.13 |
| 2000 | 7.27 | 0.0303 | 0.4445 | 18.82 | 5.57 | 3.55e-05 | 0.87 |