LLM From Scratch: Tokenizers, Attention & Transformers
Construct an autoregressive large language model from mathematical foundations: BPE tokenization, multi-head causal self-attention, RMSNorm, PyTorch training loops, and nucleus sampling.
Skills & Topics Covered
MicroGPT: Complete Autoregressive Transformer from Scratch
A complete PyTorch decoder-only transformer language model built from raw tensors: custom BPE tokenizer, multi-head causal attention, SwiGLU MLP, training loss loop, and temperature text generation.
Track Syllabus
5 ModulesByte-Pair Encoding & Text Tokenization
Build a subword tokenizer from scratch using Byte-Pair Encoding (BPE), vocabulary merges, and special tokens.
Scaled Dot-Product & Causal Multi-Head Attention
Code self-attention from scratch with Queries, Keys, Values, causal triangular masking, and multi-head projection.
Transformer Blocks, Normalization & Positional Encodings
Assemble transformer blocks with RMSNorm, residual connections, SwiGLU feed-forward networks, and Rotary Positional Embeddings (RoPE).
Training Loops, Loss & Autoregressive Sampling
Train language models with Cross-Entropy loss, optimize with AdamW, and sample text with temperature, top-k, and nucleus top-p.
Capstone: Build the MicroGPT Autoregressive Transformer
Construct a complete decoder-only transformer model in PyTorch from scratch with custom tokenizer and text generator.
TechX Pro LLM From Scratch Certificate
Upon passing the module knowledge checks with an 80%+ score and submitting the capstone project, you earn this verified credential. Add it directly to your LinkedIn profile with 1 click and showcase it on your public TechX portfolio.
Requires TechX Pro Pass ($199/yr) or Summer 2027 Engineering Pod enrollment