Skip to content

fix the mixprecision bug when cumulate the grad#74893

Closed
zty-king wants to merge 1 commit intoPaddlePaddle:developfrom
zty-king:fix_the_mix_precision
Closed

fix the mixprecision bug when cumulate the grad#74893
zty-king wants to merge 1 commit intoPaddlePaddle:developfrom
zty-king:fix_the_mix_precision

Conversation

@zty-king
Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

D98F5172A9E802072AAA9658FD227FA4
D2A1D9AB15FF97A58A45D15EB3766F88
mix_precision在执行梯度累加时,此处需要将tmp_grad转化为float32,否则会出现精度不一致,导致报错。

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Aug 26, 2025

你的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 Aug 26, 2025
@Eddie-Wang1120
Copy link
Copy Markdown
Contributor

这个问题拉最新版本paddle还存在吗?

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@4d37570). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #74893   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         1           
  Branches           ?         0           
===========================================
  Hits               ?         1           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zty-king zty-king closed this Oct 11, 2025
@zty-king zty-king deleted the fix_the_mix_precision branch November 23, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants