The SSM Layer Nobody Made Fast (Until Now): ReplaySSM Explained
Автор: SkildCore
Загружено: 2026-10-29
Просмотров: 13
Описание:
State space models (SSMs) and hybrid architectures like Mamba-2, Gated DeltaNet, and Kimi Delta Attention were promised to deliver constant memory and blazing-fast inference[cite: 4]. But in production serving at batch sizes up to 100k context, decode latency isn’t dominated by attention—it's dominated by SSM layers[cite: 4].
Every single decode token forces GPUs to read and write multi-megabyte recurrent states to and from HBM for tiny rank-1 arithmetic updates[cite: 4]. This creates low arithmetic intensity, breaks speculative decoding with expensive state snapshotting, and lets quantization noise corrupt the recurrent state forever[cite: 4].
In this episode of Skildcore, we break down ReplaySSM—joint research from NVIDIA and the Dao AI Lab at Princeton[cite: 4]. By treating recurrent state as a derived function rather than a materialized hostage, ReplaySSM caches recent inputs in a ring buffer, halves state memory traffic, enables O(1) speculative rollbacks, and isolates quantization drift[cite: 4].
---
⏱️ TIMESTAMPS:
0:00 - The Cheap Layer Nobody Made Fast: The SSM Inference Bottleneck[cite: 4]
0:36 - Chapter 01: Introducing ReplaySSM (NVIDIA & Dao AI Lab)[cite: 4]
0:52 - The Hybrid Bet: Flat Memory vs. Exact Recall[cite: 4]
1:44 - The Eager Pattern: Low Arithmetic Intensity & Memory Bandwidth Stall[cite: 4]
2:06 - The 3 Flaws: Rollback Cost, Quantization Poisoning, and State I/O[cite: 4]
2:24 - The Insight: "The State is a Function, Not a Hostage"[cite: 4]
2:53 - Two Routes, One Window: Output-Only Decoding vs. Checkpoint Flush[cite: 4]
3:26 - One Token, Two Ledgers: 64 MB vs. 1 MB Memory Traffic Walkthrough[cite: 4]
4:01 - The Evidence: Blackwell Ultra Kernels & vLLM Serving Benchmarks[cite: 4]
4:32 - Speculative Decoding: Turning O(T) Snapshots into O(1) Pointer Moves[cite: 4]
5:14 - Two Precisions, One State: Preventing Quantization Compound Drift[cite: 4]
5:48 - The Limits & Trade-Offs (Batch Size 1, Ring Buffers, Prefix Caching)[cite: 4]
6:16 - Architectural Verdict: The Future of Hybrid Model Serving[cite: 4]
---
📌 KEY TECHNICAL TAKEAWAYS:
• Why SSM decode is memory-bound: Loading and writing megabytes of recurrent state every token wastes GPU compute cycles on pure I/O hauling[cite: 4].
• Ring buffer recomputation: By storing a small ring buffer of L recent inputs (e.g., L=16), intermediate states are never written to HBM; they are folded in a single batch compute pass[cite: 4].
• Elimination of dominant write traffic: Replaces L full-state HBM writes with exactly 1 flush write per window[cite: 4].
• O(1) Speculative rollbacks: Rejecting candidate draft tokens no longer requires snapshotting states—just decrementing the ring buffer pointer[cite: 4].
• Decoupled dual precision: Runs sensitive recurrences on high-precision checkpoints while serving token output reads from quantized FP8/FP4 representations without compounding error[cite: 4].
🔗 PAPERS & CODE IMPLEMENTATIONS:
• ReplaySSM Paper: arXiv 2610.13778 (NVIDIA & Dao AI Lab, Princeton)[cite: 4]
• Implementations: TensorRT-LLM, vLLM, FlashInfer[cite: 4]
• Production Models: GLM-5.3-Flash, Kimi-K3, Nemotron 3, Qwen-SSM[cite: 4]
#MachineLearning #LLMInference #Mamba #SSM #NVIDIA #GPUArchitecture #vLLM #TensorRT #DeepSystems #Skildcore
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: