# Recompute SSM states instead of storing them for faster hybrid decoding

> Original title: As hybrid models (Qwen 3.5 / Nemotron Ultra) run agents with massive context, Gated-DeltaNet / Mamba states become a bottleneck. A simple...

- Source: Tri Dao
- Published: 2026-06-15T13:49:54.000Z
- Bad Influence: https://badinfluence.news/items/k9gplyljmlk3jigr9vn1txkqb
- Original: https://x.com/tri_dao/status/2066518563184365953

## Summary

Tri Dao's post proposes loading SSM states, computing with them, and not storing them to make hybrid model decoding about 2x faster. The trick aims to ease the bottleneck from Gated-DeltaNet and Mamba states in hybrid models such as Qwen 3.5 and Nemotron Ultra, unlocking speculative decoding for SSMs.

## Post

As hybrid models (Qwen 3.5 / Nemotron Ultra) run agents with massive context, Gated-DeltaNet / Mamba states become a bottleneck. A simple insight to make this 2x faster: load the states, compute, but don't store them. This recompute trick finally unlocks spec decoding for SSMs

## Quoted post @zwljohnny

> Why do we store the SSM state at all?
> More and more models are hybrids (Nemotron-3, Qwen3.5), so SSM decode speed matters.
> 
> We only write it back every step so the next step can read it.
> ReplaySSM caches the recent inputs instead and rebuilds the state on the fly.
> 
> Same outputs, half the memory traffic
> → ~2x on spec decode at large batch sizes, which barely even helped SSMs before
> → up to 1.43x standard decode on large hybrids (up to Nemotron-Ultra-550B)
> 
> Work with @tri_dao
> 
> Blog + Code👇

https://x.com/zwljohnny/status/2066517132733509756
