~/talk

Transformers Inside Out (Parts 1 & 2)

Talkat PyData London 2025 · on Friday, 2025-06-06· at 13:30· Hardwick Hub· [large-language-models, machine-learning]
links:none on file
slides:none on file

A runnable mini‑GPT gets built with nanoGPT and PyTorch, trained on a ~35,000 knock‑knock corpus (max sequence 15, vocab ≈10,000) using a custom prepare.py and debugger‑driven walkthrough. Starting with tiny models fails; moving to a distilled GPT‑2 style stack then squeezing to one attention head and 36 embedding dimensions yields syntactically valid knock‑knock outputs (they work as knock‑knock jokes but are not reliably funny), plus interactive visualisations of embeddings, Q/K/V flows and token logits.

AI-written summary · about

  1. 0:00Introduction
  2. 3:12What is a transformer
  3. 8:32Visualizing embeddings
  4. 18:19Setting up NanoGPT
  5. 27:12Positional encoding
  6. 36:28Attention mechanisms
  7. 58:20Transformer block structure
  8. 1:08:55Feed forward networks
  9. 1:17:27Generating jokes
  10. 1:21:12Q&A
~/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.