[PR #9381] [MERGED] ml: update Context.Forward interface #38810

Closed
opened 2026-04-22 23:28:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9381
Author: @mxyng
Created: 2/27/2025
Status: Merged
Merged: 2/27/2025
Merged by: @mxyng

Base: mainHead: mxyng/context-forward


📝 Commits (2)

  • 0412501 ml: update Context.Forward interface
  • 2a15415 kvcache: update tests

📊 Changes

6 files changed (+19 additions, -15 deletions)

View changed files

📝 kvcache/causal.go (+4 -2)
📝 kvcache/causal_test.go (+2 -4)
📝 kvcache/encoder.go (+4 -2)
📝 ml/backend.go (+2 -3)
📝 ml/backend/ggml/ggml.go (+6 -2)
📝 model/model.go (+1 -2)

📄 Description

  • update Context.Forward to accept multiple tensors to match Context.Compute signature
  • update Context.Forward to return Context such that it can be chained with Context.Compute

🔄 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/9381 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 2/27/2025 **Status:** ✅ Merged **Merged:** 2/27/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/context-forward` --- ### 📝 Commits (2) - [`0412501`](https://github.com/ollama/ollama/commit/0412501cc2b3a1896e917dc6a5dd113390baefe7) ml: update Context.Forward interface - [`2a15415`](https://github.com/ollama/ollama/commit/2a154150447714e15e3891868108676756428cb5) kvcache: update tests ### 📊 Changes **6 files changed** (+19 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `kvcache/causal.go` (+4 -2) 📝 `kvcache/causal_test.go` (+2 -4) 📝 `kvcache/encoder.go` (+4 -2) 📝 `ml/backend.go` (+2 -3) 📝 `ml/backend/ggml/ggml.go` (+6 -2) 📝 `model/model.go` (+1 -2) </details> ### 📄 Description - update `Context.Forward` to accept multiple tensors to match `Context.Compute` signature - update `Context.Forward` to return Context such that it can be chained with `Context.Compute` --- <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-22 23:28:28 -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#38810