Add Per-Stream Phrase Boosting for Cache-Aware RNN-T#15344
Merged
Conversation
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
…_aware' into vbataev/per_stream_biasing_cache_aware
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
nemo/collections/asr/inference/pipelines/cache_aware_rnnt_pipeline.py
Dismissed
Show dismissed
Hide dismissed
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. |
naymaraq
approved these changes
Feb 3, 2026
Collaborator
naymaraq
left a comment
There was a problem hiding this comment.
Everything looks great
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 ?
Support per-stream biasing in inference for cache-aware models.
Per-stream biasing was introduced in #15125
Experiments
(1) Global vs Per-Stream Boosting
WERR for global and per-stream boosting is the same.
Memory cache significantly improves the speed as expected.
(2) Sanity check with boosting ground truth on LibriSpeech
Boosting ground truth significantly improves WER as expected.
Collection: [ASR]
Changelog
Usage
python examples/asr/asr_streaming_inference/asr_streaming_infer.py \ --config-path="../conf/asr_streaming_inference/" \ --config-name=cache_aware_rnnt.yaml \ audio_file="<manifest_with_boosting_requests>" \ output_filename="result.jsonl" \ asr.model_name="nvidia/nemotron-speech-streaming-en-0.6b" \ streaming.batch_size=5 \ lang=en \ enable_pnc=False \ enable_itn=False \ enable_nmt=False \ asr_output_granularity=segmentManifest example:
{"audio_filepath": "/data/file1.wav", "text": "some ground truth text", "biasing_request": {"boosting_model_cfg": {"key_phrases_list": ["one phrase"]}}} {"audio_filepath": "/data/file2.wav", "text": "another ground truth text", "biasing_request": {"boosting_model_cfg": {"key_phrases_list": ["other phrases", "and this one"]}}}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:
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