Skip to content

[SOT] Support recursive fallback in psdb and add ut for psdb #72381

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

Conversation

SigureMo
Copy link
Member

PR Category

Execute Infrastructure

PR Types

Devs

Description

psdb.fallback 支持 recursive 参数,以确保递归 fallback,同时添加相关单测

@SigureMo SigureMo requested review from zrr1999 and gouzil as code owners April 21, 2025 04:50
Copy link

paddle-bot bot commented Apr 21, 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.

@SigureMo SigureMo requested review from Copilot and removed request for zrr1999 and gouzil April 21, 2025 04:51
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the fallback behavior in psdb by adding a recursive parameter and updates the associated unit tests and opcode translator error handling.

  • Added unit tests in test/sot/test_psdb.py to verify both recursive and non-recursive fallback behaviors.
  • Updated psdb.fallback in python/paddle/jit/sot/psdb.py to accept a recursive parameter.
  • Modified the opcode translator in python/paddle/jit/sot/opcode_translator/executor/variables/callable.py to include the recursive parameter in fallback error messages.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/sot/test_psdb.py Added tests covering various fallback scenarios and breakgraph behaviors.
python/paddle/jit/sot/psdb.py Revised fallback function signature to include a recursive parameter.
python/paddle/jit/sot/opcode_translator/executor/variables/callable.py Updated fallback handling to extract and report the recursive parameter value.

@SigureMo SigureMo requested review from zrr1999 and gouzil April 21, 2025 17:38
@SigureMo SigureMo merged commit b7068a7 into PaddlePaddle:develop Apr 22, 2025
36 of 37 checks passed
@SigureMo SigureMo deleted the sot/support-recursive-fallback-in-psdb-and-add-ut-for-psdb branch April 22, 2025 02:08
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
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.

2 participants