Downloads · 30 days
128
12% of all-time downloads
amn-raw/naijaVox2_quantized_int8_gguf
naijaVox2_quantized_int8_gguf is a automatic speech recognition model from amn-raw. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
naijaVox 2.0 is a fine-tuned version of openai/whisper-large-v3, optimized for Nigerian English, Pidgin, and other Nigerian languages.
Downloads · 30 days
128
12% of all-time downloads
All-time downloads
1.1K
Public
Parameters
1.5B
7.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf4.8 GB · 61%
From the Hugging Face model README
naijaVox 2.0 is a fine-tuned version of openai/whisper-large-v3, optimized for Nigerian English, Pidgin, and other Nigerian languages.
| 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) |
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)
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)
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
| 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 |
Apache 2.0 (same as base whisper-large-v3)