Skip to content

Conversation

@zhangyuqin1998
Copy link
Contributor

PR types

Function optimization

PR changes

Others

Description

Pass a local function to forward_backward_pipeline instead of the dataset itself. This prevents the dataset from being passed as a direct argument to forward_backward_pipeline, which would create additional reference counts that cannot be cleared, leading to GPU memory leaks.

This PR depends on PaddlePaddle/Paddle#75446.
This PR is cp from #11103

@tianshuo78520a tianshuo78520a merged commit cb431d3 into PaddlePaddle:incubate/paddlenlp-fleety_20250421 Sep 23, 2025
6 of 7 checks passed
@paddle-bot
Copy link

paddle-bot bot commented Sep 23, 2025

Thanks for your contribution!

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