[GH-ISSUE #10160] Will --ctx-size 24576 override the environment variable OLLAMA_CONTEXT_LENGTH? #68724

Closed
opened 2026-05-04 14:59:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jaybom on GitHub (Apr 7, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10160

--ctx-size 24576 --batch-size 512 --n-gpu-layers 65 --verbose --threads 104 --flash-attn --no-mmap --parallel 6 --tensor-split 33,32

Image

Originally created by @jaybom on GitHub (Apr 7, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10160 --ctx-size 24576 --batch-size 512 --n-gpu-layers 65 --verbose --threads 104 --flash-attn --no-mmap --parallel 6 --tensor-split 33,32 ![Image](https://github.com/user-attachments/assets/d126eaec-5e52-4f1f-b9a0-0c09798a5874)
Author
Owner

@rick-github commented on GitHub (Apr 7, 2025):

OLLAMA_CONTEXT_LENGTH=4096
OLLAMA_NUM_PARALLEL=6

6 * 4096 = 24576

<!-- gh-comment-id:2782936170 --> @rick-github commented on GitHub (Apr 7, 2025): OLLAMA_CONTEXT_LENGTH=4096 OLLAMA_NUM_PARALLEL=6 6 * 4096 = 24576
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68724