-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fast N-Gram LM on GPU + greedy decoding (RNN-T, TDT, CTC) #10989
base: main
Are you sure you want to change the base?
Conversation
# for i, label in enumerate(labels.tolist()): | ||
# if label != self._blank_index: | ||
# batch_lm_states[i] = batch_lm_states_candidates[i][label] |
Check notice
Code scanning / CodeQL
Commented-out code Note
# for i, label in enumerate(labels.tolist()): | ||
# if label != self._blank_index: | ||
# batch_lm_states[i] = batch_lm_states_candidates[i][label] |
Check notice
Code scanning / CodeQL
Commented-out code Note
7283fa1
to
442081f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Signed-off-by: Vladimir Bataev <[email protected]>
442081f
to
0e24533
Compare
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: artbataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: artbataev <[email protected]>
beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base. Your code was analyzed with PyLint. The following annotations have been identified:
Mitigation guide:
By applying these rules, we reduce the occurance of this message in future. Thank you for improving NeMo's documentation! |
beep boop 🤖: 🚨 The following files must be fixed before merge! Your code was analyzed with PyLint. The following annotations have been identified:
Mitigation guide:
By applying these rules, we reduce the occurance of this message in future. Thank you for improving NeMo's documentation! |
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. |
Signed-off-by: Vladimir Bataev <[email protected]>
from collections.abc import Iterator | ||
from dataclasses import InitVar, dataclass, field | ||
from pathlib import Path | ||
from typing import List, NamedTuple, Optional, cast |
Check notice
Code scanning / CodeQL
Unused import Note
Import of 'List' is not used.
from tqdm.auto import tqdm | ||
|
||
from nemo.collections.common.parts import NEG_INF | ||
from nemo.core import ModelPT, PretrainedModelInfo |
Check notice
Code scanning / CodeQL
Unused import Note
|
||
self._final_resolved = False | ||
|
||
def list_available_models(cls): |
Check notice
Code scanning / CodeQL
First parameter of a method is not named 'self' Note
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: artbataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
Signed-off-by: Vladimir Bataev <[email protected]>
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Collection: [Note which collection this PR will affect]
Changelog
Usage
Step 1: Build LM for ASR Model (model-dependent) on domain texts
Step 2: Run Decoding with LM (arpa)
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:
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