Skip to content

Conversation

@Waynezee
Copy link
Contributor

@Waynezee Waynezee commented Mar 5, 2025

PR Category

Auto Parallel

PR Types

Bug fixes

Description

使用原地multiply来进行梯度裁剪,减少显存的使用

Pcard-76459

@paddle-bot
Copy link

paddle-bot bot commented Mar 5, 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.

@Waynezee Waynezee changed the title use inplace multiply to update grad in grad_clip [AutoParallel] fix problems in ClipGradByNorm Mar 5, 2025
@Waynezee Waynezee changed the title [AutoParallel] fix problems in ClipGradByNorm [AutoParallel] use inplace multiply in grad_clip Mar 9, 2025
Copy link
Contributor

@From00 From00 left a comment

Choose a reason for hiding this comment

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

LGTM

@From00 From00 merged commit 9fee57d into PaddlePaddle:develop Mar 10, 2025
32 checks passed
Waynezee added a commit to Waynezee/Paddle that referenced this pull request Mar 11, 2025
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
* use inplace multiply in grad_clip

* use inplace multiply in grad_clip
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