Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reshard] Support r to s of unbalanced split #56149

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

LiYuRio
Copy link
Contributor

@LiYuRio LiYuRio commented Aug 10, 2023

PR types

Others

PR changes

Others

Description

Pcard-73145

支持Replicate到非均匀切分Shard的状态转换,以4卡为例,输入输出都是一维process_mesh,[0, 1, 2, 3],输入为二维Replicated状态,in_tensor_shape = [6, 9],in_dims_mapping = [-1, -1],输出为二维Shard状态。

  • 用process_mesh的0维切分输入的0维,out_dims_mapping = [0, -1],前两个进程上有形状为[2, 9]的物理tensor,后两个进程上有形状为[1, 9]的物理tensor;
  • 用process_mesh的0维切分输入的1维,out_dims_mapping = [-1, 0],第一个进程上有形状为[6, 3]的物理tensor,后三个进程上有形状为[6, 2]的物理tensor。

@paddle-bot
Copy link

paddle-bot bot commented Aug 10, 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.

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ForFishes ForFishes left a comment

Choose a reason for hiding this comment

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

LGTM

@LiYuRio LiYuRio merged commit 8fc9a81 into PaddlePaddle:develop Aug 14, 2023
@LiYuRio LiYuRio deleted the dev_unbalance_split branch August 16, 2023 06:44
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.

3 participants