A memory-efficient
INT4 (NF4) quantization of
CohereLabs/cohere-transcribe-arabic-07-2026, Cohere Labs' 2B-parameter Arabic/English
speech-recognition model. Produced with bitsandbytes NF4 4-bit with double quantization for GPU inference via
transformers.
This quantization is
near-lossless — ~1.9% divergence from full (+0.1 WER points on Saudi podcasts).
Word Error Rate of this quantized model measured against the full fp16 model on
1,009 Saudi-dialect podcast clips (Arabic text normalized):
The int8 build is identical to full-precision in WER; the int4 build differs by ~1.9%,
mostly minor orthographic variation (e.g. hamza placement).
1import torch
2from transformers import AutoProcessor, CohereAsrForConditionalGeneration
3from transformers.audio_utils import load_audio
4
5processor = AutoProcessor.from_pretrained("NAMAA-Space/cohere-transcribe-arabic-07-2026-int4")
6model = CohereAsrForConditionalGeneration.from_pretrained("NAMAA-Space/cohere-transcribe-arabic-07-2026-int4", device_map="auto")
7
8audio = load_audio("your_audio.wav", sampling_rate=16000)
9inputs = processor(audio, sampling_rate=16000, language="ar", return_tensors="pt").to(model.device)
10outputs = model.generate(**inputs, max_new_tokens=256)
11print(processor.decode(outputs, skip_special_tokens=True))
1import torch
2from transformers import BitsAndBytesConfig
3
4quantization_config = BitsAndBytesConfig(
5 load_in_4bit=True,
6 bnb_4bit_quant_type="nf4",
7 bnb_4bit_compute_dtype=torch.bfloat16,
8 bnb_4bit_use_double_quant=True,
9)
Released under
Apache 2.0. This is a quantized derivative of
CohereLabs/cohere-transcribe-arabic-07-2026 by Cohere and Cohere Labs; all original terms apply.