PhoWhisper-large Vietnamese-English code-switching (MLX, 8-bit)
vinai/PhoWhisper-large with the LoRA adapter rinhoooo/phowhisper-large-vien-cs-asr merged in, converted to MLX for mlx-whisper on Apple Silicon, quantized to 8-bit (1.5 GB instead of 2.9 GB). It is made for Vietnamese speech with English words mixed in ("fix cái bug login trong dashboard"). All credit for the model goes to VinAI (PhoWhisper) and to the adapter's authors; see their model cards for training data and results.
On a 12-sentence spot check (synthetic Vietnamese speech) it gave the same transcripts as float16.
Full float16 version: sangdth/phowhisper-large-vien-cs-mlx-16bit. Without the adapter: sangdth/phowhisper-large-mlx-16bit.
Use
import mlx_whisper
result = mlx_whisper.transcribe("speech.wav", path_or_hf_repo="sangdth/phowhisper-large-vien-cs-mlx-8bit", language="vi")
print(result["text"])
How it was made
- Merged the adapter (commit
a98f55e, LoRA r=32, alpha=64, 512 layers) intovinai/PhoWhisper-large(commitb9136a4): each target weight becomes W + (64 / 32) · B · A. - Converted with
convert.pyfrom ml-explore/mlx-examples (commit796f5b5), and renamedmodel.safetensorstoweights.safetensors, the name mlx-whisper loads. - Quantized the float16 MLX weights with
mlx.nn.quantize(group size 64, 8 bits; mlx 0.32.4), the same wayconvert.py -qdoes;config.jsoncarries thequantizationblock mlx-whisper reads.
Citation
@inproceedings{PhoWhisper,
title = {{PhoWhisper: Automatic Speech Recognition for Vietnamese}},
author = {Thanh-Thien Le and Linh The Nguyen and Dat Quoc Nguyen},
booktitle = {Proceedings of the ICLR 2024 Tiny Papers track},
year = {2024}
}
The adapter: "A Vietnamese-English Code-Switching Speech Dataset and Benchmark Evaluation for Automatic Speech Recognition", Procedia Computer Science (KES 2026).
License
The adapter is CC BY 4.0, so this merge is too: credit the adapter's authors and VinAI when you use it. PhoWhisper-large is BSD 3-Clause, Copyright (c) 2024, VinAI; its full text is in LICENSE-PhoWhisper.