Skip to content

Conversation

@dynamicheart
Copy link
Contributor

@dynamicheart dynamicheart commented Jun 27, 2024

PR Category

Custom Device

PR Types

Bug fixes

Description

  • Fix amp autocast typo
  • The xpu_version from get_xpu_device_version() starts from 0(XPU1)
  • Now if the XPU device does not support AMP, it will print the following log:
/root/miniconda/lib/python3.8/site-packages/paddle/amp/auto_cast.py:541: UserWarning: XPUVersion.XPU2 does not support bfloat16 amp.

@paddle-bot
Copy link

paddle-bot bot commented Jun 27, 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.

ZibinGuo

This comment was marked as outdated.

Copy link
Contributor

@ZibinGuo ZibinGuo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@XiaociZhang XiaociZhang left a comment

Choose a reason for hiding this comment

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

LGTM

@QingshuChen QingshuChen merged commit 343a38e into PaddlePaddle:develop Jul 1, 2024
@houj04 houj04 added the XPU label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants