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
7676d0c9
Commit
7676d0c9
authored
Mar 18, 2026
by
wangmin6
Browse files
Merge branch 'v0.15.1-mqa_fp8' into 'v0.15.1-dev'
feat:支持mqa的fp8实现 See merge request dcutoolkit/deeplearing/vllm!514
parents
80f0794e
b5323d90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
vllm/model_executor/layers/sparse_attn_indexer.py
vllm/model_executor/layers/sparse_attn_indexer.py
+16
-2
No files found.
vllm/model_executor/layers/sparse_attn_indexer.py
View file @
7676d0c9
...
...
@@ -112,7 +112,7 @@ def sparse_attn_indexer(
chunk
.
cu_seqlen_ks
,
chunk
.
cu_seqlen_ke
,
)
el
se
:
el
if
torch
.
cuda
.
get_device_properties
(
"cuda"
).
gcnArchName
.
split
(
':'
)[
0
]
==
"gfx938"
:
k_fp8
=
k_fp8_full
[:
chunk
.
total_seq_lens
]
k_scale
=
k_scale_full
[:
chunk
.
total_seq_lens
]
ops
.
cp_gather_indexer_k_quant_cache
(
...
...
@@ -121,7 +121,21 @@ def sparse_attn_indexer(
k_scale
,
chunk
.
block_table
,
chunk
.
cu_seq_lens
,
)
)
logits
=
op
.
mqa_logits
(
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
],
k_fp8
,
weights
[
chunk
.
token_start
:
chunk
.
token_end
],
chunk
.
cu_seqlen_ks
,
chunk
.
cu_seqlen_ke
,
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
].
shape
[
0
],
k_fp8
.
shape
[
0
],
q_fp8
.
shape
[
1
],
q_fp8
.
shape
[
2
],
k_scale
.
view
(
torch
.
float32
).
flatten
(),
True
)
else
:
logits
=
op
.
mqa_logits
(
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
],
k
,
...
...
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