-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 Canary not stripping prompt from reference + more test coverage #9987
Conversation
… coverage Signed-off-by: Piotr Żelasko <petezor@gmail.com>
Signed-off-by: Piotr Żelasko <petezor@gmail.com>
Signed-off-by: Piotr Żelasko <petezor@gmail.com>
nemo/collections/asr/parts/submodules/multitask_greedy_decoding.py
Dismissed
Show dismissed
Hide dismissed
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.
Left comments, also for sanity checking, can you run a toy model against a stable release and this branch just to ensure nothing pops up?
ac30118
to
3008378
Compare
from torch import nn as nn | ||
|
||
from nemo.collections.asr.parts.submodules.classifier import Classifier | ||
from nemo.collections.common.parts import MultiLayerPerceptron | ||
from nemo.core.classes import typecheck | ||
from nemo.core.neural_types import LogitsType, LogprobsType, NeuralType | ||
from nemo.core.neural_types import ChannelType, FloatType, LogitsType, LogprobsType, NeuralType |
Check notice
Code scanning / CodeQL
Unused import Note
@@ -75,6 +85,7 @@ def _one_step_forward( | |||
encoder_input_mask=None, | |||
decoder_mems_list=None, | |||
pos=0, | |||
need_scores: bool = True, |
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.
Can we change the variable to return_scores
to be consistent with other commands like this?
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.
One name change, fix import flags from the CI.
Btw, how are you feeding temperature to the MLP now?
OK
It's applied directly in |
Signed-off-by: Piotr Żelasko <petezor@gmail.com>
…VIDIA#9987) * Fix not stripping Canary prompt from the reference and add extra test coverage Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix transcripts for Canary containing EOS Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix validation_pass Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Review Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Revie 2 Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix non-deterministic unit test assertions Signed-off-by: Piotr Żelasko <petezor@gmail.com> --------- Signed-off-by: Piotr Żelasko <petezor@gmail.com> Signed-off-by: adityavavre <aditya.vavre@gmail.com>
…9987) * Fix not stripping Canary prompt from the reference and add extra test coverage Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix transcripts for Canary containing EOS Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix validation_pass Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Review Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Revie 2 Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix non-deterministic unit test assertions Signed-off-by: Piotr Żelasko <petezor@gmail.com> --------- Signed-off-by: Piotr Żelasko <petezor@gmail.com>
…VIDIA#9987) * Fix not stripping Canary prompt from the reference and add extra test coverage Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix transcripts for Canary containing EOS Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix validation_pass Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Review Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Revie 2 Signed-off-by: Piotr Żelasko <petezor@gmail.com> * Fix non-deterministic unit test assertions Signed-off-by: Piotr Żelasko <petezor@gmail.com> --------- Signed-off-by: Piotr Żelasko <petezor@gmail.com> Signed-off-by: Hainan Xu <hainanx@nvidia.com>
What does this PR do ?
TL;DR: fix for a bug I accidentally introduced in #9901
Context:
Collection: ASR
Changelog
Usage
# Add a code snippet demonstrating how to use this
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