Tag

#kv-cache

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.

AI

Inkling 2 Mini: a looped transformer with 24 layers and 48 passes, and the laptop memory math

Thinking Machines Lab's Inkling 2 Mini (released 20 November 2026) runs its middle 12 layers three times for every token: 48 layer passes from 24 stored layers, 26.4B parameters in about 20 GB. What a looped transformer is, why it matters for chain-of-thought monitoring, and whether it fits your laptop once the KV cache is counted.

AI

Prompt caching explained: $205 or $15 a day for the same app (Claude, OpenAI, Gemini)

Prompt caching keeps the KV cache of the start of your prompt between requests, so repeated input costs a tenth or a twentieth of the normal price and the first word comes sooner. It only matches an exact prefix: one changing line at the top can make a cached app cost more than an uncached one. How it works, what Claude, OpenAI and Gemini charge as of November 2026, and how to check it's on.