[PR #6186] [MERGED] Implement linux NUMA detection #17318

Closed
opened 2026-04-16 05:59:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/6186
Author: @dhiltgen
Created: 8/5/2024
Status: Merged
Merged: 8/5/2024
Merged by: @dhiltgen

Base: mainHead: numa


📝 Commits (1)

  • f457d63 Implement linux NUMA detection

📊 Changes

3 files changed (+29 additions, -4 deletions)

View changed files

📝 api/types.go (+0 -2)
📝 gpu/cpu_common.go (+21 -0)
📝 llm/server.go (+8 -2)

📄 Description

If the system has multiple numa nodes, enable numa support in llama.cpp If we detect numactl in the path, use that, else use the basic "distribute" mode.

This also removes the use_numa setting as the bool type is no longer useful given this parameter now requires a mode.

Fixes #6093
Fixes #2496


🔄 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/6186 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 8/5/2024 **Status:** ✅ Merged **Merged:** 8/5/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `numa` --- ### 📝 Commits (1) - [`f457d63`](https://github.com/ollama/ollama/commit/f457d63400f9859acdfff1853c53af13429acea5) Implement linux NUMA detection ### 📊 Changes **3 files changed** (+29 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+0 -2) 📝 `gpu/cpu_common.go` (+21 -0) 📝 `llm/server.go` (+8 -2) </details> ### 📄 Description If the system has multiple numa nodes, enable numa support in llama.cpp If we detect `numactl` in the path, use that, else use the basic "distribute" mode. This also removes the `use_numa` setting as the bool type is no longer useful given this parameter now requires a mode. Fixes #6093 Fixes #2496 --- <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-16 05:59:15 -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#17318