You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of using softmax attention or any other attention with window_size=None, the KV cache update falls into this branch. This logic concatenates all historical sequence states with the new states (attn_state[0] and attn_state[1]), causing exponential growth in the KV cache.
Steps to reproduce the bug
Inference with attention with window_size=None
Expected behavior
KV-cache exploded
Environment info
The text was updated successfully, but these errors were encountered:
Describe the bug
In the case of using softmax attention or any other attention with
window_size=None
, the KV cache update falls into this branch. This logic concatenates all historical sequence states with the new states (attn_state[0] and attn_state[1]), causing exponential growth in the KV cache.Steps to reproduce the bug
Inference with attention with
window_size=None
Expected behavior
KV-cache exploded
Environment info
The text was updated successfully, but these errors were encountered: