ollama - 💡(How to fix) Fix RTX 5070 (Blackwell): num_ctx silently capped at 32768 regardless of OLLAMA_CONTEXT_LENGTH or Modelfile PARAMETER

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What is the issue?

Ollama 0.24.0, Windows 11, RTX 5070, driver 610.47, CUDA 13.3. Set OLLAMA_CONTEXT_LENGTH=65536 — env var visible in shell, but ollama ps shows CONTEXT 32768. Modelfile with PARAMETER num_ctx 65536 also ignored. Reproducible with qwen2.5:7b-instruct-q4_K_M. Please confirm or guide around.

Relevant log output

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix RTX 5070 (Blackwell): num_ctx silently capped at 32768 regardless of OLLAMA_CONTEXT_LENGTH or Modelfile PARAMETER