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

【paddle.fleet】use the Floyd algorithm to find max path of meta optimizer #27867

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

wangxicoding
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

Use the Floyd algorithm to find the max path of meta optimizer.
For example, if we have a meta a-->b-->c, a-->c, we can get the max path a-->b-->c.
Or if we have a meta a-->b-->c, a-->d, b-->d, we can get the max path a-->b-->d.

In addition to the strategies given in the #27643, the following strategies can also be combined.

Now the following strategies that can be combinedimport paddle.distributed.fleet as fleet
strategy = fleet.DistributedStrategy()

# 9. amp + recompute + lars
strategy.amp = True
strategy.recompute = True
strategy.lars = True

# 10. amp + recompute + lamb
strategy.amp = True
strategy.recompute = True
strategy.lamb = True

@paddle-bot-old
Copy link

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

@wangxicoding wangxicoding changed the title use the Floyd algorithm to find meta optimizer max path, test=develop 【paddle.fleet】use the Floyd algorithm to find max path of meta optimizer Oct 12, 2020
Copy link
Member

@guru4elephant guru4elephant left a comment

Choose a reason for hiding this comment

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

LGTM

@wangxicoding wangxicoding merged commit 50619cd into PaddlePaddle:develop Oct 13, 2020
@wangxicoding wangxicoding deleted the fleet_meta_max_path branch November 26, 2020 09:13
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