Parakeet TDT 0.6B v2, 8-bit encoder (MLX)
NVIDIA's Parakeet TDT 0.6B v2 English speech recognition model, for parakeet-mlx on Apple Silicon. 0.7 GB instead of 2.3 GB.
Made from the MLX conversion
mlx-community/parakeet-tdt-0.6b-v2 at commit
8ae155301e23d820d82aa60d24817c900e69e487 by
scripts/make_parakeet_q8.py
in macvoice.
Changes from the original
- All weights cast to bfloat16.
- The encoder (about 99% of the weights) quantized to 8 bits: MLX affine quantization, group size 64. The decoder and joint network stay in bfloat16.
On macvoice's tests the transcripts match the bf16 model's; on a 10k-utterance English test set the 8-bit model's word error rate was statistically indistinguishable from bf16.
Loading
The weights are already quantized, so build the model, quantize its encoder to get the same shapes, then load:
import json
import mlx.nn as nn
from huggingface_hub import hf_hub_download
from parakeet_mlx.utils import from_config
repo = "johnrobinsn/parakeet-tdt-0.6b-v2-mlx-q8"
model = from_config(json.load(open(hf_hub_download(repo, "config.json"))))
nn.quantize(model.encoder, group_size=64, bits=8)
model.load_weights(hf_hub_download(repo, "model.safetensors"))
quantization.json records the same settings.
License
CC BY 4.0, as the original. The model was created by NVIDIA; see the original model card for its training data, intended use and limitations. This is a modified version, not endorsed by NVIDIA.