Back to directory

Transformers & LLMs cheatsheet for Stanford's CME 295

A VIP cheatsheet summarizing Stanford's CME 295 course on Transformers and Large Language Models, covering self-attention, fine-tuning methods, distributed training and applications such as AI agents.

Transformers & LLMs cheatsheet for Stanford's CME 295

This VIP cheatsheet summarizes the material covered in Stanford's CME 295 Transformers and Large Language Models course. It covers transformer architecture and variants, self-attention, and LLM techniques such as prompting, fine-tuning methods including SFT and LoRA, and preference-tuning methods including RLHF and DPO.

It also covers optimizations such as distributed training, KV caching and speculative decoding, and applications including AI agents, evaluation and extensions such as diffusion-based LLMs. The cheatsheet is a condensed companion to a longer book, "Super Study Guide: Transformers & Large Language Models," and is translated into more than a dozen languages.

More in Tutorials

See all 478
  • BootLife

    github.com

    Conway's Game of Life implemented to run directly from a 512-byte x86 boot sector in assembly, using VGA memory itself as the simulation grid.

  • A technical blog post deriving the Y combinator as a composition of combinator birds in an array language, and examining how eager evaluation changes fixed-point recursion compared with the usual lazy telling.

  • System Design Atlas

    atlas-sysdes.vercel.app

    A free reference of worked system design problems with interactive architecture diagrams, covering ranked designs such as a feed, a chat app, a URL shortener, and a rate limiter, plus pages on the technologies behind them.