Bifrost takes a pretrained model and converts the attention layers whose cache grows with every token into constant-memory layers, training only a few small tensors per layer. On Qwen3.8-27B it cuts the cache at 128K tokens from 8.0 GB to 2.5 GB, decodes as fast as the original from 32K on and prefills faster, at +2.9 % perplexity.
Everything was measured on one workstation: an AMD Radeon RX 9070 XT (16 GB) with a Ryzen 7 7800X3D; ROCm 10.1 and PyTorch 2.14 for training, llama.cpp (Vulkan) for inference. Comparisons are single runs unless stated otherwise. The code is open source under Apache-2.0.
How to read this page
We publish what works and what does not. Bifrost still recalls exact details far back (around 60K tokens) worse than the original model, and it is 7 to 9 % slower at short context. Every limitation is listed on its own page.
Inside this research
How Bifrost works
Which layers are converted, and the two-branch layer that replaces them.
Bifrost on Qwen3.8-27B
Cache, speed and perplexity on Qwen3.8-27B, on one 16 GB GPU.
Retrieval attention for the kept layers
Reading only the blocks that matter in the layers Bifrost keeps exact.
The training engine
How the new layers are trained one at a time on a single GPU.
First Bifrost test: SmolLM2-135M
The first conversion, SmolLM2-135M, before the Qwen work.
Limitations and next steps
What Bifrost does not show yet, and what comes next.
Reproduce
Commands to rebuild the conversion and the server, and how to cite it.
Next
Use Nova today. Or help us measure the next thing.
Nova is free to start, on the desktop and in the browser. The research is open source, and the next experiments need more compute than one GPU.