[PR #9587] [MERGED] kvcache: Support non-causal attention #13007

Closed
opened 2026-04-13 00:15:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9587
Author: @jessegross
Created: 3/7/2025
Status: Merged
Merged: 3/8/2025
Merged by: @jessegross

Base: mainHead: jessegross/noncausal


📝 Commits (1)

  • 02bb1cc kvcache: Support non-causal attention

📊 Changes

1 file changed (+36 additions, -4 deletions)

View changed files

📝 kvcache/causal.go (+36 -4)

📄 Description

Models can disable causality for all or part of their processing while continuing to store data in the KV cache.


🔄 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/9587 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/8/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/noncausal` --- ### 📝 Commits (1) - [`02bb1cc`](https://github.com/ollama/ollama/commit/02bb1cc81979e5d44cab9469a1d7a9381ef4585b) kvcache: Support non-causal attention ### 📊 Changes **1 file changed** (+36 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `kvcache/causal.go` (+36 -4) </details> ### 📄 Description Models can disable causality for all or part of their processing while continuing to store data in the KV cache. --- <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-13 00:15:15 -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#13007