Skip to content

[Distributed] refine training_pipeline_step to avoid memory leaks - #11107

Merged
tianshuo78520a merged 1 commit into
PaddlePaddle:incubate/paddlenlp-fleety_20250421from
zhangyuqin1998:pr/pipeline_data_fkeety
Sep 23, 2025
Merged

tianshuo78520a merged 1 commit into
PaddlePaddle:incubate/paddlenlp-fleety_20250421from
zhangyuqin1998:pr/pipeline_data_fkeety

Conversation

@zhangyuqin1998

Copy link
Copy Markdown
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

paddle-bot Bot commented Sep 23, 2025

Copy link
Copy Markdown

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