Skip to content

Conversation

@zty-king
Copy link
Contributor

@zty-king zty-king commented Jan 8, 2026

PR Category

User Experience

PR Types

Others

Description

  • 优化missing_key和unexpected_key的warning,对于需要执行aoa的load步骤来说,会先执行aoa,再执行load_state_dict_impl,因此会导致missing_key和unexpected_key的warning再未记录之前就报错,导致用户看不到是哪些key出了问题。报错是因为aoa中存在add原语,如果dst新增了key,需要使用add原语去处理新增的key,否则就会报错(remove同理)。
  • 优化了一个aoa中的报错,之前是使用报错当assert,目前看这样会导致错误信息缺失,因此改为先用assert判断,并给出详细的报错信息。

@paddle-bot
Copy link

paddle-bot bot commented Jan 8, 2026

你的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 Jan 8, 2026
@zty-king zty-king closed this Jan 8, 2026
@zty-king zty-king deleted the opt_aoa_error_messege branch January 8, 2026 08:35
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.

1 participant