Welcome to Cook ML
Cook ML is a new home for long-form machine learning tutorials and shorter notes. This first post explains what the site is for and how to use it.
Why another ML site
Section titled “Why another ML site”There are many good explanations of language models. Most of them pick one level: an intuitive story, a math derivation, or code. Learning tends to stick when the three are connected, so each tutorial here moves through them in order. It starts with an everyday example, then explains the mechanism, then writes the equation, and finally computes it on real numbers.
Start here
Section titled “Start here”The first series is LLM Fundamentals. It has nine chapters:
- Language modeling and next-token prediction
- Tokenization and embeddings
- Attention and positional information
- The transformer block and model anatomy
- Pretraining at scale
- Post-training, from base model to assistant
- Inference and decoding
- Using LLMs in applications
- Evaluation, reliability, and safety
The chapters share one reference model, a 7B decoder with the shape of Llama 2 7B. Parameter counts, training budgets, cache sizes, and latencies all use the same numbers, so you can cross-check them from chapter to chapter.
What comes next
Section titled “What comes next”Planned series cover transformers in depth, retrieval-augmented generation, and ML systems. Blog posts will cover papers and practical lessons in between.