PJ's Guide to
Large Language Models & Modern AI

*** NEW!! UPDATED FOR 2026 GRADUATE SYLLABUS: GRPO VERIFIABLE REASONING, MULTI-HEAD LATENT ATTENTION (MLA), FLASHATTENTION-3 & SPECULATIVE DECODING *** BEST VIEWED IN NETSCAPE NAVIGATOR 4.7 AT 800x600 *** PLEASE DO NOT CRINKLE CHEESE WRAPPERS IN THE LECTURE HALL ***
PJ with Scaled Dot-Product Attention and Softmax Partition Function
Fig 0.1 — Autoregressive Attention
Attention(Q, K, V) = softmax( QKT / √dk + M ) V

Ms. PJ contemplating the variance of high-dimensional query-key inner products.

It is a little known fact that Ms. PJ—in addition to her sold-out sterling-spoon DJ residencies on the lunar surface—is a leading authority on autoregressive Transformer architectures and deep learning theory. Not content with merely spinning 138 BPM acid house and monitoring neighborhood squirrels from a sunny windowsill, in the following pages she will guide you through the graduate-level mathematics of the Large Language Models that power modern artificial intelligence.




Prof. PJ in ceremonial doctoral regalia (cable-knit)
Chinchilla Frontier
L(N, D) = E + A/Nα + B/Dβ

Prof. PJ in ceremonial doctoral knitwear preparing her lecture on compute-optimal scaling.


Lecture Index — Graduate Curriculum in Modern LLMs

Students are advised to proceed sequentially through Chapters 1 to 5. Familiarity with multivariable calculus, linear algebra (spectral decompositions, matrix calculus), probability theory (KL divergence, exponential families), and GPU memory hierarchies is assumed. Peanut butter is permitted in the seminar room; vacuum cleaners are grounds for immediate academic expulsion.

1. Tokenization, Embeddings & RoPE
BPE, Unigram LM, tied unembedding matrices, sinusoidal encodings, Rotary Position Embeddings (RoPE) proof, ALiBi & YaRN extrapolation.
2. Attention, GQA, MLA & FlashAttention
Variance scaling derivation, causal masking, MHA/MQA/GQA/MLA KV-cache math, Pre-LN RMSNorm, SwiGLU, and IO-aware SRAM tiling with online softmax.
3. Pre-Training, AdamW & Scaling Laws
Cross-entropy & perplexity, AdamW decoupled weight decay, Chinchilla Lagrange-multiplier derivation, BF16/FP8, ZeRO/FSDP & 3D Parallelism.
4. Post-Training: RLHF, DPO, GRPO & LoRA
SFT, Bradley-Terry rewards, KL-regularized PPO closed-form Gibbs policy, DPO derivation, GRPO verifiable reasoning (RLVR), and LoRA/QLoRA.
5. Inference Systems, Sparse MoE & Quantization
Prefill vs. Decode roofline analysis, PagedAttention, lossless Speculative Decoding proof, Sparse MoE auxiliary load balancing, GPTQ/AWQ/FP8.
Snout-Glossary of Modern AI Terms
An A–Z technical lexicon from Activation Checkpointing and Attention Sinks to ZeRO Stage-3.
PJ's Guide to LLMs Academic Wallpapers
High-glamour dachshund portraiture paired with essential Transformer & RLHF equations for your 1024×768 CRT desktop.
Reference Data & About the Author
Master equation cheat-sheet, GPU arithmetic intensity table (H100 / B200), and biography of Prof. PJ, Ph.D.
Note from the Faculty Chair: Just as Hedy Lamarr pioneered frequency-hopping spread spectrum between Hollywood shoots, Ms. PJ formulated the optimal KV-cache eviction heuristic while lying completely horizontal on a living-room windowsill. If you cite these notes in your NeurIPS or ICML submission, kindly remit one (1) jar of crunchy peanut butter to the Department of Lunar Machine Learning.

You are graduate student visitor number: 0048292

HTML 4.01 STRICT-ISH MADE WITH NOTEPAD.EXE 800x600 ENHANCED ZERO SQUIRRELS CERTIFIED

© 1999–2026 PJ's Guide to Large Language Models • Department of Autoregressive Dachshund Theory, Tycho Crater Campus • Back to PJPJ.SPACE