[PR #11658] [MERGED] kvcache: Log contents of cache when unable to find a slot #44850

Closed
opened 2026-04-25 00:31:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11658
Author: @jessegross
Created: 8/4/2025
Status: Merged
Merged: 8/4/2025
Merged by: @jessegross

Base: mainHead: jessegross/no_kv


📝 Commits (1)

  • 0392ca0 kvcache: Log contents of cache when unable to find a slot

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 kvcache/causal.go (+1 -0)

📄 Description

There is a bug when using sliding window attention where we run out of KV cache slots. This is likely due to not correctly removing all of the entries as they slide out of range. This adds additional logging when this occurs to track down the source.

Bug #10127


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11658 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/4/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/no_kv` --- ### 📝 Commits (1) - [`0392ca0`](https://github.com/ollama/ollama/commit/0392ca08edaede752abb5e3e3671895bee87f947) kvcache: Log contents of cache when unable to find a slot ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `kvcache/causal.go` (+1 -0) </details> ### 📄 Description There is a bug when using sliding window attention where we run out of KV cache slots. This is likely due to not correctly removing all of the entries as they slide out of range. This adds additional logging when this occurs to track down the source. Bug #10127 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 00:31:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#44850