Running Inkling-2-Mini with 500k context on a 16 GB GPU · Stanislav Erokhin and Vladimir Sotnikov, JetBrains · Junie blog, December 2026
JetBrains fits a 500K-token context into 16 GB of VRAM for Junie Local
The authors keep a compressed copy of the KV cache on the GPU, at roughly 2 bits per key and 1 bit per value, hold the full Q8 cache in system RAM, and stream back only the entries predicted to get the most attention. By their figures, VRAM use rose from 14.8 GiB at 32K to 15.5 GiB at 500K. On an RTX 4090 the build decoded at 75.7 tok/s at 384K, while stock llama.cpp with a Q8 KV cache ran out of memory beyond 128K. On Terminal-Bench 2.1, run with stricter custom timeouts, the 15.2 GiB build solved 44 of 88 tasks against 40 of 88 for stock llama.cpp with a full BF16 cache using 28.6 GiB. The authors call that parity within normal run-to-run variance, and report the same on a private 100-task JetBrains benchmark.
It is a preview. The build is a custom llama.cpp with about 100 commits on top of main, tested only on Nvidia cards, installed with a Windows PowerShell command, and set to a 150K context by default. The authors say it saves no memory on unified-memory machines, though their build was faster there at long context.
Why it matters: The post puts a number on what kept long agent sessions off consumer cards: stock llama.cpp could not fit even a 32K context on a 16 GB card with this model. If the results hold outside JetBrains' own benchmarks, a team that wants a coding agent running entirely on its own hardware can run long-context sessions with Inkling-2-Mini on a 16 GB GPU and 16 GB of RAM.