-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
【PIR API adaptor No.124】 optimizer.Lamb #58881
Conversation
@@ -783,6 +784,7 @@ def get_optimizer_dygraph(self, parameter_list): | |||
) | |||
return optimizer | |||
|
|||
@test_with_pir_api |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
test/legacy_test/test_lambv2_op.py
Outdated
@@ -200,6 +202,7 @@ def test_lamb_op(self): | |||
|
|||
|
|||
class TestLambOpMultiPrecision(unittest.TestCase): | |||
@test_with_pir_api |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
还貌似遗漏了 test/legacy_test/test_lamb_op.py 的单测适配? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Co-authored-by: Lu Qi <61354321+MarioLulab@users.noreply.github.com>
Co-authored-by: Lu Qi <61354321+MarioLulab@users.noreply.github.com>
需要 pre-commit 一下 |
Sorry to inform you that dce3ec0's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_lamb_op_with_multi_steps 单测下的所有 base.Program() 麻烦改成 paddle.static.Program()
Co-authored-by: Lu Qi <61354321+MarioLulab@users.noreply.github.com>
Co-authored-by: Lu Qi <61354321+MarioLulab@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work~ 但是遇到了不兼容的问题,需要补充到 pr 描述里
test/legacy_test/test_lambv2_op.py
Outdated
@@ -266,6 +270,7 @@ def get_parameter(var): | |||
np.testing.assert_array_equal(bias_np, get_parameter(bias)) | |||
return weight_np, bias_np | |||
|
|||
@test_with_pir_api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先取消此单测,因为混合精度单测涉及 class OptimizerWithMixedPrecision
,该 class 暂不支持 pir 模式。请在 pr 描述里补充说明一下这个情况,并更新单测覆盖率~
需要 pre-commit 一下 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
lamb 的混合精度单测涉及 class OptimizerWithMixedPrecision,该 class 暂不支持 pir 模式。请在 pr 描述里补充说明一下这个情况,并更新单测覆盖率~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦更新下单测覆盖率~
PR types
Others
PR changes
APIs
Description
#58067 124