Skip to content

[Update] test matrix exp tol for mac m4 #72482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 27, 2025

Conversation

megemini
Copy link
Contributor

PR Category

User Experience

PR Types

Others

Description

修改 matrix_exp 在 mac 环境下的 rtol/atol ,从 'float64': 1e-15 改为 'float64': 1e-12

这个算子是纯 python 实现的,因此其精度基本上是由基础的底层算子决定。

当时添加这个算子的时候还没有 mac m4 ,但是应该在其他 mac 环境中测试过,是没啥问题的。

由此,#72468 (comment) 中提到的精度问题,有可能的原因:

  • matrix_exp 添加至目前,底层的算子有改动,影响了精度,但是当时没有 m4 环境,所以当时也没有发现。
  • 或者,底层依赖的 mac 基础算子,在 mac m4 上本身有精度变动导致。

这个算子涉及到的数值运算较多,对测试环境还是比较敏感的,如 win32 只能到 'float64': 1e-04 ~

个人感觉降低精度影响不大 ~ 看看降低精度要求是否可以通过 CI 测试,研发帮忙再评估一下影响看是否可以放行 ? ~

关联 #59715 #72468 (comment)

@cxxly @tianshuo78520a @luotao1

Copy link

paddle-bot bot commented Apr 25, 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 Apr 25, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Apr 25, 2025
Copy link
Collaborator

@tianshuo78520a tianshuo78520a left a comment

Choose a reason for hiding this comment

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

测试了PR,可以修复,CI通过就可以合入,感谢帮助!
https://github.com/PaddlePaddle/Paddle/actions/runs/14658799036/job/41138767989?pr=72115

@tianshuo78520a tianshuo78520a merged commit c305e9b into PaddlePaddle:develop Apr 27, 2025
40 of 41 checks passed
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
* [Update] test matrix exp tol for mac m4

* [Update] test matrix exp tol for mac m4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants