Skip to content

Add CHAT (Chunk-wise Attention Transducer) model support#15463

Open
hainan-xv wants to merge 5 commits intoNVIDIA-NeMo:mainfrom
hainan-xv:chat_model_pr_clean
Open

Add CHAT (Chunk-wise Attention Transducer) model support#15463
hainan-xv wants to merge 5 commits intoNVIDIA-NeMo:mainfrom
hainan-xv:chat_model_pr_clean

Conversation

@hainan-xv
Copy link
Collaborator

@hainan-xv hainan-xv commented Mar 4, 2026

What does this PR do ?

Add support for CHAT (Chunk-wise Attention Transducer) model.

Collection: [Note which collection this PR will affect]

ASR

Changelog

Introduce CHAT model architecture for streaming ASR with cross-attention in the transducer joint network. Key changes:

  • Add JointWithAttention module with multi-head cross-attention between decoder and encoder representations in the joint network (rnnt.py)
  • Add ChatRNNTDecoding and streaming/chunked inference support with chunk_frame_lengths propagation through the decoding pipeline

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.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

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)


import torch
from omegaconf import DictConfig
import torch.nn as nn

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'OmegaConf' is not used.
@hainan-xv hainan-xv force-pushed the chat_model_pr_clean branch 9 times, most recently from ea56032 to bf05b5c Compare March 4, 2026 20:47
@hainan-xv hainan-xv force-pushed the chat_model_pr_clean branch from bf05b5c to 8c79163 Compare March 4, 2026 20:49
Hainan Xu added 2 commits March 4, 2026 15:56
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
@github-actions github-actions bot removed the common label Mar 4, 2026
Hainan Xu and others added 2 commits March 4, 2026 16:11
Signed-off-by: Hainan Xu <hainanx@nvidia.com>
Signed-off-by: hainan-xv <hainan-xv@users.noreply.github.com>
@artbataev artbataev self-requested a review March 4, 2026 21:15
@KunalDhawan KunalDhawan self-requested a review March 4, 2026 21:34
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.

1 participant