CodeHelper Podcast
OpenCode and Ollama: Why num_ctx Is 4096, and What a Local Coding Agent Actually Costs
10:43
Your model reports a context length of 40960 tokens. Ollama allocates 4096, worked out from your video memory, and never tells you. That single gap is why a local coding agent reads a file and then behaves as though it never saw it. Measured this week on an M4 Pro with 24 GB: what the difference between context length and num_ctx actually is, the three ways to raise it and what each one costs in…