Skip to content

【paddle.fleet】fleet support non_distributed training in dygraph mode#27714

Merged
danleifeng merged 3 commits intoPaddlePaddle:developfrom
danleifeng:dygraph_fleet_single
Sep 30, 2020
Merged

【paddle.fleet】fleet support non_distributed training in dygraph mode#27714
danleifeng merged 3 commits intoPaddlePaddle:developfrom
danleifeng:dygraph_fleet_single

Conversation

@danleifeng
Copy link
Contributor

@danleifeng danleifeng commented Sep 29, 2020

PR types

New features

PR changes

APIs

Describe

fleet support non_distributed training in dygraph mode

after this PR, we can use python train.py to launch single_card dygraph training.

@paddle-bot-old
Copy link

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

@gavin1332
Copy link
Collaborator

多机回退有一个要素是:单卡和多卡共享一套代码,但是上述代码的改动仅涉及单卡程序支持多卡的fleet初始化,还没有完全实现单卡代码和多卡代码的对齐,比如apply_collective_gradient和scale_loss的调用在样例代码里单卡和多卡不一致。

@danleifeng
Copy link
Contributor Author

多机回退有一个要素是:单卡和多卡共享一套代码,但是上述代码的改动仅涉及单卡程序支持多卡的fleet初始化,还没有完全实现单卡代码和多卡代码的对齐,比如apply_collective_gradient和scale_loss的调用在样例代码里单卡和多卡不一致。

apply_collective_gradient and scale_loss apis have been removed yesterday.
PR: #27603

Copy link
Collaborator

@gavin1332 gavin1332 left a comment

Choose a reason for hiding this comment

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

LGTM

@danleifeng danleifeng requested a review from kolinwei September 30, 2020 03:22
@danleifeng danleifeng merged commit a01bc6b into PaddlePaddle:develop Sep 30, 2020
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