Skip to content

llama : fix kv shift bug #3835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2023
Merged

llama : fix kv shift bug #3835

merged 1 commit into from
Oct 29, 2023

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
1 participant