Skip to content

Conversation

@Xreki
Copy link
Contributor

@Xreki Xreki commented Apr 18, 2023

PR types

Others

PR changes

Others

Description

  1. 修改paddle.static.amp.decorate新接口:
    • 添加master_weight参数,允许通过该接口启用multi_precision
    • use_dynamic_loss_scaling默认值改成None,含义为FP16默认为True、BF16默认为False
  2. 为几个接口增加文档和参数列表说明、代码示例。

@paddle-bot
Copy link

paddle-bot bot commented Apr 18, 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.

@Xreki Xreki changed the title [AMP] Add document for some apis. test=docs_preview [AMP] Allow to set master_weight through paddle.static.amp.decorate and add documents for some apis. Apr 24, 2023
@Xreki Xreki changed the title [AMP] Allow to set master_weight through paddle.static.amp.decorate and add documents for some apis. [AMP] Allow to enable multi_precision through paddle.static.amp.decorate and add documents for some apis. Apr 24, 2023
@Xreki Xreki requested a review from zhangting2020 April 24, 2023 06:49
Copy link
Contributor

@zhangting2020 zhangting2020 left a comment

Choose a reason for hiding this comment

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

LGTM

@Xreki Xreki merged commit 680460f into PaddlePaddle:develop Apr 24, 2023
@Xreki Xreki deleted the amp/unify_multi_precision branch April 24, 2023 07:12
lijialin03 pushed a commit to lijialin03/Paddle that referenced this pull request Apr 25, 2023
…ate and add documents for some apis. (PaddlePaddle#53012)

* Add document for some apis. test=docs_preview

* Allow to set master_weight in paddle.static.amp.decorate.

* Polish codes and add unittest.

* Refine docs.

* Remove the repetitive function.
zhangting2020 pushed a commit to zhangting2020/Paddle that referenced this pull request Apr 28, 2023
…ate and add documents for some apis. (PaddlePaddle#53012)

* Add document for some apis. test=docs_preview

* Allow to set master_weight in paddle.static.amp.decorate.

* Polish codes and add unittest.

* Refine docs.

* Remove the repetitive function.
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