🧠 11-Page Multi-Page Masterclass ⚡ 20 Live Browser Wasm Labs 🏆 Top 10 Frontier & Open-Weights LLMs

LLM Engineering Masterclass Bootcamp: From Transformer Math & LoRA/QLoRA to RLHF, HITL & Frontier Serving

A comprehensive 10-module multi-page systems & mathematical curriculum covering the 75-year history of language models, Byte-Level BPE tokenization, modern Transformer blocks (GQA, MLA, RoPE, SwiGLU, Sparse MoE), Chinchilla scaling laws, Supervised Fine-Tuning (SFT), LoRA/QLoRA/DoRA, RLHF/DPO/GRPO alignment, Human-in-the-Loop (HITL) active learning flywheels, vLLM PagedAttention & quantization, and the Top 10 Frontier LLM Models Directory.

End-to-End LLM Systems Curriculum

Curriculum Architecture: 4 Phases • 10 Dedicated Multi-Page Modules

Click any module card below to open its full chapter & Wasm labs
Phase 1 • Modules 1–3 🧬
History, Tokenization & Transformer Math

Shannon N-grams to Vaswani 2017, Chinchilla C ≈ 6ND, Byte-Level BPE, Matryoshka embeddings, GQA, MLA, RoPE, RMSNorm, SwiGLU & Sparse MoE.

Phase 2 • Modules 4–6 ⚡
Pre-Training, SFT & LoRA / QLoRA PEFT

ZeRO/FSDP 16Ψ sharding, Top-P/Min-P samplers, RAG vs. FT decision rules, -100 assistant loss masking, and LoRA/QLoRA/DoRA.

Phase 3 • Modules 7–9 🛡️
RLHF/DPO/GRPO, Human-in-Loop & Serving

Bradley-Terry RM, PPO vs. DPO vs. KTO vs. DeepSeek GRPO, HITL approval gateways & Cohen’s κ, vLLM PagedAttention, FP8, AWQ & GGUF.

Phase 4 • Module 10 🏆
Top 10 Frontier LLMs & Staff Capstone

Interactive 2026 Frontier & Open-Weights Leaderboard (Claude Opus 5.5, GPT-6, Gemini 3.8, Llama 4, Qwen 3.8), cascade router, and Staff Exam.

📜 Module 1 • Phase 1 26 min study

History of Language Models — From Shannon N-Grams & RNNs to Transformers, Scaling Laws & Reasoning Models

Trace the 75-year evolution of language modeling: Claude Shannon’s 1948 information theory and N-gram Markov chains, Word2Vec embeddings, LSTM/Seq2Seq recurrence bottlenecks, Vaswani’s 2017 Transformer breakthrough, Encoder (BERT) vs. Decoder (GPT) divergence, Chinchilla Compute-Optimal Scaling Laws, and 2025–2026 Sparse MoE & Test-Time Reasoning Models.

2 Live Wasm Labs Open Module 1 →
🔤 Module 2 • Phase 1 28 min study

Tokenization Algorithms (Byte-Level BPE, WordPiece, Unigram), Vocabulary Design & Vector Embeddings

Master how raw UTF-8 text becomes integer token IDs and dense vectors: training and encoding Byte-Pair Encoding (BPE) from scratch, tiktoken pre-tokenization regexes, WordPiece vs. Unigram LM, special control tokens (<|im_start|>, <|tool_call|>), vocabulary size trade-offs, and Matryoshka vector embeddings.

2 Live Wasm Labs Open Module 2 →
🧬 Module 3 • Phase 1 32 min study

Modern Transformer Architecture — GQA/MLA Attention, RoPE, SwiGLU, RMSNorm & Sparse MoE

Look inside a 2026 frontier Transformer block (Llama 4, DeepSeek-V3, Qwen 3.8): Scaled Dot-Product Causal Attention, Multi-Head (MHA) vs. Grouped-Query (GQA) vs. Multi-Head Latent Attention (MLA), Rotary Position Embeddings (RoPE), Pre-Norm RMSNorm, SwiGLU FFNs, and Sparse Mixture-of-Experts (MoE) routing.

2 Live Wasm Labs Open Module 3 →
🌐 Module 4 • Phase 2 28 min study

Pre-Training Pipelines, Distributed Parallelism (ZeRO/FSDP/3D) & Autoregressive Decoding Samplers

Master how frontier LLMs are pre-trained and sampled: web-scale MinHash deduplication, Causal Cross-Entropy & Perplexity, mixed-precision AdamW memory math (16B/param), ZeRO-1/2/3 & FSDP sharding, Tensor/Pipeline/Context Parallelism, and autoregressive sampling (Temperature, Top-K, Top-P Nucleus, Min-P, and Speculative Decoding).

