A reply, in motion.
Three tricks that make language models fast.
Follow the memory, watch the guesses, meet the experts.
One step at a time
Stored keys + values
Verified by the target model
Only selected experts activate
01Token ledger
● Run complete| # | TOKEN | DRAFT | KV / MB | EXPERTS |
|---|
02Memory that grows
━ KV cacheRemember, don’t recompute. Each new token adds keys and values to memory. Earlier tokens keep their cached attention state.
03A team of specialists
TOP-2 ROUTINGSparse work, shared load. Two experts handle each token. Brighter cells mean more assignments in this run.
↗ KV cache
Keep the attention keys and values from previous tokens. The cache grows with the sequence, saving repeated computation.
⇢ Speculative decoding
A small draft model proposes tokens. The target model verifies them: green guesses survive; orange guesses are replaced with the target token shown in the ledger.
⁙ Mixture of experts
A router selects two of eight expert networks per token. The full model has many specialists, but each token uses only a few.