Downloads · 30 days
18
18% of all-time downloads
animaslabs/parakeet-rnnt-0.6b-mlx-4bit
parakeet-rnnt-0.6b-mlx-4bit is a automatic speech recognition model from animaslabs. Use it when you need speech turned into text. It is set up for mlx. The card lists the license as cc-by-4.0.
This model was converted to MLX format, 4-bit quantized from nvidia/parakeet-rnnt-0.6b using the scripts in this github repo. Please refer to original model card for more details on the model.
Downloads · 30 days
18
18% of all-time downloads
All-time downloads
102
Public
Parameters
617M
631 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors631 MB · 100%
How the weights are stored.
U32533M · 87%
From the Hugging Face model README
This model was converted to MLX format, 4-bit quantized from nvidia/parakeet-rnnt-0.6b using the scripts in this github repo. Please refer to original model card for more details on the model.
Quantized models require calling mlx.nn.quantize() before loading weights.
import json
import mlx.nn as nn
from huggingface_hub import hf_hub_download
from parakeet_mlx.utils import from_config
# Download and load config
config_path = hf_hub_download("animaslabs/parakeet-rnnt-0.6b-mlx-4bit", "config.json")
with open(config_path) as f:
config = json.load(f)
# Build model and apply quantization structure
model = from_config(config)
nn.quantize(
model,
bits=config["quantization"]["bits"],
group_size=config["quantization"]["group_size"],
)
# Load quantized weights
weights_path = hf_hub_download("animaslabs/parakeet-rnnt-0.6b-mlx-4bit", "model.safetensors")
model.load_weights(weights_path)
# Transcribe
result = model.transcribe("audio.wav")
print(result.text)