-
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
migration to PTL 2.0 for spellmapper model #7924
migration to PTL 2.0 for spellmapper model #7924
Conversation
Signed-off-by: Alexandra Antonova <[email protected]>
@athitten this change is similar to yours, could you review? |
@titu1994, can you review or assign somebody? |
@athitten can you review this? |
jenkins |
""" | ||
Called at the end of validation to aggregate outputs. | ||
:param outputs: list of individual outputs of each validation step. | ||
""" | ||
avg_loss = torch.stack([x['val_loss'] for x in outputs]).mean() | ||
avg_loss = torch.stack([x['val_loss'] for x in self.validation_step_outputs]).mean() |
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.
@bene-ges shouldn't we be using self.test_step_outputs
when called via on_test_epoch_end
. Maybe we want to check if we are doing val or test and use the outputs accordingly.
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.
@athitten , I fixed it in new commit
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.
I checked /NeMo/examples/nlp/spellchecking_asr_customization/run_training.sh
- it works ok.
@ericharper, why my jenkins hangs forever? I don't have rights to see on it |
nemo/collections/nlp/models/spellchecking_asr_customization/spellchecking_model.py
Fixed
Show resolved
Hide resolved
Signed-off-by: Alexandra Antonova <[email protected]>
…e-ges/NeMo into newptl_fix_validation_in_spellmapper
jenkins |
@titu1994, jenkins passed |
@athitten, @ericharper what about this pr? All checks passed |
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.
LGTM, thanks!
* migrate to PTL 2.0 Signed-off-by: Alexandra Antonova <[email protected]> * add difference between val and test Signed-off-by: Alexandra Antonova <[email protected]> * fix warning about potential uninitialized variable Signed-off-by: Alexandra Antonova <[email protected]> --------- Signed-off-by: Alexandra Antonova <[email protected]> Signed-off-by: Piotr Żelasko <[email protected]>
* migrate to PTL 2.0 Signed-off-by: Alexandra Antonova <[email protected]> * add difference between val and test Signed-off-by: Alexandra Antonova <[email protected]> * fix warning about potential uninitialized variable Signed-off-by: Alexandra Antonova <[email protected]> --------- Signed-off-by: Alexandra Antonova <[email protected]> Signed-off-by: Sasha Meister <[email protected]>
* migrate to PTL 2.0 Signed-off-by: Alexandra Antonova <[email protected]> * add difference between val and test Signed-off-by: Alexandra Antonova <[email protected]> * fix warning about potential uninitialized variable Signed-off-by: Alexandra Antonova <[email protected]> --------- Signed-off-by: Alexandra Antonova <[email protected]>
What does this PR do ?
migration to PTL 2.0 for spellmapper model, same as in #7597
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use this
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