Repository navigation
Conversation
Fridge003
marked this pull request as ready for review
May 10, 2025 21:39
Fridge003
requested review from
ByronHsu,
HaiShaw,
Ying1123,
ch-wan,
hnyls2002,
ispobock,
merrymercy and
zhyncs
as code owners
May 10, 2025 21:39
Fridge003
marked this pull request as draft
May 11, 2025 00:07
Fridge003
marked this pull request as ready for review
May 11, 2025 23:15
Contributor
|
QQ why decoding is slower |
Collaborator
Author
I didn't change any code for decoding. The difference is really small, so it might be related to logic in |
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.
Motivation
In the past few weeks, there have been a lot of optimization PRs targeting at DeepSeek decoding with absorption, but they are still not applied to forward_normal/forward_normal_chunked_kv with MHA.
This PR applies these methods to forward_normal, so the performance of prefilling should increase a little bit. What's more, the PR adds a new kernel fusion method that fuses the concat of q_nope/q_pe and k_nope/k_pe before mha.
No more than 1% increase in prefill throughput, so not urgent for merging.
Modifications
Accuracy Test
Launch
GSM8K
MMLU
Benchmark
Profile Result
Main branch:

This PR:

Checklist