[PR #9546] server: add num_parallel to allow per-model control #59692

Open
opened 2026-04-29 14:37:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/9546
Author: @rick-github
Created: 3/6/2025
Status: 🔄 Open

Base: mainHead: num_parallel


📝 Commits (3)

  • 5cede71 server: add num_parallel to allow per-model control
  • a404b23 Merge remote-tracking branch 'upstream/main' into num_parallel
  • 33e253a Update sched.go

📊 Changes

2 files changed (+14 additions, -12 deletions)

View changed files

📝 api/types.go (+13 -11)
📝 server/sched.go (+1 -1)

📄 Description

OLLAMA_NUM_PARALLEL sets parallelism for every model loaded on a server, but sometimes model requirements are not the same. Add num_parallel so that parallelism is controlled in the same way as context length, eg environment variable, Modelfile.

Fixes: #8842


🔄 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/9546 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 3/6/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `num_parallel` --- ### 📝 Commits (3) - [`5cede71`](https://github.com/ollama/ollama/commit/5cede71594f0bd0839cb36edb1ef6036a41189c7) server: add num_parallel to allow per-model control - [`a404b23`](https://github.com/ollama/ollama/commit/a404b232ba23c20018ae15cb2fd59ca9f00c0d24) Merge remote-tracking branch 'upstream/main' into num_parallel - [`33e253a`](https://github.com/ollama/ollama/commit/33e253a1bdf0c09bd23234481c35ec25ba9b3353) Update sched.go ### 📊 Changes **2 files changed** (+14 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+13 -11) 📝 `server/sched.go` (+1 -1) </details> ### 📄 Description `OLLAMA_NUM_PARALLEL` sets parallelism for every model loaded on a server, but sometimes model requirements are not the same. Add `num_parallel` so that parallelism is controlled in the same way as context length, eg environment variable, Modelfile. Fixes: #8842 --- <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:37:46 -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#59692