Notes
Things I studied, rewritten short. Each note keeps the core idea, the math that matters and something to play with.
Training systems
How large models train across many GPUs: parallelism and async RL.
Async RL: train while the rollouts are still running
Move GRPO from a generate-then-train loop to two GPU pools that run at the same time, then bound how stale the data gets and correct the loss for it. How verl fully_async_policy and AReaL do each part.
Expert parallelism: move the tokens, not the experts
Expert parallelism gives each GPU a slice of the MoE experts and sends every token to the GPU that owns its expert with two all-to-alls per layer. A walk through the Qwen3-Omni MoE implementation in LMMs Engine.
Multi-teacher on-policy distillation
How one student model learns from several specialist teachers on its own samples: why on-policy, the per-token loss and its estimators, what changes with more than one teacher, and how to keep the teacher GPUs busy.
Optimisation
Optimisers, and the math that makes them work.
Architectures
Model designs, one paper or one model at a time.
Qwen3 Omni vs VL MoE: a list of experts or one tensor
Qwen3 Omni stores each expert as its own MLP module and loops over them. Qwen3 VL stacks all experts into two tensors and, at inference, runs them with two batched matmuls. That storage choice decides how easily the layer shards across GPUs.
Kimi K3: a fixed-size memory, 896 experts, cheap sandboxes
Kimi K3 runs 69 of its 93 layers as Kimi Delta Attention, a linear attention with one fixed 128×128 state per head, and spends the budget on an 896-expert MoE and agentic RL in microVMs. This note prices each part and marks what the sources do not prove.
Engram: look up fixed patterns instead of recomputing them
Engram hashes the last 2 and 3 tokens into rows of large learned tables, gates what it reads against the hidden state, and adds it to the residual stream. Memory becomes a second kind of sparsity next to MoE.
NEO: one transformer reads pixels and words
NEO drops the vision encoder. Image patches enter the same layers as text, and new row and column RoPE channels give the image a 2D layout without touching the LLM.
SenseNova-U1: one backbone that reads and draws pixels
A native multimodal model with no vision encoder and no VAE. Two weight streams share one attention: one reads clean 32×32 pixel patches, the other turns noisy patches into clean ones.
OneVision-Encoder: spend video tokens only on surprise
A video codec already marks the patches that the previous frame cannot predict. OneVision-Encoder keeps only those patches, from 64 frames, and gives them to a plain ViT at the token cost of 8 frames.
Generative & world models
Diffusion, flow matching and prediction in latent space.
Diffusion: compress, add noise, learn to remove it
Image and video generators compress pixels into a VAE latent, train a Transformer to remove noise from it, and sample along nearly straight paths. This note follows that spine from DDPM to video DiTs.
JEPA: predict the embedding, not the pixels
Hide part of an image or video and predict the embedding of the hidden part. The line from I-JEPA to V-JEPA 2-AC, LeJEPA and VL-JEPA: the mechanism, the collapse problem, and what the evidence says about LeCun’s case.
Agents
How LLM agents are built, trained, and made to improve themselves.
A model in a loop: how frontier LLM agents are built
Every frontier agent calls a model in a loop. The products differ in the harness around it: tools, context and the prompt cache, subagents, sandboxes and evals. A snapshot of 2026-10.
Training LLM agents: the loss stayed, the plumbing changed
How labs trained search and coding agents in 2025–2026: environments as data, one shared stage pipeline, a masked group-advantage RL loss, and the hygiene, context and infrastructure work that decides whether a run works.
Recursive self-improvement: the verifier sets the ceiling
Models that train on their own output, agents that rewrite their own code, and agents that do AI research: how the 2025–2026 loops work, where each one stops, and what the evidence says about an intelligence explosion.
Model behaviour
What models represent, and what they do with it.
Multi-teacher on-policy distillation
How one student model learns from several specialist teachers on its own samples: why on-policy, the per-token loss and its estimators, what changes with more than one teacher, and how to keep the teacher GPUs busy.
A model in a loop: how frontier LLM agents are built
Every frontier agent calls a model in a loop. The products differ in the harness around it: tools, context and the prompt cache, subagents, sandboxes and evals. A snapshot of 2026-10.
Training LLM agents: the loss stayed, the plumbing changed
How labs trained search and coding agents in 2025–2026: environments as data, one shared stage pipeline, a masked group-advantage RL loss, and the hygiene, context and infrastructure work that decides whether a run works.
Recursive self-improvement: the verifier sets the ceiling
Models that train on their own output, agents that rewrite their own code, and agents that do AI research: how the 2025–2026 loops work, where each one stops, and what the evidence says about an intelligence explosion.
Muon: give every direction of a matrix the same step
Muon replaces the momentum of each weight matrix with its nearest orthogonal matrix: the steepest step under the spectral norm. Five cheap polynomial steps stand in for an SVD.
Diffusion: compress, add noise, learn to remove it
Image and video generators compress pixels into a VAE latent, train a Transformer to remove noise from it, and sample along nearly straight paths. This note follows that spine from DDPM to video DiTs.
JEPA: predict the embedding, not the pixels
Hide part of an image or video and predict the embedding of the hidden part. The line from I-JEPA to V-JEPA 2-AC, LeJEPA and VL-JEPA: the mechanism, the collapse problem, and what the evidence says about LeCun’s case.
OneVision-Encoder: spend video tokens only on surprise
A video codec already marks the patches that the previous frame cannot predict. OneVision-Encoder keeps only those patches, from 64 frames, and gives them to a plain ViT at the token cost of 8 frames.
SenseNova-U1: one backbone that reads and draws pixels
A native multimodal model with no vision encoder and no VAE. Two weight streams share one attention: one reads clean 32×32 pixel patches, the other turns noisy patches into clean ones.
NEO: one transformer reads pixels and words
NEO drops the vision encoder. Image patches enter the same layers as text, and new row and column RoPE channels give the image a 2D layout without touching the LLM.
Engram: look up fixed patterns instead of recomputing them
Engram hashes the last 2 and 3 tokens into rows of large learned tables, gates what it reads against the hidden state, and adds it to the residual stream. Memory becomes a second kind of sparsity next to MoE.
Omnimodal LLMs see the false premise and answer anyway
Ask an omnimodal LLM about the man in the blue shirt when the shirt is maroon, and it answers as if the shirt were blue. A linear probe on its hidden state still detects the mismatch. The failure is in action, not in perception.
Kimi K3: a fixed-size memory, 896 experts, cheap sandboxes
Kimi K3 runs 69 of its 93 layers as Kimi Delta Attention, a linear attention with one fixed 128×128 state per head, and spends the budget on an 896-expert MoE and agentic RL in microVMs. This note prices each part and marks what the sources do not prove.
Async RL: train while the rollouts are still running
Move GRPO from a generate-then-train loop to two GPU pools that run at the same time, then bound how stale the data gets and correct the loss for it. How verl fully_async_policy and AReaL do each part.
Qwen3 Omni vs VL MoE: a list of experts or one tensor
Qwen3 Omni stores each expert as its own MLP module and loops over them. Qwen3 VL stacks all experts into two tensors and, at inference, runs them with two batched matmuls. That storage choice decides how easily the layer shards across GPUs.
Expert parallelism: move the tokens, not the experts
Expert parallelism gives each GPU a slice of the MoE experts and sends every token to the GPU that owns its expert with two all-to-alls per layer. A walk through the Qwen3-Omni MoE implementation in LMMs Engine.