~/talk

Training an LLM from Scratch, Locally

slides:none on file

Claims that a usable LLM can be trained locally are backed by a runnable repo: PyTorch code split into model.py, train.py and generate.py, runnable on a laptop with ~16 GB or Google Colab T4. The workshop actually builds a GPT‑2–style model with a 65‑token char tokenizer, block size 256, 6 layers, 6 heads, 384 embeddings (~1.8M parameters), trains ~5,000 steps with 100‑step warmup and batch 64, watches loss fall (decent outputs near loss ~1.0, overfit around 2,400), and generates Shakespeare‑like verses.

AI-written summary · about

  1. 0:00Introduction and background of the speaker
  2. 1:21Overview of the workshop objectives
  3. 3:12Inspiration from Andre Karpathy's NanoGPT
  4. 4:37The four fundamental building blocks of an LLM
  5. 7:08Prerequisites and setup tools (UV, Python, hardware requirements)
  6. 9:06Part 1: The Tokenizer (character-level tokenization explained)
  7. 24:29Model architecture and parameters (vocab size, layers, embeddings)
  8. 30:13The GPT class structure and transformer blocks
  9. 37:52Parameter count and model sizing
  10. 40:54The training loop: objectives and next-token prediction
  11. 44:44Optimization and learning rate strategies (warm-up and cosine decay)
  12. 47:56Validation and monitoring loss
  13. 53:07Part 3: Text generation and inference strategies
  14. 56:30Putting it all together (project file structure)
  15. 58:46Monitoring training and debugging common issues
  16. 1:00:27Workshop challenge and competition details
  17. 1:05:24Q&A: Differences between base models and reasoning models
  18. 1:11:31Q&A: Applying these concepts to audio and multimodal models
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.