Skip to content

Speedup buffered transducer inference: remove double decoding#15301

Merged
artbataev merged 2 commits intomainfrom
vbataev/fix_rnnt_double_decoding
Jan 24, 2026
Merged

Speedup buffered transducer inference: remove double decoding#15301
artbataev merged 2 commits intomainfrom
vbataev/fix_rnnt_double_decoding

Conversation

@artbataev
Copy link
Copy Markdown
Collaborator

@artbataev artbataev commented Jan 15, 2026

Important

The Update branch button 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 ?

Speedup buffered RNN-T/TDT decoding in asr/inference by removing double-decoding of the chunk.

Results on LibriSpeech test-other with batch size 128, nvidia/stt_en_fastconformer_transducer_large model, default context sizes (1.6-4.8-1.6):

Approach WER RTFx*
previous (double-decoding) 4.55 1770
here (with fix) 4.55 2153

*measured with warmup
RTFx without warmup: 1471 (previous) -> 1619 (here)

Collection: [ASR]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
python examples/asr/asr_streaming_inference/asr_streaming_infer.py \
  --config-path=../conf/asr_streaming_inference/ \
  --config-name=buffered_rnnt.yaml \
   asr.model_name=nvidia/stt_en_fastconformer_transducer_large \
   audio_file=ls_test_other.jsonl \
   streaming.batch_size=128 \
   output_filename=ls_test_other_decoded.jsonl

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

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

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

  • Related to # (issue)

Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
@github-actions github-actions Bot added the ASR label Jan 15, 2026
@artbataev artbataev requested a review from naymaraq January 15, 2026 11:09
@artbataev artbataev marked this pull request as ready for review January 15, 2026 11:10
@github-actions github-actions Bot removed the Run CICD label Jan 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

[🤖]: Hi @artbataev 👋,

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.

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

Copy link
Copy Markdown
Collaborator

@naymaraq naymaraq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I’d suggest adding a one-line comment for shift_indices, since the index manipulation is a bit hard to follow.

Comment thread nemo/collections/asr/inference/pipelines/buffered_rnnt_pipeline.py
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Copy link
Copy Markdown
Collaborator

@naymaraq naymaraq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks @artbataev

@github-actions github-actions Bot removed the Run CICD label Jan 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

[🤖]: Hi @artbataev 👋,

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.

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

@artbataev artbataev merged commit d282d04 into main Jan 24, 2026
139 checks passed
@artbataev artbataev deleted the vbataev/fix_rnnt_double_decoding branch January 24, 2026 14:35
nune-tadevosyan pushed a commit to nune-tadevosyan/NeMo that referenced this pull request Mar 13, 2026
…-NeMo#15301)

* Remove double decoding in RNN-T buffered inference

Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>

---------

Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants