[GH-ISSUE #13986] docs: Restore num_gpu as a valid Modelfile parameter #71206

Open
opened 2026-05-05 00:40:43 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @oyale on GitHub (Jan 30, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/13986

Hi!

I noticed num_gpu was removed from the Modelfile parameter's documentation in e54a3c7, despite still being functional (at least to force CPU execution).

Adding this parameter to the Modelfile is currently the only way I've found to ensure a specific model doesn't load on the GPU without modifying the API request. I spent quite a while searching for a solution elsewhere since it was missing from the official docs (fortunately, there are a lot of answers to issues that mention it).

Would you consider restoring it to the documentation?

Originally created by @oyale on GitHub (Jan 30, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/13986 Hi! I noticed `num_gpu` was removed from the Modelfile parameter's documentation in e54a3c7, despite still being functional (at least to force CPU execution). Adding this parameter to the Modelfile is currently the only way I've found to ensure a specific model doesn't load on the GPU without modifying the API request. I spent quite a while searching for a solution elsewhere since it was missing from the official docs (fortunately, there are a lot of answers to issues that mention it). Would you consider restoring it to the documentation?
GiteaMirror added the documentation label 2026-05-05 00:40:43 -05:00
Author
Owner

@mvanhorn commented on GitHub (Mar 9, 2026):

I've submitted a fix in the PR above. Restored the num_gpu parameter entry that was accidentally dropped from the Modelfile documentation.

<!-- gh-comment-id:4024409084 --> @mvanhorn commented on GitHub (Mar 9, 2026): I've submitted a fix in the PR above. Restored the num_gpu parameter entry that was accidentally dropped from the Modelfile documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71206