Skip to content

Commit bfaaee5

Browse files
committed
minor update
1 parent 947ca2a commit bfaaee5

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lmdeploy/pytorch/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ class SchedulerSequence:
657657
# mrope
658658
history_mrope_pos_ids: HistoryMropePosIds = field(default_factory=HistoryMropePosIds)
659659

660-
# prefix caching
660+
# Prompt tokens reused from prefix cache; set by BlockTrie.match().
661661
cached_tokens: int = 0
662662

663663
def __post_init__(self):

lmdeploy/pytorch/paging/block_trie.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def get_root(self, adapter_name: str):
8383
def match(self, seq: SchedulerSequence):
8484
"""Match sequence and cache."""
8585
if not self.enable:
86-
seq.cached_tokens = 0
8786
return
8887

8988
block_size = self.block_size

0 commit comments

Comments
 (0)