[Inference] Add cutlass gemm dequant op#8909
Merged
wawltor merged 21 commits intoAug 29, 2024
Merged
Conversation
|
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8909 +/- ##
===========================================
+ Coverage 53.58% 53.76% +0.18%
===========================================
Files 652 652
Lines 105169 104513 -656
===========================================
- Hits 56354 56193 -161
+ Misses 48815 48320 -495 ☔ View full report in Codecov by Sentry. |
yuanlehome
reviewed
Aug 12, 2024
yuanlehome
reviewed
Aug 12, 2024
yuanlehome
reviewed
Aug 12, 2024
yuanlehome
approved these changes
Aug 14, 2024
DrownFish19
reviewed
Aug 16, 2024
Mangodadada
pushed a commit
to Mangodadada/PaddleNLP
that referenced
this pull request
Sep 10, 2024
* change gpu name * add cutlass gemm_dequant op * add cutlass gemm_dequant op * fix format * fix fused_transformer_layers * fix layer * fix layer * fix format * fix format * fix review * fix review * fix review * fix review * fix review * fix review * fix review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
New features
PR changes
Add new cutlass op
Description
Add cutlass gemm dequant op
参数:--decode_strategy greedy_search --mode dynamic --quant_type a8w8 --inference_model 1 --batch_size 2 --src_length 128 --max_length 256
Use block atta输出:
Not use block atta输出:(不增加该PR时,第二条输出就有乱码)

测试配置 L20 、batch_size 2、block atta
gemm dequant 未融合:
gemm dequant 融合:

3.尝试qkv_out后接dequant,但出现报错
详细见这里:
https://ku.baidu-int.com/knowledge/HFVrC7hq1Q/pKzJfZczuc/TK3hw_mluo/1-4J_hgwU8mmJN