Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ASR Buffered inference scripts #5552

Merged
merged 8 commits into from
Dec 6, 2022
Merged

Conversation

titu1994
Copy link
Collaborator

@titu1994 titu1994 commented Dec 6, 2022

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Collection: [ASR]

Changelog

  • Deepcopy the alignments before compute of alignments
  • Do proper class level check of log level instead of incorrect config checks (older model doesn't have in config because the log=True is set by default inside of the function)

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

Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
Signed-off-by: smajumdar <titu1994@gmail.com>
@github-actions github-actions bot added the ASR label Dec 6, 2022
@titu1994 titu1994 requested a review from fayejf December 6, 2022 05:49
Signed-off-by: smajumdar <titu1994@gmail.com>
Copy link
Collaborator

@fayejf fayejf left a comment

Choose a reason for hiding this comment

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

LGTM. one thing we can discuss and add later: Could we add more tests regarding buffered inference? Is it necessary?

@titu1994 titu1994 merged commit 2a61014 into NVIDIA:main Dec 6, 2022
@titu1994
Copy link
Collaborator Author

titu1994 commented Dec 6, 2022

Definitely need tests for buffered. I didn't add them before cause it was difficult to make it work but with the upgrades now it's easy to take a small pretrained model and add tests to overall + maybe unittests for the internals too.

@titu1994 titu1994 deleted the fix_asr_streaming branch December 6, 2022 19:06
andrusenkoau pushed a commit to andrusenkoau/NeMo that referenced this pull request Jan 5, 2023
* Fix log calculation

Signed-off-by: smajumdar <titu1994@gmail.com>

* Fix log calculation

Signed-off-by: smajumdar <titu1994@gmail.com>

* Fix log check

Signed-off-by: smajumdar <titu1994@gmail.com>

* Deepcopy the hypothesis to prevent inplace corrections

Signed-off-by: smajumdar <titu1994@gmail.com>

* Deepcopy the hypothesis to prevent inplace corrections

Signed-off-by: smajumdar <titu1994@gmail.com>

* Revert changes

Signed-off-by: smajumdar <titu1994@gmail.com>

* Add link to HF space to readme

Signed-off-by: smajumdar <titu1994@gmail.com>

Signed-off-by: smajumdar <titu1994@gmail.com>
Co-authored-by: fayejf <36722593+fayejf@users.noreply.github.com>
Signed-off-by: andrusenkoau <andrusenkoau@gmail.com>
titu1994 added a commit to titu1994/NeMo that referenced this pull request Mar 24, 2023
* Fix log calculation

Signed-off-by: smajumdar <titu1994@gmail.com>

* Fix log calculation

Signed-off-by: smajumdar <titu1994@gmail.com>

* Fix log check

Signed-off-by: smajumdar <titu1994@gmail.com>

* Deepcopy the hypothesis to prevent inplace corrections

Signed-off-by: smajumdar <titu1994@gmail.com>

* Deepcopy the hypothesis to prevent inplace corrections

Signed-off-by: smajumdar <titu1994@gmail.com>

* Revert changes

Signed-off-by: smajumdar <titu1994@gmail.com>

* Add link to HF space to readme

Signed-off-by: smajumdar <titu1994@gmail.com>

Signed-off-by: smajumdar <titu1994@gmail.com>
Co-authored-by: fayejf <36722593+fayejf@users.noreply.github.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