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

[collective] dynamic shape for send_v2 and recv_v2 #42765

Merged
merged 10 commits into from
May 18, 2022

Conversation

FeixLiu
Copy link
Contributor

@FeixLiu FeixLiu commented May 13, 2022

PR types

New features

PR changes

Others

Describe

send_v2_op (cuda) 与 recv_v2_op (cuda) 修改如下:
修改 attribute,新增dynamic_shape属性(optional,默认值False),作为分布式训练send/recv是否使用动态shape的标识使用。

支持send_v2_op与recv_v2_op的动态shape支持。当设置dynamic_shape属性为True后,send op会首先发送tensor的shape之后再发送tensor。相应的recv op会先接受tensor的shape,并根据接受到的shape修改需要接受的tensor的shape,之后再进行tensor的接受。

support dynamic_shape for send/recv op for gpu training
add a new attr 'dynamic_shape' for both send_v2 and recv_v2, only support gpu with single tensor for now

update the new_group in dygraph
@paddle-bot-old
Copy link

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

sandyhouse
sandyhouse previously approved these changes May 16, 2022
Copy link

@sandyhouse sandyhouse 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
Contributor

@wangxicoding wangxicoding 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
Contributor

@gongweibao gongweibao 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
Contributor

@Shixiaowei02 Shixiaowei02 left a comment

Choose a reason for hiding this comment

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

Paddle inference does not involve changes to the OpMaker in this PR.

@FeixLiu FeixLiu merged commit 1f64c42 into PaddlePaddle:develop May 18, 2022
@FeixLiu FeixLiu deleted the dynamic_shape_for_send_recv branch May 18, 2022 04:37
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.

5 participants