Skip to content
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

Fix: attempt to reduce the impact of a worst-case scenario on defragmentation #6037

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

Xarbirus
Copy link
Contributor

Perhaps this update for the llama_kv_cache_defrag_internal function will help improve the handling of very large holes in the cache.

@Xarbirus Xarbirus marked this pull request as ready for review March 13, 2024 21:01
@ggerganov ggerganov merged commit 2c4fb69 into ggml-org:master Mar 14, 2024
49 of 60 checks passed
NeoZhangJianyu pushed a commit to NeoZhangJianyu/llama.cpp that referenced this pull request Mar 15, 2024
…rg#6037)

* attempt to reduce the impact of a worst-case scenario

* fragmentation calculation fix

* Update llama.cpp

---------

Co-authored-by: Georgi Gerganov <[email protected]>
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
…rg#6037)

* attempt to reduce the impact of a worst-case scenario

* fragmentation calculation fix

* Update llama.cpp

---------

Co-authored-by: Georgi Gerganov <[email protected]>
@Xarbirus Xarbirus deleted the defrag-update branch April 17, 2024 10:11
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.

2 participants