[GH-ISSUE #8009] make is somehow visible that the context size in models is not used by default #5126

Closed
opened 2026-04-12 16:13:33 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @fce2 on GitHub (Dec 9, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8009

This is extremely important, it drove me kind of crazy ("it woked before, what did i do wrong now" ??):
!!! You cant use the native models context size until you activate it manually !!!

manual procedure:
ollama run llama3.2:3b-instruct-q8_0

/set parameter num_ctx 65536
/save llama3.2:3b-instruct-q8_0-65536
/bye

Thanks for this hint, microsuxxor !!

Its also important to know: the model size increases extremely, a llama3.2-3b model cant run on a 4090 anymore:
llama3.2:3b-instruct-q8_0 5.4GB 150tps
llama3.2:3b-instruct-q8_0-4096 6.8GB 146tps
llama3.2:3b-instruct-q8_0-8192 9.6GB 146tps
llama3.2:3b-instruct-q8_0-16384 15.0GB 146tps
llama3.2:3b-instruct-q8_0-32768 9.6GB 150tps
llama3.2:3b-instruct-q8_0-65536 15.0GB 150tps
llama3.2:3b-instruct-q8_0-131072 26.0GB 30tps

Originally created by @fce2 on GitHub (Dec 9, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8009 This is extremely important, it drove me kind of crazy ("it woked before, what did i do wrong now" ??): !!! You cant use the native models context size until you activate it manually !!! manual procedure: ollama run llama3.2:3b-instruct-q8_0 > /set parameter num_ctx 65536 > /save llama3.2:3b-instruct-q8_0-65536 > /bye Thanks for this hint, microsuxxor !! Its also important to know: the model size increases extremely, a llama3.2-3b model cant run on a 4090 anymore: llama3.2:3b-instruct-q8_0 5.4GB 150tps llama3.2:3b-instruct-q8_0-4096 6.8GB 146tps llama3.2:3b-instruct-q8_0-8192 9.6GB 146tps llama3.2:3b-instruct-q8_0-16384 15.0GB 146tps llama3.2:3b-instruct-q8_0-32768 9.6GB 150tps llama3.2:3b-instruct-q8_0-65536 15.0GB 150tps llama3.2:3b-instruct-q8_0-131072 26.0GB 30tps
GiteaMirror added the feature request label 2026-04-12 16:13:33 -05:00
Author
Owner
<!-- gh-comment-id:2527488507 --> @rick-github commented on GitHub (Dec 9, 2024): https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size
Author
Owner

@rick-github commented on GitHub (Dec 14, 2024):

https://github.com/ollama/ollama/issues/6852#issuecomment-2382909355

<!-- gh-comment-id:2543177391 --> @rick-github commented on GitHub (Dec 14, 2024): https://github.com/ollama/ollama/issues/6852#issuecomment-2382909355
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5126