-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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_mt Branch Migration #64125
Fused_mt Branch Migration #64125
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
|
paddle/fluid/operators/fused/fused_multi_transformer_helper.cu.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 单测删除
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTP for print
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Merge fused_mt branch * Adjusted fuse_mt_int8 * Revert attention_layer_norm.h * Revert paddle/phi/kernels/fusion/gpu/fmha_ref.h * Add win support and refine format. * Reformat for win. * Removed redundant files, now only supports flash_attn_v2 and variable length * Refine static_fused_ft test * Refine fused_mt related testcase * Remove custom_adll_reduce * Remove operator cublaslt and revert parallel test * Refine empty seq_len * Refine ft * Refine ft_static test * Remove float32 support and static parallel ft test * Refine type static error. * Fix doc type error * Fuse_mt code format * Remove some redundant code * Remove redundant attention_layer_norm.h * Remove redundant code in ft_op * Remove Redundant code and skip fuse_mt doctest * Remove redundant fmha_ref mmha_util and other code * Remove redundant kernel * Remove redundant file * Refine fuse_mt code * Refine cublaslt comment
PR Category
Inference
PR Types
New features
Description
移植如下内容,并做了一定程度上的适配
重点修改paddle/fluid/operators/fused/fused_multi_transformer_op.cu,增加了GQA支持,目前仅支持flash_attention_v2的底层实现(only float16/bfloat16)
本地单测,移除了padding输入为定长的测试,只支持variable长度