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
8f30468c
Commit
8f30468c
authored
Jan 17, 2026
by
zhuwenwen
Browse files
update q_quant dtype
parent
c7b0d0d4
Changes
1
Hide 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 @
8f30468c
...
@@ -1253,7 +1253,7 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
...
@@ -1253,7 +1253,7 @@ class MLACommonImpl(MLAAttentionImpl[M], Generic[M]):
)
)
else
:
else
:
q_tensor
=
torch
.
randn
(
q
.
shape
[
0
],
num_local_heads
,
self
.
qk_nope_head_dim
+
self
.
qk_rope_head_dim
,
dtype
=
q
.
dtype
,
device
=
q
.
device
)
q_tensor
=
torch
.
randn
(
q
.
shape
[
0
],
num_local_heads
,
self
.
qk_nope_head_dim
+
self
.
qk_rope_head_dim
,
dtype
=
q
.
dtype
,
device
=
q
.
device
)
q_quant
=
torch
.
empty_like
(
q_tensor
,
dtype
=
kv_cache_dtype_str
,
device
=
q
.
device
)
q_quant
=
torch
.
empty_like
(
q_tensor
,
dtype
=
torch
.
float8_e4m3fn
,
device
=
q
.
device
)
q_scale
=
torch
.
empty
(
q
.
shape
[
0
],
dtype
=
torch
.
float32
,
device
=
q
.
device
)
q_scale
=
torch
.
empty
(
q
.
shape
[
0
],
dtype
=
torch
.
float32
,
device
=
q
.
device
)
fuse_rmsnorm_rope_quant_qkv
(
fuse_rmsnorm_rope_quant_qkv
(
positions
[:
num_actual_toks
,
...],
positions
[:
num_actual_toks
,
...],
...
...
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