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

Support various length support for SelectedRows in GLOO::AllGather #36637

Merged
merged 5 commits into from
Oct 26, 2021

Conversation

2742195759
Copy link
Contributor

PR types

New features

PR changes

APIs

Describe

In cpu parallel using gloo, add various length support for SelectedRows.

之前受限于GlooWrapper,无法实现变长的sparse tensor的all reduce同步。gloo会报错不支持。

现在添加了对应的支持,不会报错了。这个性质在NLP中非常重要。

功能补齐PR。

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

Great work

paddle/fluid/framework/fleet/gloo_wrapper.h Outdated Show resolved Hide resolved
paddle/fluid/imperative/gloo_context.cc Outdated Show resolved Hide resolved
paddle/fluid/imperative/gloo_context.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM for const_cast

@Aurelius84 Aurelius84 changed the title In cpu parallel using gloo, add various length support for SelectedRows Support various length support for SelectedRows in GLOO::AllGather Oct 26, 2021
@Aurelius84 Aurelius84 merged commit eca78a9 into PaddlePaddle:develop Oct 26, 2021
2742195759 added a commit to 2742195759/Paddle that referenced this pull request Oct 26, 2021
…addlePaddle#36637)

* In cpu parallel using gloo, add various length support for SelectedRows

* fix bug

* fix bugs

* fix by code review

* remove timeout
lanxianghit pushed a commit that referenced this pull request Oct 26, 2021
…36637) (#36722)

Support various length support for SelectedRows in GLOO::AllGather (#36637)

    In cpu parallel using gloo, add various length support for SelectedRows
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.

4 participants