-
Notifications
You must be signed in to change notification settings - Fork 737
[Executor]CUDAGraph support Speculate Decode #3769
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
Merged
Merged
Changes from 44 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
8351e83
success run ngram
gongshaotian 02e8384
Revert "[Code Simplification] remove cum_offsets (#3410)"
lizexu123 1444ba6
success run ngram5 tp4 42bs
lizexu123 892c0c2
success run ngram5 tp4 42bs
lizexu123 18d9823
merge develop
gongshaotian 64ea2f7
mtp draft commit
gongshaotian 3263006
enable target model in cuda graph
littledgg 5b75ade
Merge pull request #1 from littledgg/mtp
gongshaotian 4772a4f
add decorator for target model
zeroRains 4a0a6df
enable draft model in cudagraph v0.5
littledgg ec4a2df
revert revrt cum_offset
littledgg 529214c
Merge pull request #3 from littledgg/mtp
gongshaotian 2dd98da
enable target model in cudagraph v0.9 And clean debug code
littledgg 1d3ef67
Revert "success run ngram"
349988f
add reverted code
15d3103
enable target model in cudagraph v0.9
littledgg 7f11653
solve comment
littledgg bb9c911
Merge pull request #4 from littledgg/mtp
gongshaotian d1115a7
merge remote mtp
77e64ed
merge develop & solve conflict
235b0ba
fix bid < 0
3516be4
Enable Target Model Padding And Draft Model in cudagraph
littledgg c6cdc17
Merge branch 'mtp' of https://github.com/gongshaotian/FastDeploy into…
littledgg 167fb58
solve problem
littledgg 4c10571
Merge pull request #5 from littledgg/mtp
gongshaotian 89c6c83
delete rebuild padding debug note
fdf49de
Merge branch 'mtp' of https://github.com/gongshaotian/FastDeploy into…
834639a
fast compile
4c09b0b
Add capture list for mtp
littledgg 9f71c0e
Merge pull request #6 from littledgg/mtp
gongshaotian fc6ce99
success run 256 tp1 mtp
8c306d8
Enable Lite TP2 Bsz256
littledgg cf01a97
Merge pull request #7 from littledgg/mtp
gongshaotian e28327a
realy enable tp2 bsz 256
littledgg a44e2d9
fix problem
littledgg 00de438
Merge pull request #8 from littledgg/mtp
gongshaotian 678152f
Solve problem for Draft model in cudagraph
littledgg d841cc6
Solve comment
littledgg 3bf990c
Merge pull request #9 from littledgg/mtp
gongshaotian 2eaf778
replace emptytensor as zeros
24fa8cb
Merge branch 'mtp' of https://github.com/gongshaotian/FastDeploy into…
1a4190b
Solve comments
littledgg d3e7df9
Revert "fast compile"
littledgg 96d85a0
Merge pull request #10 from littledgg/mtp
gongshaotian 1c23a3e
merge develop
littledgg f814026
Merge pull request #11 from littledgg/mtp
gongshaotian beaaaec
Merge branch 'mtp' of https://github.com/gongshaotian/FastDeploy into…
ce11adb
fix bug
littledgg 4c06088
Merge pull request #12 from littledgg/mtp
gongshaotian c885ba6
Merge branch 'mtp' of https://github.com/gongshaotian/FastDeploy into…
d23206c
fix merge bug
4a8f947
fix typo
2137520
fix bug
a4323aa
merge develop
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2418,6 +2418,9 @@ __global__ void merge_multi_chunks_v2_kernel( | |
| __shared__ float md_smem[bdy * 2]; | ||
| for (int qid = blockIdx.x; qid < token_num; qid += gridDim.x) { | ||
| const uint32_t bid = batch_id_per_token[qid]; | ||
| if(bid == -1){ | ||
| continue; | ||
| } | ||
| const uint32_t local_seq_id = qid - cu_seqlens_q[bid]; | ||
| const int seq_len_q = seq_lens_q[bid]; | ||
| if (seq_len_q == 0) continue; | ||
|
|
@@ -2437,6 +2440,8 @@ __global__ void merge_multi_chunks_v2_kernel( | |
| const int num_chunks_this_seq = div_up(seq_len_kv, chunk_size); | ||
| if (num_chunks_this_seq <= 1) { | ||
| continue; | ||
| }else if (!ENABLE_PREFILL){ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上 |
||
| continue; | ||
| } | ||
|
|
||
| using LoadT = AlignedVector<T, vec_size>; | ||
|
|
||
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
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
gongshaotian marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
注意下编码规范
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.
这里能把 bid 从 uint32_t 切换成 int 吗?取值范围变小了有无风险?