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
16d88e40
Commit
16d88e40
authored
Nov 18, 2024
by
王敏
Browse files
[fix]解决test_model_input中报的找不到move_cache错误
parent
6d13278b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/worker/test_model_input.py
tests/worker/test_model_input.py
+10
-0
No files found.
tests/worker/test_model_input.py
View file @
16d88e40
...
...
@@ -60,6 +60,16 @@ class MockAttentionBackend(AttentionBackend):
)
->
None
:
pass
@
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
def
test_model_runner_input
():
sampling_metadata
=
SamplingMetadata
(
...
...
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