Skip to content

Conversation

@Baibaifan
Copy link
Contributor

@Baibaifan Baibaifan commented Aug 30, 2021

PR types

New features

PR changes

OPs

Describe

Add npu LossScaling min value
We added an environment variable "FLAGS_min_loss_scaling" to set the minimum value of updated loss scaling tensor.
If you want to use, you can export FLAGS_min_loss_scaling=xxx before your run program.

image

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@Baibaifan Baibaifan force-pushed the add_loss_scaling_test branch from b5dabf7 to 72e331f Compare August 30, 2021 12:26
Copy link
Contributor

Choose a reason for hiding this comment

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

这些值要显式的赋值一下。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Baibaifan Baibaifan force-pushed the add_loss_scaling_test branch from 72e331f to 20cd051 Compare August 31, 2021 06:02
@Baibaifan Baibaifan force-pushed the add_loss_scaling_test branch from 20cd051 to aa09ab3 Compare August 31, 2021 06:23
gongweibao
gongweibao previously approved these changes Aug 31, 2021
Copy link
Contributor

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

LGTM
修改一下PR的标题,cherrypick到ascendrelease分支!

@Baibaifan Baibaifan changed the title add_loss_scaling_test add update_loss_scaling npu min value Aug 31, 2021
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@phlrain phlrain self-requested a review September 1, 2021 13:52
@wangxicoding wangxicoding merged commit 280d742 into PaddlePaddle:develop Sep 2, 2021
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.

5 participants