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

support ema optimizer in sharding optimizers #39860

Merged
merged 1 commit into from
Mar 8, 2022
Merged

support ema optimizer in sharding optimizers #39860

merged 1 commit into from
Mar 8, 2022

Conversation

sljlp
Copy link
Contributor

@sljlp sljlp commented Feb 23, 2022

PR types

New features

PR changes

APIs

Describe

When using EMA in sharding optimziers, the trainers whose ids are not 0 don't save EMA vars.
However, EMA parameters need to be saved in every trainer.
Now the feature is supported by add a member "_ema_0" in checks list in function is_opt_vars.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Mar 3, 2022

Sorry to inform you that 4847a40's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

Copy link
Member

@ForFishes ForFishes left a comment

Choose a reason for hiding this comment

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

LGTM

@ForFishes ForFishes merged commit e548f65 into PaddlePaddle:develop Mar 8, 2022
@sljlp sljlp deleted the ema_opt_sharding branch July 22, 2022 10:31
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.

2 participants