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

[HybridParallel]Fix c_split op for TensorParallel #33207

Merged
merged 11 commits into from
Jun 7, 2021

Conversation

ForFishes
Copy link
Member

@ForFishes ForFishes commented May 30, 2021

PR types

Function optimization

PR changes

Others

Describe

[HybridParallel]Fix c_split op for TensorParallel
优化MP性能,优化点如下:
1、fuse embedding op,对shard_index + embedding进行fuse,同时恢复embeding 的weight的正常维度。
2、解决_c_concat的api没有传入rank信息的bug。

@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

@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

@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 for PADDLE_ENFORCE in kernel, please fix comment in next PR

PADDLE_ENFORCE_EQ(
table_dims.size(), 2,
platform::errors::InvalidArgument(
"ShapeError: The dimensions of the 'c_embedding' must be 2. "
Copy link
Contributor

Choose a reason for hiding this comment

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

remove ShapeError: here

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, fix in next pr.

@ForFishes ForFishes merged commit 902c6f9 into PaddlePaddle:develop Jun 7, 2021
@ForFishes ForFishes deleted the opt_mp_perf branch June 7, 2021 05:30
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