[PR #14146] [CLOSED] docs: add num_gpu parameter to Modelfile documentation #14537

Closed
opened 2026-04-13 00:57:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14146
Author: @veeceey
Created: 2/7/2026
Status: Closed

Base: mainHead: docs/issue-13986-add-num-gpu-parameter


📝 Commits (1)

  • cea7891 docs: add num_gpu parameter to Modelfile documentation

📊 Changes

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

View changed files

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

📄 Description

Summary

  • Adds the missing num_gpu parameter to the valid parameters table in the Modelfile documentation
  • Parameter was removed from docs but is still functional

Changes

  • Added num_gpu parameter entry to the valid parameters table
  • Placed it after num_ctx parameter for logical grouping
  • Included parameter type (int), description, and example usage

Details

  • Parameter: num_gpu
  • Type: int
  • Description: Sets the number of layers to send to the GPU(s). Set to 0 to force CPU-only execution. (Default: auto)
  • Example: num_gpu 32

Fixes #13986


🔄 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/14146 **Author:** [@veeceey](https://github.com/veeceey) **Created:** 2/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docs/issue-13986-add-num-gpu-parameter` --- ### 📝 Commits (1) - [`cea7891`](https://github.com/ollama/ollama/commit/cea78913bd8e58922eb8adcacb3002a8491e27e9) docs: add num_gpu parameter to Modelfile documentation ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/modelfile.mdx` (+1 -0) </details> ### 📄 Description ## Summary - Adds the missing `num_gpu` parameter to the valid parameters table in the Modelfile documentation - Parameter was removed from docs but is still functional ## Changes - Added `num_gpu` parameter entry to the valid parameters table - Placed it after `num_ctx` parameter for logical grouping - Included parameter type (int), description, and example usage ## Details - **Parameter**: `num_gpu` - **Type**: `int` - **Description**: Sets the number of layers to send to the GPU(s). Set to 0 to force CPU-only execution. (Default: auto) - **Example**: `num_gpu 32` Fixes #13986 --- <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-13 00:57:09 -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#14537