Skip to content

Instantly share code, notes, and snippets.

@senstella
senstella / parakeet-mlx-streaming-demo.py
Created July 3, 2025 11:37
A demo of Parakeet-MLX's streaming capability using Rich.
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "parakeet-mlx",
# "sounddevice",
# "rich",
# ]
# ///
import queue
@senstella
senstella / parakeet-nemo-to-mlx.py
Created May 6, 2025 14:04
A simple script to convert NeMo Parakeet weights to MLX.
import torch
from safetensors.torch import save_file
INPUT_NAME = "model_weights.ckpt"
OUTPUT_NAME = "model.safetensors"
state = torch.load(INPUT_NAME, map_location="cpu")
new_state = {}
for key, value in state.items():