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

【PIR API adaptor No.87】Migrate fused_rotary_position_embedding into pir #58911

Merged
merged 24 commits into from
Dec 8, 2023

Conversation

enkilee
Copy link
Contributor

@enkilee enkilee commented Nov 10, 2023

PR types

Others

PR changes

APIs

Description

PIR API 推全升级
paddle.incubate.nn.functional.fused_rotary_position_embedding 迁移升级至 pir,并更新单测 单测覆盖率:1/1

@enkilee enkilee changed the title 【PIR API adaptor No.83-86】Migrate FusedLinear,fused_linear_activation,fused_matmul_bias,FusedMultiTransformer,fused_rotary_position_embedding into pir 【PIR API adaptor No.83-87】Migrate FusedLinear,fused_linear_activation,fused_matmul_bias,FusedMultiTransformer,fused_rotary_position_embedding into pir Nov 10, 2023
Copy link

paddle-bot bot commented Nov 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.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 10, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Nov 13, 2023
Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

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

FusedLinear: 在 test/legacy_test/test_fused_matmul_bias.py 里有相关静态图单测
FusedMultiTransformer :在 test/legacy_test/test_fused_multi_transformer_op.py 有相关静态图单测
麻烦为这些单测打开 pir 测试的开关吧~

python/paddle/incubate/nn/functional/fused_matmul_bias.py Outdated Show resolved Hide resolved
python/paddle/incubate/nn/functional/fused_matmul_bias.py Outdated Show resolved Hide resolved
python/paddle/incubate/nn/functional/fused_transformer.py Outdated Show resolved Hide resolved
@0x45f
Copy link
Contributor

0x45f commented Nov 23, 2023

fused_gemm_epilogue OP目前还没有迁移到phi下,可以先跳过这个api,适配其他的api并打开对应单测

Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

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

既然 fused_gemm_epilogue 还无法适配 pir,那么麻烦请修改一下 pr 标题和 pr 描述吧,把 paddle.incubate.nn.FusedLinear, paddle.incubate.nn.functional.fused_linear_activation, paddle.incubate.nn.functional.fused_matmul_bias 删除

test/legacy_test/test_fused_multi_transformer_op.py Outdated Show resolved Hide resolved
@enkilee enkilee changed the title 【PIR API adaptor No.83-87】Migrate FusedLinear,fused_linear_activation,fused_matmul_bias,FusedMultiTransformer,fused_rotary_position_embedding into pir 【PIR API adaptor No.83-87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir Nov 28, 2023
@MarioLulab
Copy link
Contributor

PR 标题的前缀题号应该是 :【PIR API adaptor No.86、87】
麻烦修改一下吧

@enkilee enkilee changed the title 【PIR API adaptor No.83-87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir 【PIR API adaptor No.86,87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir Nov 30, 2023
@enkilee enkilee changed the title 【PIR API adaptor No.86,87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir 【PIR API adaptor No.86、87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir Nov 30, 2023
@0x45f
Copy link
Contributor

0x45f commented Nov 30, 2023

TestFusedMultiTransformerOp.test_fused_multi_transformer_op测试为什么没有打开pir的测试呀?另外更新下pr描述吧~

@MarioLulab
Copy link
Contributor

TestFusedMultiTransformerOp.test_fused_multi_transformer_op测试为什么没有打开pir的测试呀?另外更新下pr描述吧~

因为这个单测是动态图单测,所以没有打开 pir 测试

@0x45f
Copy link
Contributor

0x45f commented Dec 4, 2023

本地有跑过test/legacy_test/test_fused_multi_transformer_op.py这个单测吗?ci上这个单测被禁了,所以没有这个文件没有被跑到。我看单测中的GetFusedMultiTransformerOutStatic函数在PIR下执行应该还是会有问题,建议在本地跑一下,修复一下相关的问题~

@enkilee
Copy link
Contributor Author

enkilee commented Dec 4, 2023

本地有跑过test/legacy_test/test_fused_multi_transformer_op.py这个单测吗?ci上这个单测被禁了,所以没有这个文件没有被跑到。我看单测中的GetFusedMultiTransformerOutStatic函数在PIR下执行应该还是会有问题,建议在本地跑一下,修复一下相关的问题~

额,本地没环境跑,我看静态是跑在GPU下的。抱歉。

@MarioLulab
Copy link
Contributor

本地有跑过test/legacy_test/test_fused_multi_transformer_op.py这个单测吗?ci上这个单测被禁了,所以没有这个文件没有被跑到。我看单测中的GetFusedMultiTransformerOutStatic函数在PIR下执行应该还是会有问题,建议在本地跑一下,修复一下相关的问题~

额,本地没环境跑,我看静态是跑在GPU下的。抱歉。

那我在本地用 GPU 环境运行一下吧~ 有进展了会在这个 pr 下 comment 😄

@MarioLulab
Copy link
Contributor

当前 fused_multi_transformer 的 kernel 还没有从 fluid 迁移到 phi 体系下,所以目前 fused_multi_transformer 这个 pir api 的迁移工作可以先搁置。这个 pr 暂时只保留 fused_rotary_position_embedding 的工作吧。麻烦复原一下 fused_multi_transformer 及其单测代码,并修改本 pr 标题 🤝

@enkilee
Copy link
Contributor Author

enkilee commented Dec 7, 2023

当前 fused_multi_transformer 的 kernel 还没有从 fluid 迁移到 phi 体系下,所以目前 fused_multi_transformer 这个 pir api 的迁移工作可以先搁置。这个 pr 暂时只保留 fused_rotary_position_embedding 的工作吧。麻烦复原一下 fused_multi_transformer 及其单测代码,并修改本 pr 标题 🤝

收到,辛苦佬🤝🤝

@enkilee enkilee changed the title 【PIR API adaptor No.86、87】Migrate FusedMultiTransformer,fused_rotary_position_embedding into pir 【PIR API adaptor No.87】Migrate fused_rotary_position_embedding into pir Dec 7, 2023
@0x45f 0x45f merged commit c45faed into PaddlePaddle:develop Dec 8, 2023
28 of 29 checks passed
@enkilee enkilee deleted the pir-api-75 branch December 14, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants