-
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 ptl_bugs in slu_models.py #7689
fix ptl_bugs in slu_models.py #7689
Conversation
Signed-off-by: Seonghun Noh <jzi040941@naver.com>
for more information, see https://pre-commit.ci
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.
Thanks for the fix~!
Could you please also change the trainer.strategy=ddp
to trainer.strategy=ddp_find_unused_parameters_true
in the yaml file? It was giving the following error when I ran with ddp
:
RuntimeError: It looks like your LightningModule has parameters that were not used in producing the loss returned by training_step. If this is intentional, you must enable the detection of unused parameters in DDP, either by setting the string value `strategy='ddp_find_unused_parameters_true'` or by setting the flag in the strategy with `strategy=DDPStrategy(find_unused_parameters=True)`.
@jzi040941 did you experience the same issue?
I'll approve once this is resolved.
Signed-off-by: Seonghun <jzi040941@naver.com>
@stevehuang52 Yes, I had same issue with I updated the yaml file, thanks~ |
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~!
* fix ptl_bugs in slu_models.py Signed-off-by: Seonghun Noh <jzi040941@naver.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change strategy to ddp_find_unused_parameters_true in slu example yaml Signed-off-by: Seonghun <jzi040941@naver.com> --------- Signed-off-by: Seonghun Noh <jzi040941@naver.com> Signed-off-by: Seonghun <jzi040941@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com>
* fix ptl_bugs in slu_models.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change strategy to ddp_find_unused_parameters_true in slu example yaml --------- Signed-off-by: Seonghun Noh <jzi040941@naver.com> Signed-off-by: Seonghun <jzi040941@naver.com> Co-authored-by: Seonghun Noh <jzi040941@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com>
* fix ptl_bugs in slu_models.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change strategy to ddp_find_unused_parameters_true in slu example yaml --------- Signed-off-by: Seonghun Noh <jzi040941@naver.com> Signed-off-by: Seonghun <jzi040941@naver.com> Co-authored-by: Seonghun Noh <jzi040941@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com>
* fix ptl_bugs in slu_models.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change strategy to ddp_find_unused_parameters_true in slu example yaml --------- Signed-off-by: Seonghun Noh <jzi040941@naver.com> Signed-off-by: Seonghun <jzi040941@naver.com> Co-authored-by: Seonghun Noh <jzi040941@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com> Signed-off-by: Piotr Żelasko <petezor@gmail.com>
* fix ptl_bugs in slu_models.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change strategy to ddp_find_unused_parameters_true in slu example yaml --------- Signed-off-by: Seonghun Noh <jzi040941@naver.com> Signed-off-by: Seonghun <jzi040941@naver.com> Co-authored-by: Seonghun Noh <jzi040941@naver.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: He Huang (Steve) <105218074+stevehuang52@users.noreply.github.com>
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
This PR added fixes for PTL2.0 related SLU bugs in r1.21.0: Val metrics logging, None dataloader issue
Collection:
ASR
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?
@stevehuang52 @titu1994
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