[Minor] Fix test_cache.py CI test failure (#2684)
This commit is contained in:
parent
c664b0e683
commit
89efcf1ce5
@ -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()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user