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

【AutoParallelism】Support lazy-guard for amp and fix some bug #61792

Merged

Conversation

heavyrain-lzy
Copy link
Contributor

@heavyrain-lzy heavyrain-lzy commented Feb 18, 2024

PR types

New features

PR changes

Others

Description

Pcard-76459
增加动半amp适配lazy-gurad,同时修复动半存在的bug。本PR具体内容如下:

  1. 通过增加ShareDataNoCheckWith使得动半AMP可以在PP策略和LazyGuard同时开启的情况下使用
  2. 解决动半amp在非计算rank上检查place出错的问题
  3. 解决动半在非计算rank打印tensor信息不准确的问题
  4. 解决reshard在amp场景下send和receiver的dtype不一致导致hang的问题

Copy link

paddle-bot bot commented Feb 18, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@heavyrain-lzy heavyrain-lzy merged commit 4f956a9 into PaddlePaddle:develop Feb 19, 2024
30 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.

None yet

2 participants