[PR #13122] env: expose user visible num_thread override #24621

Open
opened 2026-04-19 17:41:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13122
Author: @dhiltgen
Created: 11/17/2025
Status: 🔄 Open

Base: mainHead: num_threads


📝 Commits (1)

  • a86b815 env: expose user visible num_thread override

📊 Changes

2 files changed (+8 additions, -0 deletions)

View changed files

📝 discover/gpu.go (+5 -0)
📝 envconfig/config.go (+3 -0)

📄 Description

Our default algorithm is based on the number of performance cores detected in the system, which works well in most cases, but for some systems and environments this default underperforms. In some cases more threads are better, and in others fewer is better.

Inspired by, and replaces:


🔄 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/13122 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 11/17/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `num_threads` --- ### 📝 Commits (1) - [`a86b815`](https://github.com/ollama/ollama/commit/a86b8152e0f37c0c117ba7acd2a940e3ba5f07d9) env: expose user visible num_thread override ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `discover/gpu.go` (+5 -0) 📝 `envconfig/config.go` (+3 -0) </details> ### 📄 Description Our default algorithm is based on the number of performance cores detected in the system, which works well in most cases, but for some systems and environments this default underperforms. In some cases more threads are better, and in others fewer is better. Inspired by, and replaces: - closes #11463 - closes #11413 - closes #8792 --- <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:41: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#24621