[PR #14078] docs: restore num_gpu as a valid Modelfile parameter #40374

Open
opened 2026-04-23 01:16:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14078
Author: @robert-cronin
Created: 2/4/2026
Status: 🔄 Open

Base: mainHead: docs/restore-num-gpu-parameter


📝 Commits (1)

  • 4d53ee4 docs: restore num_gpu as a valid Modelfile parameter

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 docs/modelfile.mdx (+1 -0)

📄 Description

Fixes #13986

This adds num_gpu back to the Modelfile parameter docs. It was removed in e54a3c7 but the parameter still works and is useful for forcing cpu only execution.

Updated the description to reflect current behavior; the default is now -1 (dynamic) rather than the old macOS specific default of 1. See api/types.go#L1065.


🔄 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/14078 **Author:** [@robert-cronin](https://github.com/robert-cronin) **Created:** 2/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/restore-num-gpu-parameter` --- ### 📝 Commits (1) - [`4d53ee4`](https://github.com/ollama/ollama/commit/4d53ee4938d35276182ed896861ab423f656066a) docs: restore num_gpu as a valid Modelfile parameter ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/modelfile.mdx` (+1 -0) </details> ### 📄 Description Fixes #13986 This adds `num_gpu` back to the Modelfile parameter docs. It was removed in e54a3c7 but the parameter still works and is useful for forcing cpu only execution. Updated the description to reflect current behavior; the default is now -1 (dynamic) rather than the old macOS specific default of 1. See [api/types.go#L1065](https://github.com/ollama/ollama/blob/main/api/types.go#L1065). --- <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-23 01:16:59 -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#40374