WhoBuilt

Mamba state cache

A cache that stores the internal state of a Mamba sequence model during inference.

Also known as state buffer

Key facts

Capabilities
cache index changed from uint32 to size_t to prevent index overflow
decode reads state before computing, so stale state can affect outputs

Timeline 2

Dated events, newest first. Open the sources under any item.

How we verify
20262 events
  1. as of Sep 2026Capability
    Cache index changed from uint32 to size_t to prevent index overflow
    “change one data type from uint32 to size_t” 14:14
    Unverified1 source· Talk
  2. as of Sep 2026Capability
    Decode reads state before computing, so stale state can affect outputs
    “when you first go through the decode kernels, you read the state and then compute over it” 10:18
    Unverified1 source· Talk

Talks 1

18:06
Two Bugs That Hid in Plain Sight: A vLLM Debugging Detective Story

Asaf Gardin and Yuval Belfer explain two silent bugs they found while running AI21’s Jamba model through vLLM: stale Mamba state could produce gibberish, and a 32-bit cache index could overflow and cause log-probability spikes. They show how reproducing failures under load, comparing log probabilities against Hugging Face Transformers, and tracing request identity through the forward pass helped isolate the causes. The fixes were to ensure uncomputed requests start with prefill and to use a wider index type. Their debugging advice is to compare against a baseline, vary workload and memory settings, and inspect complex inference code directly.

Sep 19, 2026· 18 minDiscussed 10:18