Macalinao StudioLearnAll foundation lessons ↗

3 INFERENCE TOPICS / TWO LEVELS / FULL LOCAL NARRATION

Remember. Route.
Draft and verify.

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

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

EXTENSION moe

Mixture of experts: route work, retain capacity

Compute a routed mixture, distinguish active from total parameters, and investigate load imbalance.

7 sections per path · full local narration · connected experiments

EXTENSION speculative

Speculative decoding: draft, verify and correct

Trace accepted prefixes, derive a corrected sampling example, and test when drafting pays off.

7 sections per path · full local narration · connected experiments

Continue into attention architecture

Grouped-query, latent and sparse attention: both levels →

Continue into attention architecture

Rotary position embeddings, FlashAttention and quantization: both levels →