Skip to content

Commit bf4cc21

Browse files
author
Haiyang Shi
committed
[Chore] Optimize L2Cache tokens comparison
Signed-off-by: Haiyang Shi <[email protected]>
1 parent b1a9ec7 commit bf4cc21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/aibrix_kvcache/aibrix_kvcache/l2/l2_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def _tokens_match(
530530
if len(tokens_in_mr) != self.block_ntokens:
531531
return False
532532
all_tokens = np_array_concat(prefix_in_mr, tokens_in_mr)
533-
is_identical = all(all_tokens == real_key)
533+
is_identical = np.all(all_tokens == real_key)
534534
if is_identical:
535535
return True
536536
else:

0 commit comments

Comments
 (0)