DeepSeek V3 From Scratch
LLM From Scratch
A glimpse of DeepSeek V3 From Scratch
When a language model generates another token, it reads information from earlier tokens. Recomputing all that information would waste work, so the model keeps a key-value cache: saved numbers used by attention.
With many attention heads and a long conversation, those saved numbers add up. DeepSeek-V3 uses Multi-head Latent Attention, or MLA, to keep a compact shared record for each past token.
Continue learning
Pro unlocks guided learning, complete notes, practical walkthroughs, exercises, and every AI Research lesson.