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

fused_multi_transformer/fused_multi_transformer_int8 to phi #61529

Closed
wants to merge 26 commits into from

Conversation

zrr1999
Copy link
Member

@zrr1999 zrr1999 commented Feb 3, 2024

PR types

Others

PR changes

Others

Description

fused_multi_transformer/fused_multi_transformer_int8 to phi

合入内容见:#62049

@zrr1999 zrr1999 changed the title fused_multi_transformer/fused_multi_transformer_int8 to phi [WIP] fused_multi_transformer/fused_multi_transformer_int8 to phi Feb 3, 2024
@paddle-bot paddle-bot bot added the contributor External developers label Feb 3, 2024
@0x45f
Copy link
Contributor

0x45f commented Feb 4, 2024

代码冲突了,辛苦fix下~

@zrr1999
Copy link
Member Author

zrr1999 commented Feb 5, 2024

代码冲突了,辛苦fix下~
好的已修改

#include "paddle/phi/api/include/tensor.h"
#include "paddle/phi/backends/dynload/nccl.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

这个头文件是不是应该放在下面 #if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL) 里面?

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,已修改

@@ -41,16 +34,16 @@ limitations under the License. */

#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
#include "paddle/fluid/distributed/collective/process_group.h"
// #include "paddle/fluid/distributed/collective/process_group_nccl.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

这里的include还有上面的一些include头文件为什么要删除呢?是没有用的头文件嘛?

Copy link
Member Author

Choose a reason for hiding this comment

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

这里如果加上额外的头文件,会有一些报错,类似下面这种
image

Comment on lines -1 to -5
backend/generated/*.cc
backend/generated/*.h
primitive/generated_primitive.h
rule/vjp/generated/generated_vjp.h
rule/vjp/generated/generated_vjp.cc
Copy link
Contributor

Choose a reason for hiding this comment

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

这里为何删掉了

Copy link
Member Author

Choose a reason for hiding this comment

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

这部分之前有几个 pr 迁移到了 build 下,不删掉在比较老的版本更新过来可能会报错查不出问题

#61052

Comment on lines 19 to 20
#include "paddle/fluid/operators/fused/quant_dequant_kernel.h"
#include "paddle/fluid/platform/device/gpu/gpu_info.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

phi下不能引入fluid头文件,需要找phi下的等价替换头文件或者是移到phi目录下

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,已修改

@@ -0,0 +1,664 @@
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

2024

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,已修改

@@ -0,0 +1,1381 @@
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

2024

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,已修改

Comment on lines 36 to 38
#include "paddle/fluid/distributed/collective/process_group.h"
// #include "paddle/fluid/distributed/collective/process_group_nccl.h"
#include "paddle/fluid/platform/collective_helper.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

头文件问题同上

Copy link
Member Author

Choose a reason for hiding this comment

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

好的,这块已修复

@zrr1999 zrr1999 changed the title [WIP] fused_multi_transformer/fused_multi_transformer_int8 to phi fused_multi_transformer/fused_multi_transformer_int8 to phi Feb 19, 2024
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "paddle/fluid/distributed/collective/process_group.h"
#include "paddle/phi/core/distributed/collective/process_group.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

fluid文件夹下的这些头文件为什么要修改呢?

Copy link
Member Author

Choose a reason for hiding this comment

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

我把 process_group.h 移动到了 phi目录,这部分是同步修改的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants