whisper-th-large-v3-combined-mlx
MLX conversion (fp16) of
biodatlab/whisper-th-large-v3-combined,
a Thai fine-tune of openai/whisper-large-v3 by the Biomedical and Data Lab, Mahidol University.
For running Thai speech recognition natively on Apple Silicon with
mlx-whisper.
All credit for the model goes to the original authors; this repo only changes the weight format. See the original model card for training data, evaluation, and citation.
Usage
pip install mlx-whisper
mlx_whisper audio.mp4 --model hypotheses789/whisper-th-large-v3-combined-mlx --language th \
--condition-on-previous-text False --output-format all
import mlx_whisper
result = mlx_whisper.transcribe(
"audio.mp4",
path_or_hf_repo="hypotheses789/whisper-th-large-v3-combined-mlx",
language="th",
condition_on_previous_text=False,
compression_ratio_threshold=None, # see Notes
)
print(result["text"])
Throughput on an Apple M4 (32 GB): ~4.6× real time.
Notes
- Timestamps: the fine-tune does not emit timestamp tokens, so segments come out as fixed 30 s windows. Fine for plain transcripts; for accurate subtitle timing use stock Whisper.
- Repetition loops: on long recordings, use
condition_on_previous_text=Falseand noinitial_prompt(a prompt made loops more likely with this model). On ~4.5 h of lecture audio, ~1.5% of 30 s windows still looped, mostly over music or silence; re-transcribing those windows withmlx-community/whisper-large-v3-turborecovered the speech ones. compression_ratio_thresholddoesn't work for Thai: unspaced, 3-byte UTF-8 Thai text has a gzip compression ratio of ~2.5 even when clean, above the 2.4 default. With the Python API's default temperature fallback, most windows would be re-decoded with sampling, so set it toNone. (Themlx_whisperCLI decodes at temperature 0 only, so it has no fallback to trigger.)alignment_headsare mlx-whisper's default (upper half of decoder layers), not tuned for this model, soword_timestamps=Truemay be less accurate.
Conversion
Converted from the HF model.safetensors with convert_hf_to_mlx.py (included in this repo):
HF → OpenAI key remapping, conv weights transposed to MLX layout, cast to float16.
python convert_hf_to_mlx.py biodatlab/whisper-th-large-v3-combined ./whisper-th-large-v3-combined-mlx