Automatic Speech Recognition
Transformers
Safetensors
GGUF
whisper
speech
audio
asr
fine-tuned
naija
nigerian
african-languages
transcribe.cpp
Instructions to use amn-raw/naijaVox2-quantized-int8-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amn-raw/naijaVox2-quantized-int8-gguf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="amn-raw/naijaVox2-quantized-int8-gguf")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("amn-raw/naijaVox2-quantized-int8-gguf") model = AutoModelForSpeechSeq2Seq.from_pretrained("amn-raw/naijaVox2-quantized-int8-gguf") - Notebooks
- Google Colab
- Kaggle
naijaVox 2.0
naijaVox 2.0 is a fine-tuned version of openai/whisper-large-v3, optimized for Nigerian English, Pidgin, and other Nigerian languages.
Model Details
| Property | Value |
|---|---|
| Base model | openai/whisper-large-v3 |
| Parameters | ~1.55B |
| Architecture | Encoder-decoder Transformer |
| Encoder layers | 32 |
| Decoder layers | 32 |
| Hidden size | 1280 |
| Attention heads | 20 |
| Mel bins | 128 |
| Max audio length | 30 seconds (chunked for longer inputs) |
Intended Use
- Transcription of Nigerian English, Pidgin English, Yoruba, Igbo, Hausa, and related languages/accents
- General-purpose English ASR with improved performance on West African accents
- Integration into speech-to-text pipelines
How to Use
With Hugging Face Transformers
from transformers import WhisperForConditionalGeneration, WhisperProcessor
import torch
model_id = "amn-raw/naijaVox2-quantized-int8-gguf"
processor = WhisperProcessor.from_pretrained(model_id)
model = WhisperForConditionalGeneration.from_pretrained(
model_id, torch_dtype=torch.float16, device_map="auto"
)
# Transcribe
from datasets import load_dataset, Audio
ds = load_dataset("your_dataset", split="test")
ds = ds.cast_column("audio", Audio(sampling_rate=16000))
sample = ds[0]["audio"]
input_features = processor(
sample["array"], sampling_rate=sample["sampling_rate"], return_tensors="pt"
).input_features.to(model.device, dtype=torch.float16)
predicted_ids = model.generate(input_features)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcription)
With vLLM (OpenAI-compatible server)
pip install vllm
vllm serve amn-raw/naijaVox2-quantized-int8-gguf \
--max-model-len 448 \
--max-num-seqs 100 \
--task transcription
Then call the transcription endpoint:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
response = client.audio.transcriptions.create(
model="amn-raw/naijaVox2-quantized-int8-gguf",
file=open("audio.wav", "rb"),
)
print(response.text)
With transcribe.cpp (GGUF)
Pre-quantized GGUF files are available in this repo under the gguf/ directory.
# Using transcribe.cpp
build/bin/transcribe-cli \
-m naijavox-2.0-Q8_0.gguf \
audio.wav
GGUF Quantizations
| File | Quant | Size | Notes |
|---|---|---|---|
gguf/naijavox-F16.gguf |
F16 | ~2.95 GB | Full precision reference |
gguf/naijavox-2-Q8_0.gguf |
Q8_0 | ~1.6 GB | Recommended for most use |
Training
- Base model: openai/whisper-large-v3
- Fine-tuning framework: Hugging Face Transformers
- Audio format: 16 kHz mono
Limitations
- Optimized for Nigerian languages/accents; may not improve over base whisper-large-v3 on other languages
- 30-second window limit per chunk (long audio is chunked automatically)
- No speaker diarization
License
Apache 2.0 (same as base whisper-large-v3)
- Downloads last month
- -
Model tree for amn-raw/naijaVox2-quantized-int8-gguf
Base model
openai/whisper-large-v3