Macalinao StudioLearnAttention deep dive ↗

42 LESSONS / ONE CONNECTED JOURNEY

Make the invisibleunderstandable.

Follow the idea in Signal Room. Change it in Workbench. Sit with it in Field Notes. Three ways into the same lesson, with your place kept between them.

Begin with tokens →   Explore the longer lessons →   Corrections & learning depth ↗

College learning path · high-school reading available in every lesson

42 lessons

Representation / 21

Tokens

BPE, byte-level BPE, sentencepiece. The cost trade-offs that show up at scale.

10 moments · three connected views ↗
Representation / 05

Embeddings

Token bytes, positional encoding, the semantic word map, and how scale changes what the vectors mean.

14 moments · three connected views ↗
Representation / 06

CBOW + Skip-gram

The methods worth knowing - the intuition still applies, and they show why context matters.

12 moments · three connected views ↗
Math underneath / 10

Softmax + CE

The loss function for language modeling, slowly. Where the temperature knob actually lives.

11 moments · three connected views ↗
Math underneath / 11

Next-Token

Next-token prediction, learned patterns, and why measured capabilities depend on data, scale and evaluation.

9 moments · three connected views ↗
Architecture / 07

Architectures

Why GPT looks one way, BERT another, T5 a third.

10 moments · three connected views ↗
Architecture / 12

Attention

What Q, K, V actually are. Why scaled dot-product, why softmax, why heads.

13 moments · three connected views ↗
Architecture / 22

Q / K / V

The matrices that turn embeddings into queries, keys, values.

9 moments · three connected views ↗
Architecture / 12a

Additive Attn

The Bahdanau-style variant that scaled dot-product replaced.

8 moments · three connected views ↗
Architecture / 13

Transformer Block

Attention, residuals, normalization, FFN.

13 moments · three connected views ↗
Architecture / 19

Encoder-Decoder

A return to the encoder-decoder pattern.

10 moments · three connected views ↗
Training / 02

Pretraining

Terabytes of raw text become tokens become a loss curve.

11 moments · three connected views ↗
Training / 15

Training Tricks

The optimizations that turn theoretical training into practical training.

10 moments · three connected views ↗
Training / 03

RLHF + Reasoning

The post-training pass that turns a parrot into an assistant.

11 moments · three connected views ↗
Training / 09

TRL + GRPO

What changes when reward signal comes from groups of completions.

10 moments · three connected views ↗
Training / 16

Alignment

Why preference learning ate the alignment world.

11 moments · three connected views ↗
Training / 18

PEFT + LoRA

Why LoRA is cheap, what QLoRA adds.

9 moments · three connected views ↗
Inference / 08

Inference

KV caches, batching, speculative decoding, paged attention.

12 moments · three connected views ↗
Inference / 17

The Highway

Where every previous module fits.

9 moments · three connected views ↗
Inference / 28

Local Inference

Ollama, llama.cpp, vLLM, SGLang.

11 moments · three connected views ↗
Inference / 25

HF + Git LFS

Cloning a 40 GB model. Model cards, safetensors.

12 moments · three connected views ↗
Text applications / 20

RAG + Prompting

Semantic search, hybrid retrieval, GraphRAG.

9 moments · three connected views ↗
Text applications / 27

Chat UI

Chat UI patterns. Streaming. Tool-call surfacing.

9 moments · three connected views ↗
Image / 04

Vision Transformers

Image patches, positional embeddings, and vision-transformer versus convolutional designs.

10 moments · three connected views ↗
Image / 23

Cross-Attention

Cross-attention between different sequences; distinguish it from CLIP-style contrastive embedding alignment.

11 moments · three connected views ↗
Image / 14

VAE + Diffusion

VAE compression, Stable Diffusion denoising, CLIP text conditioning.

10 moments · three connected views ↗
Image / 24

Latent + ControlNet

Walking the latent space. ControlNet conditioning.

10 moments · three connected views ↗
Video / 26v

AI Film Studios

Sora, Runway Gen-3, Luma, Kling, Higgsfield.

9 moments · three connected views ↗
Voice / 26s

Speech Synthesis

Text-to-speech generation and its distinction from Whisper speech transcription.

9 moments · three connected views ↗
Image / f-diff-math

Diffusion Math

Forward + reverse process, score matching, why noise schedules matter.

9 moments · three connected views ↗
Image / f-modern

Modern Image Models

Compare model-specific diffusion and multimodal architectures, including their encoders and latent representations.

12 moments · three connected views ↗
Image / f-ipadapter

IP-Adapter

Subject-driven generation, identity preservation across new scenes.

10 moments · three connected views ↗
Image / f-comfyui

ComfyUI as Code

Treating .json workflows as version-controlled artifacts.

10 moments · three connected views ↗
Image / f-stylelora

Style-LoRA

Locking a visual identity across hundreds of generations.

10 moments · three connected views ↗
Video / f-video-diff

Video Diffusion

Temporal coherence, frame consistency, why static-image tricks don't transfer.

10 moments · three connected views ↗
Video / f-ltx

LTX Architecture

What's inside a modern video diffusion model - shot composition, motion control.

13 moments · three connected views ↗
Video / f-persona

Persona Persistence

Keeping a character's face, costume, and lighting consistent across hundreds of frames.

9 moments · three connected views ↗
Video / f-audio-sync

Audio Sync

Lip-sync, beat-cut, the patterns underneath the AI Music Idols pipeline.

12 moments · three connected views ↗
Voice / f-stt

Whisper STT

Whisper architecture, alignment timestamps, language detection.

11 moments · three connected views ↗
Voice / f-tts

TTS Pipelines

edge-tts, ElevenLabs, voice cloning - what each tier costs in latency and quality.

10 moments · three connected views ↗
Voice / f-voice-clone

Voice Cloning

Single-shot vs few-shot cloning, where artifacts come from, ethical guardrails.

11 moments · three connected views ↗
Voice / f-attendant

Voice Attendant

Turn-taking, speech recognition, response generation and synthesis: measure the complete latency budget.

11 moments · three connected views ↗