Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
bcd4dc84
Commit
bcd4dc84
authored
Dec 22, 2025
by
zhuwenwen
Browse files
update deepgemm interface
parent
65bb0ebc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+4
-6
No files found.
vllm/model_executor/models/deepseek_v2.py
View file @
bcd4dc84
...
@@ -637,8 +637,8 @@ def sparse_attn_indexer(
...
@@ -637,8 +637,8 @@ def sparse_attn_indexer(
)
)
else
:
else
:
logits
=
op
.
mqa_logits
(
logits
=
op
.
mqa_logits
(
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
],
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
]
.
half
()
,
(
k_fp8
,
k_scale
),
(
k_fp8
.
half
()
,
k_scale
),
weights
[
chunk
.
token_start
:
chunk
.
token_end
],
weights
[
chunk
.
token_start
:
chunk
.
token_end
],
chunk
.
cu_seqlen_ks
,
chunk
.
cu_seqlen_ks
,
chunk
.
cu_seqlen_ke
,
chunk
.
cu_seqlen_ke
,
...
@@ -691,11 +691,9 @@ def sparse_attn_indexer(
...
@@ -691,11 +691,9 @@ def sparse_attn_indexer(
max_model_len
=
max_model_len
,
max_model_len
=
max_model_len
,
)
)
else
:
else
:
padded_q_fp8_decode_tokens
=
padded_q_fp8_decode_tokens
.
half
kv_cache
=
kv_cache
.
half
logits
=
gemmopt
.
paged_mqa_logits
(
logits
=
gemmopt
.
paged_mqa_logits
(
padded_q_fp8_decode_tokens
,
padded_q_fp8_decode_tokens
.
half
()
,
kv_cache
,
kv_cache
.
half
()
,
weights
[:
num_padded_tokens
],
weights
[:
num_padded_tokens
],
decode_metadata
.
seq_lens
,
decode_metadata
.
seq_lens
,
decode_metadata
.
block_table
,
decode_metadata
.
block_table
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment