Instructor notes: Frame the problem before naming the mechanism. Collect an initial prediction and retain it for the exit ticket.
Instructor notes: Connect every step to the next with a causal verb. Flag any merely decorative arrow.
Instructor notes: Open with the trap question heard in meetings: “so it learns while we talk to it?”. Get hot-take answers from the room and keep them posted — the beat re-files every one of them.
Instructor notes: Open the synthesis with a two-column sort on the board, “frozen” and “written now”, and have the room place the six objects. Any leftover confusion here makes the rest of the session unintelligible.
Instructor notes: Answer: learned offline — router, W_DKV, gates; written during the request — MLA cache, state S, checkpoints; and all three reset between conversations. Expected wrong answer: filing the delta state under “learned” because it looks like weights — session 14 callback: fast weights.
Instructor notes: Ask: “which object crosses ALL the blocks?”, then have its size guessed (4096 per position) and its bus role named. If the word “residual” does not surface, thirty seconds of session-20 recall suffice.
Instructor notes: Have one token traced with a marker from text to the softmax output, one person per block of the diagram. The relay forces each learner to name what enters and what leaves their stage.
Instructor notes: Answer: roughly 96 additions — two per block, mixing then FFN/MoE. The quantity to fear: session 20’s dilution — early contributions’ share collapses, which is precisely what the depth checkpoints will correct. Expected wrong answer: 48, one addition per block.
Instructor notes: Vote on the pattern before any computation: all exact, all delta, or a mix? Each camp states its reason — the beat’s numbers then arbitrate (24 GiB / 1 MiB / 1.5 GiB).
Instructor notes: Vote on the exact/delta pattern before revealing the number: “1 in 4, 1 in 2, or all exact?” Then unveil 1.5 GiB versus 24 GiB. The vote turns a hyperparameter into an owned decision.
Instructor notes: Answer: 24 exact layers × 1 KiB = 24 KiB/token → 3 GiB at 131,072 tokens: the cache line item doubles (1.5 → 3 GiB), the other items do not move. Required justification: a MEASURED long-range recall gain on the real task — not “more exact must be better”. Expected wrong answer: recomputing the whole budget instead of the single affected item.
Instructor notes: Have the cache row recomputed for a 1-in-2 pattern (24 E → 3 GiB): that is exactly the check that follows. Stress that “all E” does not use MLA in the trace’s baseline — hence 24 GiB, not 6.
Instructor notes: Session-19 recall question: “the 21× ratio — what does it govern again?”. Expected: FLOPs, and only FLOPs. The beat then re-files MoE into its three budgets.
Instructor notes: Recall session 19 with a single question: “where is the MoE in this memory budget?” The absence of the 21× ratio from the table is the point; let the silence do the work.
Instructor notes: Answer: no — the 21× does not sit in context memory: the 26B live in the WEIGHT budget (≈ 52 GiB in BF16, the table row) and the 1.2B in the COMPUTE budget. Three budgets, three separate lines. Expected wrong answer: hunting for the 21× in the cache column.
Instructor notes: First present the checkpoints as session 20’s victory, then have their cost at 131,072 tokens computed BEFORE showing the 4 GiB. The punchline — 73% of the budget — must be discovered by the room.
Instructor notes: Present the 4 GiB of checkpoints as a win before having them compute its share of the total. Discovering the 73% yourself beats any warning about optimizations that cancel each other out.
Instructor notes: Answer: the window makes any depth state more than 8,192 tokens back unretrievable — unacceptable for a task that cites the start of a very long document (contract, codebase). Useful bridge: four checkpoints here (x₃₆ added) versus three in session 20 — same spacing of 12, deeper network. Expected wrong answer: confusing the token window with the layer selection.
Instructor notes: Have the 73% (4 / 5.5) and the ÷13.6 (24 / 1.76) verified on a calculator. Then ask: “which line item re-explodes if context goes to 1 M?” — the MLA cache, the only line still O(n).
Instructor notes: Ask: “your benchmark measures generation throughput — what does it miss?”. Expected: first-token latency, hence prefill. The visual support’s two columns structure the whole beat.
Instructor notes: Close by demanding a bounded verdict, phrased as three named measurements and one numeric threshold. Refuse “it depends” as a final answer: the session deliverable is a testable hypothesis, not an architecture.
Instructor notes: Answer: prefill — compute-dominated (chunked attention, MoE); decode — dominated by re-reading the MLA cache, hence bandwidth. First measurement for the verdict: decode throughput under growing length, where cache and all-to-all compound. Accept any argued answer that names ONE measurement per regime.
Instructor notes: Have three optimizations filed in the right column: chunking (prefill), MLA (mostly decode), cache quantization (decode). A misfiled optimization is a misread benchmark.
Instructor notes: Walk line by line. Locate an inconsistency at the first faulty step, not only on the final line.
Instructor notes: Have learners fill the final row before revealing it: that trade-off is what decides in production.
Instructor notes: Retain initial and final values. Do not allow simultaneous changes that make the delta impossible to attribute.
Instructor notes: For each claim, have the group produce the smallest counterexample before giving the correction.
Instructor notes: Separate verifiable mechanism, reported implementation choice, and experimental result. Evidence precision must match claim precision.
Instructor notes: Expected: (1) the MLA cache explodes — 12 KiB/token × 1,048,576 ≈ 12 GiB; windowed checkpoints hold (256 MiB, independent of n), the delta state holds (1.1 MiB), MoE weights do not move. (2) e.g. a 1-in-8 pattern (cache ÷2, sparser exact recall), a narrower c (tighter reconstruction), a window on exact attention (loses faithful distant recall). (3) measurements: needle-style long-context recall, decode throughput at 1 M, peak memory; threshold e.g. “recall < 95% of baseline → roll back”. Misconception to harvest: “keep everything and quantize” — quantization divides by 2 to 4, not by 8. Twelve minutes, groups of three.
Instructor notes: Rebuild the chain without looking at the slides, then fill the ticket in at most six lines. Compare with the opening prediction and name what actually changed.