We've spent years learning how to quantize attention. But what about the linear recurrences (e.g. Mamba-2, GDN and KDA) replacing it?
It turns out we can rewrite their computation to reduce quantization error, while preserving the full-precision function. π€―
Introducing LinQuant: a framework for low-precision recurrent prefill. π§΅ (1/7)
Low-precision recurrent models, from prefill to decode π
Excited to share LoReS with @philna00! We show that recurrent models can be easier to quantize than attention and how to handle states that get updated and requantized at every decode step.
The payoff: robust 8-bit recurrent states and faster decoding in vLLM π₯
LoReS tackles decode quantization, complementing our concurrent work LinQuant on quantizing prefill. Together, they build out a quantization toolkit for efficient inference in linear recurrent and hybrid models like Qwen, Kimi, and Nemotron.
(1/9) Quantizing recurrent language models is easier than you think!
Hybrids compete at scale (e.g. Qwen, Kimi, Nemotron). Yet the PTQ stack has largely been tailored to softmax attention. π€
In this work, we reveal that recurrent models can be easier to quantize.
it's hilarious how many have taken the bitter lesson to mean just scaling up transformers. it's about scaling, but innovations in algorithmic primitives can lead to much more efficient scaling
Finally, although we studied integer quantization in this work, the invariances also apply to low-precision floating point space. This opens the door to quantized FLA kernels, as FlashAttention-3 did for attention. π
This is joint-work with @philna00 (co-first author) & @tk_rusch
π» Code: https://t.co/hl42oUZwtT
π Paper: https://t.co/NKBC8w29Kq
(7/7)
We've spent years learning how to quantize attention. But what about the linear recurrences (e.g. Mamba-2, GDN and KDA) replacing it?
It turns out we can rewrite their computation to reduce quantization error, while preserving the full-precision function. π€―
Introducing LinQuant: a framework for low-precision recurrent prefill. π§΅ (1/7)
Next we show how LinQuant translates to real kernels.
SSDi8 is an existing INT8 prefill algorithm for Mamba-2. We fuse LinQuant's Q/K transforms into its kernels, closing half the perplexity gap to FP16 on Mamba-2 8B. Gains transfer to Nemotron-H. (6/7)
Introducing π»π΅πΌπΉ: our new generation of Liquid Foundation Models. With a new tri-hybrid architecture and new multimodal encoders, the LFM3 family is the ideal model suite for specialized intelligence.
> 6 model instances, across text, audio, vision, and omni modalities, generative and decision models.
> π»π΅πΌπΉ-π·.π½π±: text, 256k context window.
> π»π΅πΌπΉ-π π»-πΈπ±: vision-language model with video-input support for spatial understanding
> π»π΅πΌπΉ-π°ππππ-πΈπ±: tool calls, voice chat, reasoning in 18 languages.
> π»π΅πΌπΉ-πΎπππ-πΈπ±: an omni model combines vision, audio, and language.
> ππ·-πΈπ± and ππ·-πΎπππ-πΈπ±: decision models with typed outputs and calibrated probabilities in a single pass. Omni adds audio input.
> fine-tune on 1 GPU.
> a new tri-hybrid architecture
> architecture optimized for 14 processor classes across GPUs, CPUs, and NPUs.
> π»π΅πΌπΉ-π π»-πΈπ± is a beast. It performs competitively with Gemma 4 12B (6x larger), and Gemini 3.5 Flash Lite, and GPT-5.6 Luna, with 1.9B parameters.
> π»π΅πΌπΉ-π·.π½π± is #1 on the Pareto frontier of device intelligence πππππππ.ππππππ.ππ
Every modality for specialized intelligence. Pick the one that fits your use case, customize it, and run it on-device.
1/ π§΅
mHC and AttnRes demonstrate that richer depth mixing improves model performance at scale. Is there a unifying perspective? π€
Meet our Depth Memory framework: each layer reads from a set of streams to form its input, then writes back its output.
Linear Depth Memory (LDM) equips models with a matrix-valued memory.
Linear attention is arguably the most naive RNN, but still massively outperforms traditional RNNs by maintaining a matrix state. So... what if we use a (triadic) outer product of three vectors and maintain a three-dimensional state?
Introducing: Triadic Linear Attention π§΅