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
4d29e0a8
Commit
4d29e0a8
authored
Nov 18, 2024
by
王敏
Browse files
[fix]解决test_model_input中报的找不到move_cache错误
parent
16d88e40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vllm/attention/backends/flash_attn.py
vllm/attention/backends/flash_attn.py
+10
-0
No files found.
vllm/attention/backends/flash_attn.py
View file @
4d29e0a8
...
...
@@ -221,6 +221,16 @@ class FlashAttentionBackend(AttentionBackend):
value_caches
=
[
kv_cache
[
1
]
for
kv_cache
in
kv_caches
]
ops
.
copy_blocks
(
key_caches
,
value_caches
,
src_to_dists
)
@
staticmethod
def
move_cache
(
kv_caches
:
List
[
torch
.
Tensor
],
src_to_dists
:
torch
.
Tensor
,
kv_cache_dtype
:
str
,
num_kv_heads
:
int
,
head_size
:
int
,
)
->
None
:
NotImplementedError
@
dataclass
class
FlashAttentionMetadata
(
AttentionMetadata
):
...
...
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