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
c4e5bdf6
Unverified
Commit
c4e5bdf6
authored
Jan 20, 2026
by
Chauncey
Committed by
GitHub
Jan 20, 2026
Browse files
[Bugfix] Fix the fp8_mqa_logits dim mismatch (#32652)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
7f1bcd18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+1
-1
vllm/utils/deep_gemm.py
vllm/utils/deep_gemm.py
+2
-2
No files found.
vllm/model_executor/models/deepseek_v2.py
View file @
c4e5bdf6
...
...
@@ -686,7 +686,7 @@ def sparse_attn_indexer(
fp8_mqa_logits_func
=
rocm_fp8_mqa_logits
logits
=
fp8_mqa_logits_func
(
q_fp8
[
chunk
.
token_start
:
chunk
.
token_end
],
(
k_fp8
,
k_scale
.
view
(
torch
.
float32
)),
(
k_fp8
,
k_scale
.
view
(
torch
.
float32
)
.
flatten
()
),
weights
[
chunk
.
token_start
:
chunk
.
token_end
],
chunk
.
cu_seqlen_ks
,
chunk
.
cu_seqlen_ke
,
...
...
vllm/utils/deep_gemm.py
View file @
c4e5bdf6
...
...
@@ -249,8 +249,8 @@ def fp8_mqa_logits(
q: Query tensor of shape [M, H, D]. Casted to
`torch.float8_e4m3fn` by caller.
kv: Tuple `(k_fp8, k_scales)` where `k_fp8` has shape [N, D] with
dtype `torch.float8_e4m3fn` and `k_scales` has shape [N]
(or
[N, 1])
with dtype `torch.float32`.
dtype `torch.float8_e4m3fn` and `k_scales` has shape [N]
)
with dtype `torch.float32`.
weights: weights of shape [M, H], dtype `torch.float32`.
cu_seqlen_ks: Start indices (inclusive) for valid K per query position,
shape [M], dtype int32.
...
...
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