Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
89efcf1c
Unverified
Commit
89efcf1c
authored
Jan 31, 2024
by
Philipp Moritz
Committed by
GitHub
Jan 31, 2024
Browse files
[Minor] Fix test_cache.py CI test failure (#2684)
parent
c664b0e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/kernels/test_cache.py
tests/kernels/test_cache.py
+2
-2
No files found.
tests/kernels/test_cache.py
View file @
89efcf1c
...
@@ -200,12 +200,12 @@ def test_swap_blocks(
...
@@ -200,12 +200,12 @@ def test_swap_blocks(
# Create the KV caches on the first device.
# Create the KV caches on the first device.
src_key_caches
,
src_value_caches
=
kv_cache_factory
(
src_key_caches
,
src_value_caches
=
kv_cache_factory
(
num_blocks
,
block_size
,
1
,
num_heads
,
head_size
,
dtype
,
seed
,
num_blocks
,
block_size
,
1
,
num_heads
,
head_size
,
dtype
,
None
,
seed
,
src_device
)
src_device
)
# Create the KV caches on the second device.
# Create the KV caches on the second device.
dist_key_caches
,
dist_value_caches
=
kv_cache_factory
(
dist_key_caches
,
dist_value_caches
=
kv_cache_factory
(
num_blocks
,
block_size
,
1
,
num_heads
,
head_size
,
dtype
,
seed
,
num_blocks
,
block_size
,
1
,
num_heads
,
head_size
,
dtype
,
None
,
seed
,
dst_device
)
dst_device
)
src_key_caches_clone
=
src_key_caches
[
0
].
clone
()
src_key_caches_clone
=
src_key_caches
[
0
].
clone
()
...
...
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