[PR #10480] [MERGED] ollamarunner: Temporarily disable worst case graph preallocation #59950

Closed
opened 2026-04-29 14:52:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: revert-worstcase


📝 Commits (1)

  • a7dad1f ollamarunner: Temporarily disable worst case graph preallocation

📊 Changes

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

View changed files

📝 runner/ollamarunner/runner.go (+6 -4)

📄 Description

When we later have a large batch running purely on a CPU, this results the error:
GGML_ASSERT(talloc->buffer_id >= 0)

Disabling this means that we will incrementally reallocate memory as the graph grows.

Fixes #10410


🔄 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/10480 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 4/29/2025 **Status:** ✅ Merged **Merged:** 4/29/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `revert-worstcase` --- ### 📝 Commits (1) - [`a7dad1f`](https://github.com/ollama/ollama/commit/a7dad1f75d554720aad171fdf62f626b349255bf) ollamarunner: Temporarily disable worst case graph preallocation ### 📊 Changes **1 file changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runner/ollamarunner/runner.go` (+6 -4) </details> ### 📄 Description When we later have a large batch running purely on a CPU, this results the error: GGML_ASSERT(talloc->buffer_id >= 0) Disabling this means that we will incrementally reallocate memory as the graph grows. Fixes #10410 --- <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-29 14:52:25 -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#59950