Run this model with HF Jobs

Run nvidia/parakeet-rnnt-0.6b 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/nvidia/parakeet-rnnt-0.6b. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/nvidia/parakeet-rnnt-0.6b 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.

Set layerdrop to 0.0 (the model was trained without stochastic depth)

#6
by Steveeeeeeen HF Staff - opened

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⁴:

layerdrop=0.1

With layerdrop set to 0.0 there are no spikes (max loss 1.06), and the final loss is lower:

layerdrop=0

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.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment