Add batched streaming beam search for RNN-T (mALSD+mAES) and TDT (mALSD)#15753
Open
lilithgrigoryan wants to merge 18 commits into
Open
Add batched streaming beam search for RNN-T (mALSD+mAES) and TDT (mALSD)#15753lilithgrigoryan wants to merge 18 commits into
lilithgrigoryan wants to merge 18 commits into
Conversation
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
…/streaming-beam-search
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
…/streaming-beam-search
Contributor
|
[🤖]: Hi @lilithgrigoryan 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully. So it might be time to merge this PR or get some approvals. |
Collaborator
|
/claude review |
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Contributor
|
[🤖]: Hi @lilithgrigoryan 👋, We wanted to let you know that a CICD pipeline for this PR just finished successfully. So it might be time to merge this PR or get some approvals. |
artbataev
reviewed
Jun 5, 2026
artbataev
reviewed
Jun 5, 2026
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
Signed-off-by: lilithgrigoryan <lgrigoryan@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
The
Update branchbutton must only be pressed in very rare occassions.An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.
What does this PR do ?
Adds streaming-aware variants of the MALSD (malsd_batch, batched + CUDA-graphs) and MAES (maes_batch, torch eager) beam-search decoders for both RNN-T and TDT.
Word boosting and n-gram LM fusion are both supported.
Follow-up PRs (planned, separate):
examples/asr/asr_chunked_inference/rnnt/.Internal WB test set (word boosting) — α=1.3 for both greedy and beam.
Model:
nvidia/stt_en_fastconformer_transducer_largeSLURP test set (n-gram LM fusion) — α=0.8 greedy, α=0.4 beam.
Model:
nvidia/stt_en_fastconformer_tdt_largeHeadline: streaming MALSD + fusion gives +18–25% relative WER reduction vs streaming greedy on both datasets, with the gain growing monotonically with beam size.
Collection: [Note which collection this PR will affect]
Changelog
Usage
Example
Run streaming beam search on your own data:
python examples/asr/asr_chunked_inference/rnnt/speech_to_text_streaming_infer_rnnt.py \ pretrained_name=nvidia/stt_en_fastconformer_transducer_large \ # or nvidia/stt_en_fastconformer_tdt_large dataset_manifest=/path/to/your_test_manifest.json \ output_filename=preds.jsonl \ left_context_secs=10 chunk_secs=2 right_context_secs=2 \ batch_size=256 \ decoding.strategy=malsd_batch \ # or maes_batch for RNN-T decoding.beam.beam_size=4 \ decoding.beam.allow_cuda_graphs=trueUsage with word-boosting:
python examples/asr/asr_chunked_inference/rnnt/speech_to_text_streaming_infer_rnnt.py \ pretrained_name=nvidia/stt_en_fastconformer_transducer_large \ # or nvidia/stt_en_fastconformer_tdt_large dataset_manifest=/path/to/your_test_manifest.json \ output_filename=preds.jsonl \ left_context_secs=10 chunk_secs=2 right_context_secs=2 \ batch_size=256 \ decoding.strategy=malsd_batch \ # or maes_batch for RNN-T decoding.beam.beam_size=4 \ decoding.beam.allow_cuda_graphs=true \ decoding.beam.boosting_tree.key_phrases_file=/path/to/key_phrases.txt \ decoding.beam.boosting_tree_alpha=1.3Usage with LM fusion:
python examples/asr/asr_chunked_inference/rnnt/speech_to_text_streaming_infer_rnnt.py \ pretrained_name=nvidia/stt_en_fastconformer_transducer_large \ # or nvidia/stt_en_fastconformer_tdt_large dataset_manifest=/path/to/your_test_manifest.json \ output_filename=preds.jsonl \ left_context_secs=10 chunk_secs=2 right_context_secs=2 \ batch_size=256 \ decoding.strategy=malsd_batch \ # or maes_batch for RNN-T decoding.beam.beam_size=4 \ decoding.beam.allow_cuda_graphs=true \ decoding.beam.ngram_lm_model=/path/to/your.kenlm.nemo \ decoding.beam.ngram_lm_alpha=0.4GitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information