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
c53711bd
Unverified
Commit
c53711bd
authored
Jun 18, 2025
by
Ning Xie
Committed by
GitHub
Jun 17, 2025
Browse files
[MISC] correct copy_blocks src_to_dists param type (#19696)
Signed-off-by:
Andy Xie
<
andy.xning@gmail.com
>
parent
dac8cc49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/attention/ops/ipex_attn.py
vllm/attention/ops/ipex_attn.py
+2
-2
No files found.
vllm/attention/ops/ipex_attn.py
View file @
c53711bd
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from
typing
import
Dict
,
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
try
:
try
:
import
intel_extension_for_pytorch.llm.modules
as
ipex_modules
import
intel_extension_for_pytorch.llm.modules
as
ipex_modules
...
@@ -120,7 +120,7 @@ class _PagedAttention:
...
@@ -120,7 +120,7 @@ class _PagedAttention:
@
staticmethod
@
staticmethod
def
copy_blocks
(
def
copy_blocks
(
kv_caches
:
List
[
torch
.
Tensor
],
kv_caches
:
List
[
torch
.
Tensor
],
src_to_dists
:
Dict
[
int
,
List
[
int
]]
,
src_to_dists
:
torch
.
Tensor
,
*
args
,
*
args
,
)
->
None
:
)
->
None
:
key_caches
=
[
kv_cache
[
0
]
for
kv_cache
in
kv_caches
]
key_caches
=
[
kv_cache
[
0
]
for
kv_cache
in
kv_caches
]
...
...
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