Haas-ja-v1.0 MLX
An unofficial MLX conversion of third-intelligence/Haas-ja-v1.0, a Japanese speech recognition model, for Python on Apple Silicon. It is not affiliated with Third Intelligence. This is a personal port, offered as is, and maintenance is not promised.
The weights are the checkpoint's bfloat16 tensors with their axes rearranged for MLX, and their values are unchanged. mlx-audio and other MLX libraries do not run this model: use the code in https://github.com/matsuurajun/haas-mlx.
If you do not need Python or MLX, speech.cpp also runs this model on Metal.
Use
git clone https://github.com/matsuurajun/haas-mlx haas-mlx && cd haas-mlx
uv sync
uv run hf download mrjnzzz/Haas-ja-v1.0-mlx --local-dir model
uv run python -m haas_mlx.transcribe --model model/ --audio sample.wav
Audio longer than 30 s is cut at quiet points, as the official transcribe_longform does. --timestamps prints JSON with
each token's times, as NeMo computes them. These are the tokenizer's pieces, not words.
Accuracy
asr-ja-bench v1.1, scored with jacer v1.2.0 (CER strict / flex / kana, %), on an Apple M4 with Metal, one utterance at a time, in bfloat16. onnxruntime was not installed for jacer.
| Subset | This conversion | Published |
|---|---|---|
| JVNV (1,375) | 4.50 / 3.04 / 2.25 | 4.53 / 3.08 / 2.26 |
| FLEURS (650) | 3.65 / 2.98 / 2.34 | 3.67 / 2.98 / 2.34 |
JSUT, TEDxJP-10K and SpeechBSD were not measured, so there is no figure to set against the published 6.12% overall. The output was not compared directly with the official implementation, which needs a CUDA GPU. Its text matches speech.cpp 0.9.3 (F16 file on Metal) on 1,290 of 1,375 JVNV and 601 of 650 FLEURS utterances.
Speed and memory
On an Apple M4 with 24 GB: about 76 times real time on these subsets, and a recording of 22 minutes in 16 s with a peak of 1.8 GB in MLX.
What to expect
- It tends to leave out fillers (えっと, まあ, あの) and some short replies (はい), and to tidy restarts, which reads well but is not verbatim.
- Not implemented here: word times, custom vocabulary, batches, streaming, quantized weights.
License
Apache License 2.0, as the original model. See LICENSE and NOTICE, and the original card for its training data and
limitations.