Skip to content

Conversation

@lijialin03
Copy link
Contributor

PR Category

User Experience

PR Types

Improvements

Description

Pcard-66961
问题:使用L-BFGS优化器时,在部分机器上有案例的精度无法复现 PaddlePaddle/PaddleScience#1185
出现原因:在Nvidia的部分卡上默认使用TF32而不是FP32来加速计算,但是在部分场景下这会导致精度损失
c4e51671579d94bb5dac14cd59ad7200
复现方法:如上issue连接,使用A100机器,运行PaddleScience下biharmonic2d案例
修改方案:在L-BFGS优化器中添加warning,引导用户export NVIDIA_TF32_OVERRIDE=0
验证:如上Issue所示,用户已验证

@paddle-bot
Copy link

paddle-bot bot commented Jul 23, 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.

 update warning description Co-authored-by: HydrogenSulfate <490868991@qq.com>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@9c0d34c). Learn more about missing BASE report.

Additional details and impacted files
@@ Coverage Diff @@ ## develop #74188 +/- ## =========================================== Coverage ? 100.00% =========================================== Files ? 1 Lines ? 6 Branches ? 0 =========================================== Hits ? 6 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.
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

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

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 0fbc27b into PaddlePaddle:develop Jul 24, 2025
106 of 109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants