[GH-ISSUE #7552] How to modify n_ctx #4807

Closed
opened 2026-04-12 15:47:02 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @wuhongsheng on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7552

What is the issue?

How to modify n_ctx

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.4

Originally created by @wuhongsheng on GitHub (Nov 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7552 ### What is the issue? How to modify n_ctx ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.4
GiteaMirror added the question label 2026-04-12 15:47:02 -05:00
Author
Owner

@belfie13 commented on GitHub (Nov 7, 2024):

/set parameter num_ctx 999 while running or PARAMETER num_ctx 999 in modelfile

<!-- gh-comment-id:2461859359 --> @belfie13 commented on GitHub (Nov 7, 2024): `/set parameter num_ctx 999` while running or `PARAMETER num_ctx 999` in modelfile
Author
Owner
<!-- gh-comment-id:2462261494 --> @rick-github commented on GitHub (Nov 7, 2024): https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4807