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 BF16 training for sharding and dp #46846

Merged
merged 18 commits into from
Oct 17, 2022

Conversation

GhostScreaming
Copy link
Contributor

@GhostScreaming GhostScreaming commented Oct 10, 2022

PR types

New features

PR changes

OPs

Describe

Support bfloat16 datatype for reducer operator, fill kernel and sharding strategy.

@paddle-bot
Copy link

paddle-bot bot commented Oct 10, 2022

你的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.

@paddle-bot
Copy link

paddle-bot bot commented Oct 10, 2022

✅ This PR's description meets the template requirements!
Please wait for other CI results.

sneaxiy
sneaxiy previously approved these changes Oct 14, 2022
Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

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

LGTM.

@sneaxiy sneaxiy changed the title Fix bfloat16 Support BF16 training for sharding Oct 17, 2022
@sneaxiy sneaxiy merged commit 0b39b24 into PaddlePaddle:develop Oct 17, 2022
@sneaxiy sneaxiy changed the title Support BF16 training for sharding Support BF16 training for sharding and dp Oct 17, 2022
GhostScreaming added a commit to GhostScreaming/Paddle that referenced this pull request Oct 18, 2022
* Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
is wrong.

* support pure bfloat16

* support bf16 linear

* update PR to pass CI

* tiny fix where_grad_kernel.cu

* Support bfloat16 type for reducer and sharding.

* Fix some bug.

* Polish code.

* Polise code.

* Add bfloat16 datatype in fill_grad kernels.

Co-authored-by: sneaxiy <sneaxiy@126.com>
GhostScreaming added a commit to GhostScreaming/Paddle that referenced this pull request Oct 21, 2022
GhostScreaming added a commit to GhostScreaming/Paddle that referenced this pull request Oct 21, 2022
* Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
is wrong.

* support pure bfloat16

* support bf16 linear

* update PR to pass CI

* tiny fix where_grad_kernel.cu

* Support bfloat16 type for reducer and sharding.

* Fix some bug.

* Polish code.

* Polise code.

* Add bfloat16 datatype in fill_grad kernels.

Co-authored-by: sneaxiy <sneaxiy@126.com>
XiaoguangHu01 pushed a commit that referenced this pull request Oct 24, 2022
* Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
is wrong.

* support pure bfloat16

* support bf16 linear

* update PR to pass CI

* tiny fix where_grad_kernel.cu

* Support bfloat16 type for reducer and sharding.

* Fix some bug.

* Polish code.

* Polise code.

* Add bfloat16 datatype in fill_grad kernels.

Co-authored-by: sneaxiy <sneaxiy@126.com>

Co-authored-by: sneaxiy <sneaxiy@126.com>
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