Instructions to use nvidia/parakeet-rnnt-1.1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use nvidia/parakeet-rnnt-1.1b with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("nvidia/parakeet-rnnt-1.1b") transcriptions = asr_model.transcribe(["file.wav"]) - Transformers
How to use nvidia/parakeet-rnnt-1.1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="nvidia/parakeet-rnnt-1.1b")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nvidia/parakeet-rnnt-1.1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Set layerdrop to 0.0 (the model was trained without stochastic depth)
The Transformers config of this model has "layerdrop": 0.1, but the model was trained by NeMo without stochastic depth: the model_config.yaml in the .nemo file has no stochastic_depth_drop_prob, i.e. NeMo's default of 0.0. The Transformers conversion script ignored that setting, so the config got the ParakeetEncoderConfig default of 0.1 instead.
This only matters when fine-tuning with Transformers (layerdrop is disabled in eval mode), but there it breaks training: each encoder layer is skipped with probability 0.1, and skipping the last layer destroys the output. With nvidia/parakeet-tdt-0.6b-v3, skipping any one of layers 0-22 leaves the loss at ~0.3, while skipping layer 23 gives a loss of ~2000. In a 300-step fine-tune on LibriSpeech, 23 steps had losses of ~1000 and gradient norms of ~10⁴:
With layerdrop set to 0.0 there are no spikes (max loss 1.06), and the final loss is lower:
This PR sets "layerdrop": 0.0 to match how the model was trained. Inference is unaffected. The conversion script is fixed in Transformers in https://github.com/huggingface/transformers/pull/49191, so that new conversions keep NeMo's value. Please wait for that PR to be merged before merging this one.
The conversion fix is merged in Transformers (https://github.com/huggingface/transformers/pull/49191), so this PR is ready to be merged.

