[PR #14456] docs: add num_gpu and num_thread to Modelfile parameter table #25221

Open
opened 2026-04-19 18:05:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14456
Author: @Anandesh-Sharma
Created: 2/26/2026
Status: 🔄 Open

Base: mainHead: docs-add-num-gpu-parameter


📝 Commits (1)

  • a89e978 docs: add num_gpu and num_thread to Modelfile parameter table

📊 Changes

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

View changed files

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

📄 Description

Summary

  • Add num_gpu and num_thread parameters to the Modelfile documentation parameter table
  • These are valid Runner options (defined in api/types.go) and appear in the API docs but were missing from the Modelfile reference

Test plan

  • Verified parameters exist in api/types.go Runner struct
  • Verified parameters appear in API docs example

Fixes #13986

🤖 Generated with Claude Code


🔄 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/14456 **Author:** [@Anandesh-Sharma](https://github.com/Anandesh-Sharma) **Created:** 2/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs-add-num-gpu-parameter` --- ### 📝 Commits (1) - [`a89e978`](https://github.com/ollama/ollama/commit/a89e978813e7b7487b9ccb137a2f518fd5fd243e) docs: add num_gpu and num_thread to Modelfile parameter table ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/modelfile.mdx` (+2 -0) </details> ### 📄 Description ## Summary - Add `num_gpu` and `num_thread` parameters to the Modelfile documentation parameter table - These are valid Runner options (defined in `api/types.go`) and appear in the API docs but were missing from the Modelfile reference ## Test plan - [x] Verified parameters exist in `api/types.go` Runner struct - [x] Verified parameters appear in API docs example Fixes #13986 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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-19 18:05:07 -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#25221