-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Inference] Append attn FP8 quant #9328
[Inference] Append attn FP8 quant #9328
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9328 +/- ##
===========================================
+ Coverage 52.24% 52.97% +0.72%
===========================================
Files 673 673
Lines 109100 107355 -1745
===========================================
- Hits 56998 56868 -130
+ Misses 52102 50487 -1615 ☔ View full report in Codecov by Sentry. |
def compute_activation(self, ffn1_out, i): | ||
return ffn1_out |
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.
FP8的activation是被融合了吗?
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.
使用自定义算子实现的cutlass版本的FP8 dual gemm融合了act;
使用Paddle实现的cublaslt的FP8 gemm在compute_ffn1函数内计算了act,所以继承的这个方法置空就可以了;
@@ -321,6 +323,7 @@ __global__ void multi_query_append_attention_kernel( | |||
smooth_weight, | |||
q_base_seq_id_this_block, | |||
q_head_idx, | |||
quant_max_bound,quant_min_bound, |
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.
格式化一下C++代码
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.
done
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.
也添加一下llama的重构吧
…nto append_attn_fp8_quant
PR types
Others
PR changes
Others
Description
append attn支持FP8 e4m3量化;
编译自定义算子时,自动生成FP8 cutlass gemm,并增加FP8 cutlass GEMM默认配置;
将FP8组网统一到FusedBlockMultiTransformer,方便后续维护;