Whisper (Malay)
Collection
Malay Focused OpenAI Whisper speech recognition models in MLX format • 5 items • Updated
How to use PishangShedappp/malaysian-whisper-tiny-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir malaysian-whisper-tiny-mlx PishangShedappp/malaysian-whisper-tiny-mlx
Apple MLX-converted weights for PishangShedappp/malaysian-whisper-tiny-mlx optimized for Apple Silicon.
mesolitica/malaysian-whisper-tinyweights.safetensors, config.json)mlx-whisper on Apple Silicon (M-series)import mlx_whisper
result = mlx_whisper.transcribe(
"/path/to/audio.wav",
path_or_hf_repo="<this-repo>",
# Optional decoding controls
language="ms", # Malay
task="transcribe", # or "translate"
temperature=0.0,
no_speech_threshold=0.3,
logprob_threshold=-1.0,
compression_ratio_threshold=2.4,
)
print(result["text"])
With the server at whisper/server_mlx.py from avatar-npm:
export WHISPER_MODEL=<this-repo-or-local-mlx-path>
export WHISPER_LANGUAGE=ml
python server_mlx.py
# POST /transcribe with form field `file`
mlx-whisper.mesolitica/malaysian-whisper-tiny.The original model’s license applies. See the upstream repository for details.
Quantized
Base model
mesolitica/malaysian-whisper-tiny