# JetBrains' Junie Local preview runs Inkling-2-Mini with 500K context on a 16 GB GPU

Published 2026-12-04 · AI.info Team · AI.info

> JetBrains says its Junie Local preview can run Inkling-2-Mini with a 500K-token context on a 16 GB GPU by moving cache data between system memory and GPU memory. The company reports speed and memory results from its own tests, while its code repository recommends 32 GB of system RAM for a 500K command.

[JetBrains](https://blog.jetbrains.com/junie/2026/12/inkling-2-mini-junie-local/) says an early preview of Junie Local can run Inkling-2-Mini with a 500K-token context window on a discrete GPU with 16 GB of video memory. The company describes a method that splits the model's attention cache between GPU memory and system RAM, and says it found no significant quality or performance penalty in its tests.

The technique is available to try in Junie Local, but JetBrains says the preview is not a finished release. Thinking Machines' Inkling-2-Mini is a mixture-of-experts model with 26.4 billion total parameters and 3.4 billion active parameters.

## Fitting the cache

JetBrains chose the Unsloth UD-Q3_K_XL quantized version of the model, which it says occupies about 12.7 GiB of GPU memory. At a 500K context, the company says a Q8 cache needs more than 8 GiB, leaving too little room for both the model weights and the full cache on a 16 GiB card.

The approach moves portions of the key-value, or KV, cache between system RAM and GPU memory. During prefill, when the model processes input, it streams the cache needed for the current layer from RAM rather than keeping the whole cache in video memory.

In the reported setup, the company says the model can run on a system with 16 GB of RAM as well as a 16 GB GPU. A separate JetBrains code repository recommends a machine with 32 GB of RAM for its 500K command, saying that command needs about 13 GiB of host RAM. The repository says its implementation currently supports only [NVIDIA](https://ai.info/companies/nvidia) GPUs and that other GPUs and platforms have not been tested.

## Predicting what to fetch

For decoding, when the model generates output, JetBrains keeps a compressed cache in GPU memory and fetches selected higher-precision entries from RAM. Its encoding uses approximately 2 bits per key and 1 bit per value; taking additional rotation matrices into account, the company says the storage cost is roughly equivalent to a 2-bit KV cache.

The method uses information from earlier layers to estimate which cache entries will matter most, then prefetches the top 1,024 candidates. Each full-attention layer also keeps a resident cache of 4,096 slots in GPU memory, so entries used in adjacent generation steps need not all be fetched again.

## What the tests measured

JetBrains reports that active GPU memory use in its optimized build rose from 14.8 GiB at a 32K context to 15.2 GiB at 384K and 15.5 GiB at 500K. Its comparison used the same model and drafter on multi-turn Junie coding trajectories, with reasoning and tool calling enabled.

On an RTX 4090 with 24 GB of memory running Windows, the company measured 2,679 tokens per second for prefill and 75.7 tokens per second for decoding at a 384K context. Those speed figures are from the 24 GB card, not a 16 GB card.

In that comparison, JetBrains says stock llama.cpp with a Q8 KV cache ran out of memory beyond a 128K context, while its optimized build without cache offloading ran out beyond 256K. The company also measured decoding at 102.2 tokens per second with offloading versus 82.4 tokens per second for stock llama.cpp at 128K.

The underlying implementation is available in a JetBrains fork of llama.cpp. The fork has not been submitted for merging upstream and is not yet ready for that step, its repository says.

## JetBrains on AI.info

- Company: [JetBrains](https://ai.info/companies/jetbrains) — JetBrains develops software tools for programmers and teams, including integrated development environments, project-management tools, and AI-assisted coding products.

## Sources

1. Original source · Blog post [JetBrains](https://blog.jetbrains.com/junie/2026/12/inkling-2-mini-junie-local/) “16GB GPU, 500K Context: The Surprising Secret Behind Junie Local” blog.jetbrains.com

Other pages read

2. [JetBrains](https://github.com/JetBrains-Hardware/llama.cpp/tree/inkling2-mini-500k) “GitHub - JetBrains-Hardware/llama.cpp: LLM inference in C/C++” github.com

## Companies in this story

- [JetBrains](https://ai.info/companies/jetbrains)

## In the tracker

- [Inkling 2 Mini](https://ai.info/tracker/models/inkling-2-mini)

## Related stories

- [Ollama brings Inkling 2 Mini to local Macs in preview](https://ai.info/news/ollama-inkling-2-mini-local-preview)
- [JetBrains releases Mellum2.1 Instruct, a 12B coding model that answers without a chain of thought](https://ai.info/news/jetbrains-mellum2-1-instruct-coding-agents)
- [JetBrains MPS 2026.2 adds tools for coding agents](https://ai.info/news/jetbrains-mps-2026-2-coding-agent-tools)
- [JetBrains adds Claude Agent and Codex to ReSharper](https://ai.info/news/jetbrains-resharper-2026-3-claude-agent-codex)
- [JetBrains test finds AI models repeatedly criticize Python](https://ai.info/news/jetbrains-ai-models-programming-language-bias-test)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/jetbrains-inkling-2-mini-500k-context-16gb-gpu