2 Live Wasm Labs Open Module 4 →
🎯 Module 5 • Phase 2 28 min study

Supervised Fine-Tuning (SFT), Instruction Datasets, Assistant-Only Loss Masking & Distillation

Know exactly when to use Prompting vs. RAG vs. Fine-Tuning, how to format multi-turn ChatML instruction datasets, why Assistant-Only Completion Loss Masking (label_id = -100) is critical, how Multipack sequence packing avoids padding waste, and how to distill a 400B teacher into an 8B student with execution-verified rejection sampling.

2 Live Wasm Labs Open Module 5 →
⚡ Module 6 • Phase 2 34 min study

LoRA, QLoRA, DoRA & Parameter-Efficient Fine-Tuning (PEFT) — Mathematical & Production Blueprint

Master Low-Rank Adaptation (LoRA) and 4-bit QLoRA from mathematical equations to production hyperparameters: intrinsic dimensionality, W = W_0 + (α/r)BA matrix decomposition, initialization invariants (A ~ N(0,σ²), B = 0), target_modules selection, 4-bit NormalFloat (NF4), Double Quantization, Paged Optimizers, DoRA, rsLoRA, and Multi-LoRA serving in vLLM.

2 Live Wasm Labs Open Module 6 →
🧭 Module 7 • Phase 3 30 min study

Post-Training Alignment — RLHF (PPO), Direct Preference Optimization (DPO), KTO & GRPO Reasoning

Master modern post-training alignment: why SFT needs preference optimization, the Bradley-Terry Reward Model and 4-model PPO pipeline, Direct Preference Optimization (DPO) closed-form loss derivation, KTO (unpaired binary feedback), ORPO, and DeepSeek-R1’s Group Relative Policy Optimization (GRPO) for verifiable reasoning.

2 Live Wasm Labs Open Module 7 →
🛡️ Module 8 • Phase 3 28 min study

Human-in-the-Loop (HITL) Architecture, Active Learning Data Flywheels, Annotation QA & LLM Evals

Engineer production Human-in-the-Loop (HITL) LLM pipelines: runtime action-risk approval gateways (interrupt/resume state machines), active learning uncertainty routing (token logprob entropy & k-sample disagreement), inter-annotator agreement (Cohen’s Kappa κ & Bradley-Terry Arena ranking), and position-debiased LLM-as-a-Judge evaluations.

2 Live Wasm Labs Open Module 8 →
🚀 Module 9 • Phase 3 30 min study

LLM Inference Engines (vLLM & SGLang), PagedAttention, Quantization (AWQ, GPTQ, FP8, GGUF) & Speculative Decoding

Master production LLM inference systems: why Prefill is compute-bound (TTFT) while Decode is memory-bandwidth-bound (TPOT/ITL), the Roofline Arithmetic Intensity equation, vLLM PagedAttention virtual memory blocks, Continuous Batching, SGLang RadixAttention prefix caching, and quantization formats (FP8, AWQ, GPTQ, SmoothQuant, GGUF).

2 Live Wasm Labs Open Module 9 →
🏆 Module 10 • Phase 4 40 min study

Frontier & Open-Weights LLM Models Directory, Architecture Lineage & Staff Capstone Exam

Compare the top proprietary and open-weights LLM models of 2026 (Claude Opus 5.5, GPT-6 Astra/Sol/Luna, Claude Fable 5.1, Gemini 3.8 Flash, Llama 4 Maverick & 10M-context Scout, Qwen3.8 235B, DeepSeek-V3/R1, and Meta Muse Glimmer) across SWE-bench, GPQA, context windows, and $/1M token cost—then pass the 10-question Staff LLM Architect Capstone Exam.

1 Live Wasm Lab + Top 10 LLM Matrix Open Module 10 →

Try the Embedded Browser LLM Math & Attention WebAssembly Sandbox

▶ Interactive Wasm Lab

Quick-Start Live Sandbox: Scaled Dot-Product Causal Self-Attention & LoRA Parameter Compression

Click "Run & Edit Live (Wasm)" to execute causal self-attention and LoRA low-rank matrix math right in your browser.

import math

