CoolFace
Modelpublic

animaslabs/parakeet-tdt-0.6b-v3-mlx-4bit

sourceHugging Facecc-by-4.0updated 8mo agoView on Hugging Face
2likes169downloads
Model Card

animaslabs/parakeet-tdt-0.6b-v3-mlx-4bit

This model was converted to MLX format, 4-bit quantized from nvidia/parakeet-tdt-0.6b-v3 using the scripts in this github repo. Please refer to original model card for more details on the model.

Usage

Quantized models require calling mlx.nn.quantize() before loading weights.

python
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-tdt-0.6b-v3-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-tdt-0.6b-v3-mlx-4bit", "model.safetensors")
model.load_weights(weights_path)

# Transcribe
result = model.transcribe("audio.wav")
print(result.text)