Inkling-2-Mini is a 26.4-billion-parameter Mixture-of-Experts model with 3.4 billion active parameters. Junie Local’s experimental implementation aims to run it with a 500,000-token context on a 16 GB GPU and 16 GB of system RAM, avoiding the usual tradeoff between context size, speed, and model quality. Its central challenge is the KV cache: even a heavily quantized cache cannot fit alongside model weights and working buffers in GPU memory. The solution keeps the full Q8 cache in RAM and a much smaller, roughly two-bit-per-entry representation in VRAM. During prefill, data is streamed layer by layer; during generation, the system predicts which cache entries matter, fetches likely candidates ahead of time, and retains frequently used entries in a small GPU cache. Approximate attention over less important entries limits the extra data that must be transferred.
The implementation uses about 15.5 GiB of VRAM at 500K tokens, with memory growing only slightly as context increases. On an RTX 4090, it reached 4,067 tokens per second for prefill and 106 for decoding at 64K context; at 384K, it achieved 2,679 and 76 tokens per second, respectively. At 128K, decoding was 24% faster than stock llama.cpp, and at 256K it was 1.86 times faster than the same optimized build without cache offloading. The developers report no significant quality or performance penalty and say the early preview is available in Junie Local for testing and feedback.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.