Fine-tuned version of openai/whisper-base on the Bahraini Speech Dataset for Bahraini Arabic dialect transcription with Arabic-English code-switching support.
Developed as part of the Nota AI Meeting Assistant senior project at the University of Bahrain.
| Property | Value |
|---|---|
| Base model | openai/whisper-base |
| Parameters | 72.6M |
| Language | Bahraini Arabic + English code-switching |
| Task | Automatic Speech Recognition |
| Format | Quantized ONNX (INT8) |
| Model size | 74MB |
| Hyperparameter | Value |
|---|---|
| Learning rate | 3e-5 |
| Batch size | 32 |
| Max steps | 8,000 |
| Warmup steps | 500 |
| Precision | bf16 |
| GPU | NVIDIA A100 (40GB) |
| Training time | ~2.5 hours |
| Model | WER |
|---|---|
| whisper-base (no fine-tuning) | ~88% |
| This model (V1, 6000 steps) | 58.3% |
| This model (V2, 8000 steps + filtering + augmentation) | 54.4% |
Note: WER is measured against model-generated test labels, not human annotations. True WER against human ground truth is estimated to be 5-10 points lower.
import { pipeline } from '@huggingface/transformers';
const transcriber = await pipeline(
'automatic-speech-recognition',
'ghadeerl/bahraini-arabic'
);
const result = await transcriber(audioData, {
language: 'arabic',
task: 'transcribe',
});
console.log(result.text);
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torch
processor = WhisperProcessor.from_pretrained("ghadeerl/bahraini-arabic")
model = WhisperForConditionalGeneration.from_pretrained("ghadeerl/bahraini-arabic")
# Process audio (must be 16kHz)
inputs = processor(audio_array, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
predicted_ids = model.generate(
inputs.input_features,
language="arabic",
task="transcribe",
no_repeat_ngram_size=3,
)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcription)
Designed for integration into Nota, a privacy-first AI meeting assistant. Best suited for:
Not recommended for:
If you use this model, please cite:
model.safetensors 277 MiBonnx/decoder_model_merged.onnx 199 MiBonnx/decoder_with_past_model.onnx 187 MiBonnx/encoder_model.onnx 79 MiBonnx/encoder_model_fp16.onnx 79 MiBonnx/decoder_model_merged_q4.onnx 50 MiBonnx/decoder_model_merged_q8.onnx 50 MiBonnx/decoder_model_merged_quantized.onnx 50 MiBonnx/encoder_model_q8.onnx 22 MiBonnx/encoder_model_q4.onnx 22 MiBonnx/encoder_model_quantized.onnx 22 MiBtraining_args.bin 5.3 KiBopenai/whisper-base