Skip to content
IJK

SSM Decoding Is Bound by HBM Bandwidth, Not Compute

By IJK ·

What an NVIDIA post says hybrid models interleave, why SSM layers can still bottleneck serving and what bounds an SSM decoding step.

What hybrid models interleave

Hybrid models interleave state-space model (SSM) layers with a few attention layers. [1]

Why SSM layers can still bottleneck

SSM layers are designed to make decoding fast: they use a fixed-size state in place of a key-value (KV) cache that grows with context length. [2]

At serving batch sizes, however, the SSM layers, not attention, can be the latency bottleneck up to 100K tokens of context. [3]

What bounds an SSM decoding step

An SSM decoding step loads and stores the full state while performing little arithmetic on it, so the kernel is bound by HBM bandwidth, not compute. [4]

yetbecauseHybrid models interleave SSM and attentionlayersSSM layers use a fixed-size stateSSM layers can be the latency bottleneckat serving batch sizesA step loads and stores the full stateso the kernel is bound by HBM bandwidth, not compute
What limits an SSM decoding step?

Sources

  1. The NVIDIA source says: Hybrid models interleave state-space model (SSM) layers with a few attention layers. ReplaySSM
  2. The NVIDIA source says: SSM layers are designed to make decoding fast: they use a fixed-size state in place of a key-value (KV) cache that grows with context length. ReplaySSM
  3. The NVIDIA source says: At serving batch sizes, however, the SSM layers, not attention, can be the latency bottleneck up to 100K tokens of context. ReplaySSM
  4. The NVIDIA source says: An SSM decoding step loads and stores the full state while performing little arithmetic on it, so the kernel is bound by HBM bandwidth, not compute. ReplaySSM

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • ssm
  • inference
  • nvidia
  • decoding