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

[Semi-Auto]Add master_grad for semi-auto parallel in AMP #58706

Merged
merged 5 commits into from
Nov 9, 2023

Conversation

ForFishes
Copy link
Member

@ForFishes ForFishes commented Nov 6, 2023

PR types

Breaking changes

PR changes

Others

Description

[Distributed]Add utest for semi-auto parallel
Pcard-73145

@ForFishes ForFishes changed the title [Distributed]Add utest for semi-auto parallel [Semi-Auto]Add master_grad for semi-auto parallel in AMP Nov 6, 2023
from paddle import nn


class TestSimpleNetWithAmpForSemiAutoParallel(TestSimpleNetForSemiAutoParallel):
Copy link
Contributor

Choose a reason for hiding this comment

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

和amp那个单测重名,且内容重合度也比较高,如果主要是master_grad参数的变化,要不要整理复用一下代码

Copy link
Member Author

Choose a reason for hiding this comment

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

i will merge them together.

@@ -54,7 +54,7 @@ def check_results(
)
self.assertEqual(
int(op_list['transfer_dtype'].split(',')[0]),
total_steps + total_steps * 2,
total_steps + total_steps * 2 + 2, # add 2 for adam's master grad
Copy link
Contributor

Choose a reason for hiding this comment

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

这里+2要不要再多写一些注释

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, i fill fix it.

@ForFishes ForFishes closed this Nov 8, 2023
@ForFishes ForFishes reopened this Nov 8, 2023
Copy link
Contributor

@XieYunshen XieYunshen left a comment

Choose a reason for hiding this comment

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

LGTM for set_tests_properties(test_semi_auto_parallel_in_framework PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" TIMEOUT 300)

@ForFishes ForFishes merged commit c412542 into PaddlePaddle:develop Nov 9, 2023
@ForFishes ForFishes deleted the add_master_grad branch November 9, 2023 16:21
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
…e#58706)

* fix confilct

* fix confilct

* fix confilct

* fix confilct

* fix confilct
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
…e#58706)

* fix confilct

* fix confilct

* fix confilct

* fix confilct

* fix confilct
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.

4 participants