Skip to content

Commit

Permalink
fix hit cache bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wnma3mz committed Feb 3, 2025
1 parent 868d4e5 commit 218bb8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tllm/commons/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def build(self, seq_input: SeqInput, cache_manager: "CacheManager"):
k_len_list.append(q_len)
# 未命中任何 kv cache,新建 cache
else:
hit_cache_len = -1
decoder_cache = None
position_ids = arange_func(q_len)
k_len_list.append(q_len)
Expand Down

0 comments on commit 218bb8a

Please sign in to comment.