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
f2ad952f
Unverified
Commit
f2ad952f
authored
Feb 26, 2026
by
Or Ozeri
Committed by
GitHub
Feb 26, 2026
Browse files
[BugFix][kv_offload]: Fix kernel block size detection (#35125)
Signed-off-by:
Or Ozeri
<
oro@il.ibm.com
>
parent
9e2cabdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
vllm/v1/kv_offload/worker/cpu_gpu.py
vllm/v1/kv_offload/worker/cpu_gpu.py
+14
-10
No files found.
vllm/v1/kv_offload/worker/cpu_gpu.py
View file @
f2ad952f
...
...
@@ -259,6 +259,11 @@ class CpuGpuOffloadingHandlers:
assert
gpu_shape
[
0
]
==
2
split_k_and_v
=
True
if
has_layers_dim
:
# in the cross layers case, the registered kv cache tensor
# shape matches the physical layout, whereas test_shape
# is the logical layout.
# To match them, we need to permute test_shape
try
:
kv_cache_stride_order
=
attn_backend
.
get_kv_cache_stride_order
(
include_num_layers_dimension
=
has_layers_dim
...
...
@@ -267,7 +272,6 @@ class CpuGpuOffloadingHandlers:
except
(
AttributeError
,
NotImplementedError
):
kv_cache_stride_order
=
tuple
(
range
(
len
(
gpu_shape
)))
# permute test_shape according to stride_order
test_shape
=
tuple
(
test_shape
[
i
]
for
i
in
kv_cache_stride_order
)
# find block_size (16) dimension index
...
...
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