chizkidd.github.ioGitHub

ml-viz

Interactive explainers for ML, RL, optimization, architectures, speech, and LLM inference. Each one is built from an experiment I actually ran, and every chart says whether its numbers are measured or simulated.

LLM inference

Inference Playground

Continuous batching with prefill budgets & KV caps, paged KV cache, decode roofline & KV crossover, and the Stage 12 → 13 → 14 progression against vLLM on Tesla T4.

measured simulated
LLM inference

Speculative Decoding & Int8 Composition

Token-by-token draft, verify, and rollback; the exact speedup law; and real T4 numbers from mini-vllm Stages 6–11 showing why int8 and speculation fail to multiply.

measured computed live
GPU kernels

FlashAttention tiling

Step through the tiles and watch the online softmax keep a running max and rescale, without ever storing the full attention matrix. Checked against naive attention live.

computed live
Architectures

Mixture-of-Experts Routing & Capacity

Watch top-k tokens overflow expert capacity buffers, compare router collapse against Switch aux loss and DeepSeek aux-loss-free bias, and explore active vs total serving memory.

computed live formula
Optimization

Muon, MuonClip & Matrix Orthogonalization

Watch quintic Newton-Schulz iterations snap gradient singular values toward 1 without an SVD, compare SGD/AdamW/Muon on ill-conditioned matrices, and cap QK logit spikes.

computed live
Speech

Igbo tone-loss explorer

21 single-speaker recordings with inline audio, base-letter-aware 8-class alignment (0/32 tone marks reproduced), Levenshtein CER/WER profiles, and exact discrete resample checks.

measured computed live
Reinforcement learning

TD(λ) and the deadly triad

Watch eligibility traces spread credit backwards, sweep lambda on the 19-state random walk, then see Baird's counterexample diverge and TDC rescue it.

computed live
Reinforcement learning

Policy Gradients, Baselines & Actor-Critic

Sutton & Barto Ch. 13: why stochastic policies beat ε-greedy in the Short Corridor, how learned baselines slash REINFORCE variance, and online Actor-Critic vs Monte Carlo.

computed live