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

[cherry-pick]Support FP16 in HybridParallel and Fix bugs in HybridOptimizer #36707

Merged
merged 12 commits into from
Oct 26, 2021
Merged

[cherry-pick]Support FP16 in HybridParallel and Fix bugs in HybridOptimizer #36707

merged 12 commits into from
Oct 26, 2021

Conversation

haohongxiang
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

[cherry-pick]Support FP16 in HybridParallel and Fix bugs in HybridOptimizer

haohongxiang and others added 8 commits October 25, 2021 20:18
* fix bugs in HybridParallelClipGrad of hybrid_parallel_optimizer

* update

* update
* fix calling bug of HybridParallelClipGrad

* fix bugs of HybridParallelClipGrad

* add unittest of pp with HybridParallelClipGrad

* fix bugs in mp_layers.py

* update

* fix bugs in pp_layers.py

* update
* add no_sync for parameters sync

* add pipeline for moe
* [HybridParallel]Support fp16 in dygraph hybrid parallel

* update

* update

* update for recompute

* add unittest of pp+fp16

* add unittest of recompute+fp16

* update

* modify ut
* fix bugs of ClipGradByGlobalNorm

* add unittests

* add unittests
* support ClipGradByGlobalNorm in sharding

* support ClipGradByGlobalNorm in sharding

* test=allcase
@paddle-bot-old
Copy link

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

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

@fuyinno4 fuyinno4 merged commit 5b357e0 into PaddlePaddle:release/2.2 Oct 26, 2021
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.

5 participants