Skip to content

Conversation

@ggerganov
Copy link
Member

resolve #3825

The KV shift was applied only if there was at least one token "leaving" the cache.
Also, this change accumulates deltas from sequential shifts as proposed in #3825.

@ggerganov ggerganov merged commit 71a09da into master Oct 29, 2023
@ggerganov ggerganov deleted the fix-kv-shift branch October 29, 2023 16:32
Nexesenex pushed a commit to Nexesenex/croco.cpp that referenced this pull request Oct 30, 2023
brittlewis12 added a commit to brittlewis12/llmfarm_core.swift that referenced this pull request Nov 17, 2023
olexiyb pushed a commit to Sanctum-AI/llama.cpp that referenced this pull request Nov 23, 2023
brittlewis12 added a commit to brittlewis12/llmfarm_core.swift that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llama_kv_cache_seq_shift delta does not appear to be calculated properly

2 participants