Macalinao StudioLearnAll foundation lessons ↗

3 TRANSFORMER SYSTEMS TOPICS / TWO LEVELS / FULL LOCAL NARRATION

Position. Compute.
Choose precision.

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 rope

Rotary position embeddings: turn position into geometry

Rotate coordinate pairs, derive relative-position scores, and test cache and context-length assumptions.

7 sections per path · full local narration · connected experiments

EXTENSION flash

FlashAttention: the same answer with less memory traffic

Trace stable online softmax, merge tile statistics, and distinguish temporary memory savings from sparse attention or cache compression.

7 sections per path · full local narration · connected experiments

EXTENSION quantization

Quantization: trade numerical resolution for storage

Quantize and reconstruct values, separate clipping from rounding, account for metadata, and evaluate model-level tradeoffs.

7 sections per path · full local narration · connected experiments

Continue into model adaptation

LoRA, QLoRA and knowledge distillation: both levels →