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

[bug fix] fix create_optimizer_and_scheduler for auto_parallel #8937

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

zhangyuqin1998
Copy link
Contributor

@zhangyuqin1998 zhangyuqin1998 commented Aug 14, 2024

PR types

Bug fixes

PR changes

Others

Description

自动并行下,create_optimizer_and_scheduler 会调用两次,导致optimizer中的lr_schedule和trainer.lr_schedule不一致,导致lr_schedule.step()时对optimizer未产生影响,导致学习率一直为0

Copy link

paddle-bot bot commented Aug 14, 2024

Thanks for your contribution!

Copy link
Collaborator

@From00 From00 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 55.03%. Comparing base (82ea8bc) to head (89ccea9).
Report is 3 commits behind head on develop.

Files Patch % Lines
paddlenlp/trainer/trainer.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8937      +/-   ##
===========================================
- Coverage    55.05%   55.03%   -0.02%     
===========================================
  Files          635      635              
  Lines        99414    99437      +23     
===========================================
  Hits         54730    54730              
- Misses       44684    44707      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

@ZHUI ZHUI merged commit 9b76eb2 into PaddlePaddle:develop Aug 15, 2024
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants