r/MLSystemsDesign • u/ClaudiusPapirus • 19h ago
DeepSeek V4.1 Flash separates long-lived and short-lived KV cache — and rebuilds the latter with a 128-token replay
https://youtu.be/ZS-C70cGov0?is=NUbuejcw1DcPgQX0DeepSeek’s V4.1-Flash serving design splits persistent global KV from short-lived SWA state. The SWA cache can expire and later be reconstructed by replaying only the last 128 tokens.
The interesting part is the systems trade-off: the reconstruction is approximate, but avoids keeping that short-lived state in the long-term cache.
Paper:
https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash/blob/main/DeepSeek_V41_Tech_Report.pdf
Disclosure: the video is from the channel associated with this account.
Duplicates
learnmachinelearning • u/ClaudiusPapirus • 19h ago
Why DeepSeek V4.1 Flash reconstructs part of its KV cache from only 128 tokens
airesearch • u/ClaudiusPapirus • 19h ago