# 1. Scaled Dot-Product Causal Self-Attention: softmax(Q K^T / sqrt(d_k) + CausalMask) V
def causal_self_attention(Q: list[list[float]], K: list[list[float]], V: list[list[float]]) -> list[list[float]]:
    seq_len, d_k = len(Q), len(Q[0])
    scale = 1.0 / math.sqrt(d_k)
    output = []
    for i in range(seq_len):
        # Token i can only attend to prefix j <= i (Causal Lower-Triangular Mask!)
        scores = [sum(Q[i][d] * K[j][d] for d in range(d_k)) * scale for j in range(i + 1)]
        m = max(scores)
        exps = [math.exp(s - m) for s in scores]
        weights = [e / sum(exps) for e in exps]
        out_i = [sum(weights[j] * V[j][d] for j in range(i + 1)) for d in range(d_k)]
        output.append([round(v, 4) for v in out_i])
    return output

Q = [[1.0, 0.2], [0.5, 0.9], [0.8, 0.7]]
K = [[1.0, 0.1], [0.4, 0.8], [0.9, 0.6]]
V = [[0.2, 0.8], [0.6, 0.3], [0.9, 0.1]]
print("[1] 3-Token Causal Self-Attention Output Vectors:")
for pos, vec in enumerate(causal_self_attention(Q, K, V)):
    print(f"    Token pos={pos} -> {vec}")

# 2. LoRA Rank Compression Calculator (70B Model: 80 layers, d_model=8192, r=16)
d_model, n_layers, rank = 8192, 80, 16
full_layer_params = d_model * d_model
lora_layer_params = 2 * d_model * rank
print(f"\n[2] LoRA Compression (d={d_model}, rank r={rank}):")
print(f"    Full Projection W_0: {full_layer_params:,} params | LoRA (B@A): {lora_layer_params:,} params ({100*lora_layer_params/full_layer_params:.2f}%)")
100% LLM Specification & Lifecycle Coverage

Complete LLM Concepts, Equations & Systems Reference Map

End-to-End LLM Engineering Pillars Covered Across Modules 1–10
LLM Engineering Pillar Core Concepts, Algorithms & Mathematical Formulations Deep-Dive Module
1. Lineage & Scaling Laws N-grams, Word2Vec, LSTM/Seq2Seq bottleneck, Encoder (BERT) vs. Decoder (GPT), Chinchilla C ≈ 6ND (20 tok/param), over-trained compact models, and Test-Time Compute scaling. Module 1 →
2. Tokenization & Embeddings Byte-Level BPE training & merge priority, tiktoken regex pre-tokenization, WordPiece, Unigram LM, ChatML special tokens, token fertility, and Matryoshka (MRL) embeddings. Module 2 →
3. Modern Transformer & MoE Scaled Dot-Product Causal Attention, MHA vs. GQA-8 vs. DeepSeek Latent MLA, FlashAttention tiling, Pre-RMSNorm, RoPE + YaRN, SwiGLU FFN, and Sparse Top-K MoE routers. Module 3 →
4. Pre-Training & Samplers MinHash LSH deduplication, mixed-precision 16Ψ AdamW state math, ZeRO-1/2/3 (FSDP), Tensor/Pipeline/Context Parallelism, Temperature, Top-K, Top-P Nucleus, Min-P & Speculative Decoding. Module 4 →
5. SFT & Dataset Distillation Prompting vs. RAG vs. Fine-Tuning decision matrix, ChatML templates, Assistant-Only Loss Masking (label_id = -100), Multipack sequence packing, and execution-verified rejection sampling. Module 5 →
6. LoRA, QLoRA & PEFT W = W₀ + (α/r)BA, step-0 B = 0 identity invariant, target_modules="all-linear", 4-bit NormalFloat (NF4), Double Quantization, Paged Optimizers, DoRA, rsLoRA, and Multi-LoRA serving. Module 6 →
7. RLHF, DPO & GRPO Reasoning Bradley-Terry Reward Modeling, 4-model PPO with KL penalty, Direct Preference Optimization (DPO), unpaired KTO, reference-free ORPO, and DeepSeek-R1 Critic-free GRPO with verifiable rewards. Module 7 →
8. Human-in-the-Loop & Serving Synchronous HITL action-risk approval gateways, inline human edit → DPO pair flywheel, Active Learning entropy routing, Cohen’s Kappa (κ), debiased LLM-as-a-Judge, vLLM PagedAttention, FP8, AWQ, GPTQ & GGUF. Module 8, 9 & 10 →
Companion Systems Course

🐍 10-Module Python Engineering Masterclass

Master CPython PyObject memory models, PEP 703 No-GIL concurrency, all 20 data structures, and the Top 100 Python Coding Problems.

Open Python Masterclass →
Autonomous Systems Track

🤖 9-Module AI Agent Developer Bootcamp

Orchestrate LLMs into production ReAct agents, FastMCP tool servers, A2A AgentCard peers, and LangGraph multi-agent swarms.

Open AI Agent Bootcamp →