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
-
Safetensors
Model size
2B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for amn-raw/naijaVox2-quantized-int8-gguf

Quantized
(34)
this model