[PR #14063] docs: restore num_gpu parameter in Modelfile documentation #76786

Open
opened 2026-05-05 09:27:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14063
Author: @ssam18
Created: 2/4/2026
Status: 🔄 Open

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


📝 Commits (1)

  • 5a27d29 docs: restore num_gpu parameter in Modelfile documentation

📊 Changes

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

View changed files

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

📄 Description

Restores the num_gpu parameter to the Modelfile documentation that was removed in e54a3c7.

The parameter is still functional and useful for forcing CPU execution or controlling GPU layer allocation without modifying API requests. This is currently the only way to set GPU behavior at the model level via Modelfile.

  • Added num_gpu back to the parameter table in docs/modelfile.mdx

🔄 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/14063 **Author:** [@ssam18](https://github.com/ssam18) **Created:** 2/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/restore-num-gpu-parameter` --- ### 📝 Commits (1) - [`5a27d29`](https://github.com/ollama/ollama/commit/5a27d295e63db7611129027dad41ea88d1805559) docs: restore num_gpu parameter in Modelfile documentation ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/modelfile.mdx` (+1 -0) </details> ### 📄 Description Restores the `num_gpu` parameter to the Modelfile documentation that was removed in e54a3c7. The parameter is still functional and useful for forcing CPU execution or controlling GPU layer allocation without modifying API requests. This is currently the only way to set GPU behavior at the model level via Modelfile. - Added `num_gpu` back to the parameter table in `docs/modelfile.mdx` --- <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-05-05 09:27:22 -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#76786