[PR #7924] Clarify num_ctx is measured in tokens #17830

Open
opened 2026-04-16 06:15:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7924
Author: @GhostDog98
Created: 12/3/2024
Status: 🔄 Open

Base: mainHead: patch-1


📝 Commits (1)

  • 6cd2770 Clarify num_ctx is measured in tokens

📊 Changes

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

View changed files

📝 docs/modelfile.md (+1 -1)

📄 Description

It is not clear in the modelfile documentation that num_ctx is actually tokens, rather than chars, which may lead to large over-sizing of the context window where it is not needed.


🔄 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/7924 **Author:** [@GhostDog98](https://github.com/GhostDog98) **Created:** 12/3/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`6cd2770`](https://github.com/ollama/ollama/commit/6cd2770eb5ff6dbc6a4fdd695dee80e2efaa1119) Clarify num_ctx is measured in tokens ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/modelfile.md` (+1 -1) </details> ### 📄 Description It is not clear in the modelfile documentation that num_ctx is actually tokens, rather than chars, which may lead to large over-sizing of the context window where it is not needed. --- <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-16 06:15:33 -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#17830