EXTENSION kv-cache
KV caching: remember the work, budget the memory
Trace cache growth, calculate its memory cost, and distinguish exact reuse from approximations.
7 sections per path · full local narration · connected experiments
3 INFERENCE TOPICS / TWO LEVELS / FULL LOCAL NARRATION
Start with a concrete example. Follow the calculation. Change one assumption. Explain the result. Choose a level, then move freely between Signal Room, Workbench and Field Notes.
High school begins with intuition and arithmetic. College adds derivations, shape reasoning and implementation assumptions. Each path keeps its own notes and progress.
EXTENSION kv-cache
Trace cache growth, calculate its memory cost, and distinguish exact reuse from approximations.
7 sections per path · full local narration · connected experiments
EXTENSION moe
Compute a routed mixture, distinguish active from total parameters, and investigate load imbalance.
7 sections per path · full local narration · connected experiments
EXTENSION speculative
Trace accepted prefixes, derive a corrected sampling example, and test when drafting pays off.
7 sections per path · full local narration · connected experiments
Rotary position embeddings, FlashAttention and quantization: both levels →