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
a9c755ac
Commit
a9c755ac
authored
Jan 28, 2026
by
zhuwenwen
Browse files
update kv_cache_dtype
parent
c0697921
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/attention/backends/mla/common.py
vllm/v1/attention/backends/mla/common.py
+1
-1
No files found.
vllm/v1/attention/backends/mla/common.py
View file @
a9c755ac
...
@@ -1300,7 +1300,7 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
...
@@ -1300,7 +1300,7 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
if
has_decode
:
if
has_decode
:
assert
attn_metadata
.
decode
is
not
None
assert
attn_metadata
.
decode
is
not
None
if
torch
.
cuda
.
get_device_properties
(
"cuda"
).
gcnArchName
.
split
(
':'
)[
0
]
==
"gfx938"
and
kv_cache_dtype
_str
==
"fp8_e4m3"
and
envs
.
VLLM_USE_FUSED_CACHE_QUANT_BMM_MLA
:
if
torch
.
cuda
.
get_device_properties
(
"cuda"
).
gcnArchName
.
split
(
':'
)[
0
]
==
"gfx938"
and
self
.
kv_cache_dtype
==
"fp8_e4m3"
and
envs
.
VLLM_USE_FUSED_CACHE_QUANT_BMM_MLA
:
decode_q
=
q_quant
[:
num_decode_tokens
]
decode_q
=
q_quant
[:
num_decode_tokens
]
decode_q_nope
,
decode_q_pe
=
decode_q
.
split
(
decode_q_nope
,
decode_q_pe
=
decode_q
.
split
(
[
self
.
qk_nope_head_dim
,
self
.
qk_rope_head_dim
],
dim
=-
1
)
[
self
.
qk_nope_head_dim
,
self
.
qk_rope_head_dim
],
dim
=-
1
)
...
...
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