openslr/librispeech_asr
Viewer • Updated • 585k • 171k • 258
Run lightsofapollo/nemotron-speech-streaming-en-0.6b-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/lightsofapollo/nemotron-speech-streaming-en-0.6b-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/lightsofapollo/nemotron-speech-streaming-en-0.6b-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use lightsofapollo/nemotron-speech-streaming-en-0.6b-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download lightsofapollo/nemotron-speech-streaming-en-0.6b-8bit --local-dir nemotron-speech-streaming-en-0.6b-8bit
This model was converted to MLX format, 8-bit quantized from nvidia/nemotron-speech-streaming-en-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/nemotron-speech-streaming-en-0.6b-mlx-8bit", "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/nemotron-speech-streaming-en-0.6b-mlx-8bit", "model.safetensors")
model.load_weights(weights_path)
# Transcribe
result = model.transcribe("audio.wav")
print(result.text)
Quantized
Base model
nvidia/nemotron-speech-streaming-en-0.6b