[PR #4162] [MERGED] Allocate a large enough kv cache for all parallel requests #11404

Closed
opened 2026-04-12 23:29:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4162
Author: @jmorganca
Created: 5/5/2024
Status: Merged
Merged: 5/5/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/ctx-parallel


📝 Commits (1)

  • 12fb17b allocate a large enough kv cache for all parallel requests

📊 Changes

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

View changed files

📝 server/sched.go (+4 -2)

📄 Description

This fixes opts.NumCtx being assigned correctly


🔄 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/4162 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 5/5/2024 **Status:** ✅ Merged **Merged:** 5/5/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/ctx-parallel` --- ### 📝 Commits (1) - [`12fb17b`](https://github.com/ollama/ollama/commit/12fb17bb2976f045d343e0f7379c7f30f1bac8ef) allocate a large enough kv cache for all parallel requests ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/sched.go` (+4 -2) </details> ### 📄 Description This fixes `opts.NumCtx` being assigned correctly --- <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-12 23:29:30 -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#11404