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
7938d121
Unverified
Commit
7938d121
authored
Mar 23, 2026
by
DorBernsohn
Committed by
GitHub
Mar 23, 2026
Browse files
[Bugfix] Fix CPU backend crash in KV cache block zeroing (#37550)
Signed-off-by:
DorBernsohn
<
dor.bernsohn@gmail.com
>
parent
debd6e76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/v1/worker/cpu_model_runner.py
vllm/v1/worker/cpu_model_runner.py
+5
-0
No files found.
vllm/v1/worker/cpu_model_runner.py
View file @
7938d121
...
...
@@ -88,6 +88,11 @@ class CPUModelRunner(GPUModelRunner):
def
_sync_device
(
self
)
->
None
:
pass
def
_zero_block_ids
(
self
,
block_ids
:
list
[
int
])
->
None
:
# CPU attention assigns -INF to logits at invalid positions,
# so stale KV cache data never affects computation.
pass
def
get_dp_padding
(
self
,
num_tokens
:
int
)
->
tuple
[
int
,
torch
.
Tensor
|
None
]:
# Note: For CPU backend, dp padding is not required for now.
return
0
,
None
...
...
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