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

Dgalvez/fix greedy batch strategy name #9242

Closed
wants to merge 3 commits into from

Conversation

galv
Copy link
Collaborator

@galv galv commented May 17, 2024

What does this PR do ?

Change the name of greedy_batched CTC decoding strategy to greedy_batch.

Fix a spurious warning.

Collection: ASR

Changelog

  1. Lazily warn about using greedy strategy instead of greedy_batch strategy.

Previously, the warning would often run spuriously, since several
existing code paths simply call "change_decoding_strategy()" after
having first initialized a Module, rather than changing the config
before initializing the Module. This can be confusing.

The only problem I can see with this is that using logging inside a
forward() method might interfer with some compiler toolkits like
Torchscript or thunder.compile. Presumably it would be easy to add a
conditional statement to avoid this statement in a compiler context if
necessary.

  1. Change "greedy_batched" CTC decoding strategy to "greedy_batch

This will be consistent with the RNN-T decoding strategy named
"greedy_batch".

Usage

N/A

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".

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

galv added 2 commits May 17, 2024 13:41
strategy.

Previously, the warning would often run spuriously, since several
existing code paths simply call "change_decoding_strategy()" after
having first initialized a Module, rather than changing the config
before initializing the Module. This can be confusing.

The only problem I can see with this is that using logging inside a
forward() method might interfer with some compiler toolkits like
Torchscript or thunder.compile. Presumably it would be easy to add a
conditional statement to avoid this statement in a compiler context if
necessary.

Signed-off-by: Daniel Galvez <[email protected]>
This will be consistent with the RNN-T decoding strategy named
"greedy_batch".

Signed-off-by: Daniel Galvez <[email protected]>
@galv galv requested review from titu1994 and nithinraok May 17, 2024 20:44
@github-actions github-actions bot added the ASR label May 17, 2024
nithinraok
nithinraok previously approved these changes May 17, 2024
Copy link
Collaborator

@nithinraok nithinraok left a comment

Choose a reason for hiding this comment

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

LGTM

@nithinraok
Copy link
Collaborator

pls send PR to 2.0.0rc0

@galv galv changed the base branch from main to r2.0.0rc0 May 17, 2024 20:53
@galv galv dismissed nithinraok’s stale review May 17, 2024 20:53

The base branch was changed.

@galv galv changed the base branch from r2.0.0rc0 to main May 17, 2024 20:53
@galv
Copy link
Collaborator Author

galv commented May 17, 2024

Closed in favor of #9243, so that this changes incorporated in r2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants