Skip to content

Conversation

@dynamicheart
Copy link
Contributor

@dynamicheart dynamicheart commented Dec 27, 2023

PR types

Performance optimization

PR changes

Others

Description

  • Avoid pre-allocating XPU gm buffer(default is 128MB) in ProcessGroupBKCL communication XPUContexts and DataLoader XPUContexts as they does not use this pre-allocated GM buffers.
  • In hybrid-parallel distributed training, multiple process groups with different XPUContexts will be created for different parallel methods. See topology.py
  • Multi-processes dataloader will also create multiple XPUContexts.

Related PR: #60260

@paddle-bot
Copy link

paddle-bot bot commented Dec 27, 2023

你的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.

@dynamicheart
Copy link
Contributor Author

@XiaociZhang 麻烦帮忙review下将ProcessGroupBKCL的comm_ctx的GM buffer释放是否合理。

@XiaociZhang
Copy link
Contributor

LGTM on process group

Copy link
Contributor

@zhangyk0314 zhangyk0314 left a comment

Choose a reason for hiding this comment

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

LGTM

@QingshuChen QingshuChen merged commit c15a6d3 into PaddlePaddle:develop Dec 29, 2023
Wanglongzhi2001 pushed a commit to Wanglongzhi2001/Paddle that referenced this pull request Jan 7, 2024
@houj04 houj04 added the XPU label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants