resources

LLM Study

karpathy

Youtube: Intro to Large Language Models (1hr) Blog notes

State of GPT - Microsoft Build 2023 (42m) Learn about the training pipeline of GPT assistants like ChatGPT, from tokenization to pretraining, supervised finetuning, and Reinforcement Learning from Human Feedback (RLHF). Dive deeper into practical techniques and mental models for the effective use of these models, including prompting strategies, finetuning, the rapidly growing ecosystem of tools, and their future extensions.

Youtube: Stanford CS25: V2 I Introduction to Transformers w/ Andrej Karpathy Full CS25 playlist

Youtube: Let’s reproduce GPT-2 (124M) (4hrs) nanoGPT video code nanoGPT code We reproduce the GPT-2 (124M) from scratch. This video covers the whole process: First we build the GPT-2 network, then we optimize its training to be really fast, then we set up the training run following the GPT-2 and GPT-3 paper and their hyperparameters, then we hit run, and come back the next morning to see our results, and enjoy some amusing model generations. Keep in mind that in some places this video builds on the knowledge from earlier videos in the Zero to Hero Playlist (see my channel). You could also see this video as building my nanoGPT repo, which by the end is about 90% similar.

Deep Dive into LLMs like ChatGPT (3.5hrs) This is a general audience deep dive into the Large Language Model (LLM) AI technology that powers ChatGPT and related products. It is covers the full training stack of how the models are developed, along with mental models of how to think about their “psychology”, and how to get the best use them in practical applications. I have one “Intro to LLMs” video already from ~year ago, but that is just a re-recording of a random talk, so I wanted to loop around and do a lot more comprehensive version.

How I use LLMs (2hrs) The example-driven, practical walkthrough of Large Language Models and their growing list of related features, as a new entry to my general audience series on LLMs. In this more practical followup, I take you through the many ways I use LLMs in my own life.

Playlist: Neural Networks: Zero to Hero (10 videos) karpathy.ai/zero-to-hero.html

3b1b

Neural networks and Transformers

Sebastian Raschka

PLaylist: LLMs (4 videos)

https://sebastianraschka.com/blog/2023/self-attention-from-scratch.html

https://sebastianraschka.com/blog/2024/using-finetuning-transformers.html

https://sebastianraschka.com/blog/2023/llm-reading-list.html

github.com/rasbt/LLM-workshop-2024

Youtube: Building LLMs from the Ground Up: A 3-hour Coding Workshop

Stanford CS25: Transformers United V4

CS25 has become one of Stanford’s hottest and most seminar courses, featuring top researchers at the forefront of Transformers research such as Geoffrey Hinton, Ashish Vaswani, and Andrej Karpathy.

https://web.stanford.edu/class/cs25/

Playlist: Stanford CS25 - Transformers United (33 videos)

Playlist: Stanford CS25 - Transformers United V3 (7 videos)

Playlist: CS25 Transformers United 23

CME 295 - Transformers & Large Language Models

This course explores the world of Transformers and Large Language Models (LLMs). You’ll learn the evolution of NLP methods, the core components of the Transformer architecture, along with how they relate to LLMs as well as techniques to enhance model performance for real-world applications.

https://cme295.stanford.edu/

https://www.youtube.com/playlist?list=PLoROMvodv4rOY23Y0BoGoBGgQ1zmU_MT_

Jalmar

Mechanics of Seq2seq Models With Attention - Jalammar

The Illustrated Transformer - Jalammar

How GPT3 Works - Jalammar

Youtube: How GPT3 Works - Jalammar

Blogs / Demos

The Annotated Transformer - Harvard
https://github.com/harvardnlp/annotated-transformer/

Transformer models: an introduction and catalog — 2023 Edition
https://amatria.in/blog/transformer-models-an-introduction-and-catalog-2d1e9039f376/

Transformer Explainer App
https://poloclub.github.io/transformer-explainer/

LLM Visualization in 3d

llama3 implemented from scratch - 2024
https://github.com/naklecha/llama3-from-scratch

Transformers from Scratch - Aug 2019
https://peterbloem.nl/blog/transformers

Transformers Laid Out - Jan 2025
https://goyalpramod.github.io/blogs/Transformers_laid_out/

Youtube

Transformers & Attention 1: Self Attention - Rasa

Illustrated Guide to Transformers Neural Network: A step by step explanation

Hugging Face Course

Backprop: The Most Important Algorithm in Machine Learning

Books

Attention Mechanisms and Transformers - Ch 11

Papers

Attention Is All You Need

The Transformer Model in Equations

Also see

https://blog.infocruncher.com/study/#ml