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

【PIR API adaptor No.182】Migrate paddle.optimizer.RMSProp into pir #60350

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

ooooo-create
Copy link
Contributor

PR types

Others

PR changes

APIs

Description

link #58067
PIR API 推全升级
将 paddle.optimizer.RMSProp 迁移升级至 pir,并更新单测
单测覆盖率: 3/6

Copy link

paddle-bot bot commented Dec 26, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 26, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Dec 26, 2023
@MarioLulab
Copy link
Contributor

RMSProp 依赖于 DataFeeder ,但目前 DataFeeder 还没有适配 pir 模式,这个我正在适配,有进展了我会在这个 pr 下及时 comment~

@MarioLulab
Copy link
Contributor

对 DataFeeder 的适配在 #60434 中了,可以关注下。等 #60434 合并后再继续推动当前 pr

@MarioLulab
Copy link
Contributor

对 DataFeeder 的适配在 #60434 中已完成。可以继续推进当前 pr 的合入了~

Copy link

paddle-ci-bot bot commented Jan 4, 2024

Sorry to inform you that ce60485's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@MarioLulab
Copy link
Contributor

请问 o 师傅最近还有时间来推进这个 pr 吗?如果没空的话就由我来推进吧 😃 ?

@ooooo-create
Copy link
Contributor Author

请问 o 师傅最近还有时间来推进这个 pr 吗?如果没空的话就由我来推进吧 😃 ?

有时间~

@ooooo-create
Copy link
Contributor Author

有个地方会报错 test_main的时候

1543: Traceback (most recent call last):
1543:   File "/paddle/build/test/legacy_test/test_rmsprop_op.py", line 580, in test_main
1543:     output1_pir = self.pir_rmsprop_mp(use_amp=True, mp=True)
1543:   File "/paddle/build/test/legacy_test/test_rmsprop_op.py", line 529, in pir_rmsprop_mp
1543:     optimizer.minimize(loss)
1543:   File "/paddle/build/python/paddle/static/amp/decorator.py", line 668, in minimize
1543:     scaled_params_grads = self.backward(
1543:   File "/paddle/build/python/paddle/static/amp/decorator.py", line 231, in backward
1543:     with program_guard(self._train_program, startup_program):
1543:   File "/usr/lib/python3.9/contextlib.py", line 119, in __enter__
1543:     return next(self.gen)
1543:   File "/paddle/build/python/paddle/base/framework.py", line 7863, in program_guard
1543:     check_type(
1543:   File "/paddle/build/python/paddle/base/data_feeder.py", line 203, in check_type
1543:     raise TypeError(
1543: TypeError: The type of 'main_program' in paddle.static.program_guard must be <class 'paddle.base.framework.Program'>, but received <class 'paddle.base.libpaddle.pir.Program'>

@0x45f 0x45f closed this Jan 23, 2024
@0x45f 0x45f reopened this Jan 23, 2024
@0x45f 0x45f merged commit 877a1c8 into PaddlePaddle:develop Jan 23, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants