[PR #9256] [MERGED] ollamarunner: Pass runner performance parameters to backends #23442

Closed
opened 2026-04-19 17:00:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9256
Author: @jessegross
Created: 2/20/2025
Status: Merged
Merged: 2/20/2025
Merged by: @jessegross

Base: mainHead: jessegross/params


📝 Commits (1)

  • a50f802 ollamarunner: Pass runner performance parameters to backends

📊 Changes

4 files changed (+40 additions, -20 deletions)

View changed files

📝 ml/backend.go (+19 -4)
📝 ml/backend/ggml/ggml.go (+1 -1)
📝 model/model.go (+2 -2)
📝 runner/ollamarunner/runner.go (+18 -13)

📄 Description

Currently the following parameters are in the runner but not used:

  • numGPULayers
  • mainGPU
  • threads
  • tensorSplit

This passes them through to the backend, which is where they would actually get used. However, the GGML backend does not yet do anything with them.


🔄 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/9256 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 2/20/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/params` --- ### 📝 Commits (1) - [`a50f802`](https://github.com/ollama/ollama/commit/a50f8027ae75d32eab5a99a70888a2564403895e) ollamarunner: Pass runner performance parameters to backends ### 📊 Changes **4 files changed** (+40 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend.go` (+19 -4) 📝 `ml/backend/ggml/ggml.go` (+1 -1) 📝 `model/model.go` (+2 -2) 📝 `runner/ollamarunner/runner.go` (+18 -13) </details> ### 📄 Description Currently the following parameters are in the runner but not used: - numGPULayers - mainGPU - threads - tensorSplit This passes them through to the backend, which is where they would actually get used. However, the GGML backend does not yet do anything with them. --- <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-19 17:00:09 -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#23442