-
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] FP8 dual gemm auto-tune and support compile parallelization #9151
Conversation
Thanks for your contribution! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9151 +/- ##
========================================
Coverage 53.26% 53.26%
========================================
Files 652 652
Lines 105615 105615
========================================
Hits 56254 56254
Misses 49361 49361 ☔ View full report in Codecov by Sentry. |
c35ebb6
to
1934c3f
Compare
@@ -0,0 +1,628 @@ | |||
# Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved. |
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.
我建议在csrc/目录下建一个utils或者tools目录,把csrc/generate_code_dual_gemm_fused_kernels.py移进去,另外generate_code_dual_gemm_fused_kernels文件的命名也有点不太准确,改为auto_gen_fp8_fp8_dual_gemm_fused_kernels.py ?
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.
另外顺便把csrc/test_tune_cublaslt_gemm.py也移到utils或者tools目录下,test_tune_cublaslt_gemm命名改为tune_cublaslt_int8_gemm.py吧
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.
csrc/generate_code_gemm_fused_kernels.py文件同理~
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.
LGTM
PR types
New features
PR changes
Others
Description
添加FP8 cutlass dual gemm 自定义算子;
针对生成的cutlass算子的编译进行优化,在L20上将所有自定义算子编译时间由52分钟优化到3分钟,加速16.3倍;