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

migration to PTL 2.0 for spellmapper model #7924

Merged
merged 14 commits into from
Dec 28, 2023

Conversation

bene-ges
Copy link
Contributor

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

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

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

  • Related to # (issue)

Signed-off-by: Alexandra Antonova <[email protected]>
@bene-ges
Copy link
Contributor Author

@athitten this change is similar to yours, could you review?

@bene-ges
Copy link
Contributor Author

@titu1994, can you review or assign somebody?

@ericharper
Copy link
Collaborator

@athitten can you review this?

@ericharper
Copy link
Collaborator

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()
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

@bene-ges
Copy link
Contributor Author

bene-ges commented Dec 4, 2023

@ericharper, why my jenkins hangs forever? I don't have rights to see on it

@titu1994
Copy link
Collaborator

jenkins

@bene-ges
Copy link
Contributor Author

@titu1994, jenkins passed

@bene-ges
Copy link
Contributor Author

@athitten, @ericharper what about this pr? All checks passed

Copy link
Collaborator

@athitten athitten left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@athitten athitten merged commit 4fd1c74 into NVIDIA:main Dec 28, 2023
11 checks passed
pzelasko pushed a commit to pzelasko/NeMo that referenced this pull request Jan 3, 2024
* 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]>
ssh-meister pushed a commit to ssh-meister/NeMo that referenced this pull request Feb 15, 2024
* 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]>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants