Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/v1/core/test_kv_cache_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_allocate_with_lookahead():
num_tokens=3,
num_lookahead_tokens=2, # Total required: 3+2=5 tokens
)
assert len(blocks) == 2 # ceil(5/4)=2 blocks
assert len(blocks.blocks) == 2 # ceil(5/4)=2 blocks

# Test case 2: With precomputed blocks
kv_cache_manager = KVCacheManager(kv_cache_config=config,
Expand All @@ -553,7 +553,7 @@ def test_allocate_with_lookahead():
num_tokens=3,
num_lookahead_tokens=2,
)
assert len(blocks) == 2
assert len(blocks.blocks) == 2

# Test case 3: With precomputed blocks
# required_blocks = ceil((3 + 4) / 4) = 2
Expand All @@ -564,4 +564,4 @@ def test_allocate_with_lookahead():
num_tokens=3,
num_lookahead_tokens=4,
)
assert len(blocks) == 2
assert len(blocks.blocks) == 2
Loading