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
Finally I talked with G.Gerganov and it was added to secure space (at least 4) in KV cache for the new generated tokens. I didn't ask him further why it's explicitly 4, but it seems like when new tokens are generated the input will be truncated, in order to have enough space again.
Why truncate to
ctxLen - 4
? Why is that 4 significant.This is kept for now as per llama.cpp demos, but we should investigate.
The text was updated successfully, but these errors were encountered: