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
4b53740d
Unverified
Commit
4b53740d
authored
Mar 24, 2026
by
Woosuk Kwon
Committed by
GitHub
Mar 24, 2026
Browse files
[MRV2] Fix for DS v3.2 (#38030)
Signed-off-by:
Woosuk Kwon
<
woosuk@inferact.ai
>
parent
4e824d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vllm/v1/worker/gpu/attn_utils.py
vllm/v1/worker/gpu/attn_utils.py
+5
-2
No files found.
vllm/v1/worker/gpu/attn_utils.py
View file @
4b53740d
...
...
@@ -115,9 +115,12 @@ def _reshape_kv_cache(
)
->
dict
[
str
,
torch
.
Tensor
]:
kv_caches
:
dict
[
str
,
torch
.
Tensor
]
=
{}
for
kv_cache_group_spec
in
kv_cache_config
.
kv_cache_groups
:
kv_cache_spec
=
kv_cache_group_spec
.
kv_cache_spec
assert
isinstance
(
kv_cache_spec
,
AttentionSpec
)
for
layer_name
in
kv_cache_group_spec
.
layer_names
:
kv_cache_spec
=
kv_cache_group_spec
.
kv_cache_spec
if
isinstance
(
kv_cache_spec
,
UniformTypeKVCacheSpecs
):
kv_cache_spec
=
kv_cache_spec
.
kv_cache_specs
[
layer_name
]
assert
isinstance
(
kv_cache_spec
,
AttentionSpec
)
raw_tensor
=
kv_cache_raw_tensors
[
layer_name
]
assert
raw_tensor
.
numel
()
%
kv_cache_spec
.
page_size_bytes
==
0
num_blocks
=
raw_tensor
.
numel
()
//
kv_cache_spec
.
page_size_bytes
...
...
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