ValeroisResearchBifrost

Long context for a model that exists, on one consumer GPU.

Bifrost converts a pretrained model’s growing attention layers into constant-memory layers, training only a few small tensors per layer. It is open source under Apache-2.0.

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

Source on GitHub · Apache-2.0All research

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.