-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Riva and k2 ASR WFST decoding #8921
Conversation
for more information, see https://pre-commit.ci
jenkins |
|
||
self._set_decoding_mode(decoding_mode) | ||
self._set_decoder_config(config) | ||
self._init_decoder() |
Check warning
Code scanning / CodeQL
`__init__` method calls overridden method Warning
_init_decoder
method RivaGpuWfstDecoder._init_decoder
assert len(log_probs) == len(reference_texts) | ||
word_ids = [[self._word2id[w] for w in text.split()] for text in reference_texts] | ||
counts = torch.tensor([len(wid) for wid in word_ids]) | ||
decoding_mode_backup = self.decoding_mode |
Check notice
Code scanning / CodeQL
Unused local variable Note
if istate > 0: | ||
for ostate in kaldifst.StateIterator(fst): | ||
if ostate > 0 and istate != ostate: | ||
label = token_ids[ostate] if ostate > 0 else blank_id |
Check warning
Code scanning / CodeQL
Redundant comparison Warning
this condition
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
This PR was closed because it has been inactive for 7 days since being marked as stale. |
What does this PR do ?
Adds Riva and k2 WFST decoding options for ASR inference.
if you are reading this, it means the PR is not finished.
What's left is:
Collection: ASR
Changelog
Usage
# Add a code snippet demonstrating how to use this
Jenkins CI
To run Jenkins, a NeMo User with write access must comment
jenkins
on the PR.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