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 save/load]Migrate paddle.save, paddle.load and add program state_dict to pir #63957

Merged
merged 11 commits into from Apr 29, 2024

Conversation

changeyoung98
Copy link
Contributor

@changeyoung98 changeyoung98 commented Apr 28, 2024

PR Category

Others

PR Types

Others

Description

pcard-67164
Migrate paddle.save, paddle.load and add program state_dict to pir

  • 适配paddle.save和paddle.load PIR分支
  • 为program在pybind侧新增.state_dict和.set_state_dict功能
  • 开启test_static_save_load中关于state_dict的测试
  • 开启test_paddle_save_load中关于paddle.save、paddle.load以及state_dict相关的测试。
  • 新增set_value 函数,替换掉单测中旧IR var.set_value,原因是新IR下value不应适配此功能

Copy link

paddle-bot bot commented Apr 28, 2024

你的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.

Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 left a comment

Choose a reason for hiding this comment

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

LGTM

@changeyoung98 changeyoung98 merged commit 0474465 into PaddlePaddle:develop Apr 29, 2024
30 checks passed
runzhech pushed a commit to runzhech/Paddle that referenced this pull request Apr 30, 2024
…_dict to pir (PaddlePaddle#63957)

* static.save and static.load passed

* refine

* fix pybind stop_gradient

* fix CI bug

* add create_loaded_params

* fix CI bug

* refine

* migrate paddle.save and paddle.load and add program state_dict to pir

* fix
runzhech pushed a commit to runzhech/Paddle that referenced this pull request Apr 30, 2024
…_dict to pir (PaddlePaddle#63957)

* static.save and static.load passed

* refine

* fix pybind stop_gradient

* fix CI bug

* add create_loaded_params

* fix CI bug

* refine

* migrate paddle.save and paddle.load and add program state_dict to pir

* fix
@changeyoung98 changeyoung98 deleted the czy-param branch April 30, 2024 08:51
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 6, 2024
…_dict to pir (PaddlePaddle#63957)

* static.save and static.load passed

* refine

* fix pybind stop_gradient

* fix CI bug

* add create_loaded_params

* fix CI bug

* refine

* migrate paddle.save and paddle.load and add program state_dict to pir

* fix
co63oc pushed a commit to co63oc/Paddle that referenced this pull request May 10, 2024
…_dict to pir (PaddlePaddle#63957)

* static.save and static.load passed

* refine

* fix pybind stop_gradient

* fix CI bug

* add create_loaded_params

* fix CI bug

* refine

* migrate paddle.save and paddle.load and add program state_dict to pir

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

None yet

2 participants