Show HN: Bifrost – Reducing a 27B LLM's KV Cache on a Single 16GB GPU
Category: ai-ml
Tags: kv-cache, long-context, llm-inference, llama-cpp, attention
Score: 7.3/10 (Innovation: 8, Technical: 8, Documentation: 7, Utility: 6)
Bifrost is a novel attention-layer conversion method that reduces KV cache memory of pretrained LLMs by replacing full attention layers with a fixed-size delta-rule memory plus a small exact window, enabling long-context inference on a single consumer GPU. The project includes a llama.cpp port with custom Vulkan/CUDA kernels and demonstrates measurable gains (8GB→2.5GB cache at 128K, faster prefill) with small perplexity cost on Qwen3.8-27B.
Target audience: ML engineers and researchers working on efficient LLM inference and long-context models
Repository: https://github.com/ValeroisAI/Heimdall2 · Python · Apache-2.0
View on Hacker News