Skip to content

Fix nemotron leaks - #2169

Merged
baijumeswani merged 1 commit into
mainfrom
skottmckay/FixNemotronLeaks
May 19, 2026
Merged

Fix nemotron leaks#2169
baijumeswani merged 1 commit into
mainfrom
skottmckay/FixNemotronLeaks

Conversation

@skottmckay

Copy link
Copy Markdown
Contributor

Fix some leaks of the nemotron outputs.

Copilot AI review requested due to automatic review settings May 19, 2026 02:05
@skottmckay
skottmckay requested a review from a team as a code owner May 19, 2026 02:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes memory leaks in the Nemotron speech streaming path by ensuring ORT output tensors produced by encoder, prediction, and joiner sessions are owned and released after each run.

Changes:

  • Transfers temporary encoder length output into a local owner before reading and releasing it.
  • Releases prediction decoder output and joiner logits output after each decoding iteration.
  • Discards unused prediction LSTM outputs on blank-token steps.

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.

4 participants