Tag

#vram

AI

Ollama context length: the default, why your local model forgets, and what 128K costs in VRAM

On any GPU under 24 GB, Ollama gives a model a 4,096-token context by default. Longer chats lose their oldest messages, and a long paste is cut to about half the window, with nothing in the chat to tell you. How the default changed (2048, 4096, then by VRAM), five ways to change it, and the KV cache arithmetic for 4K to 128K.