Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Let's build GPT: from scratch, in code, spelled out.

    Andrej Karpathy

    14 HN recommenders · recommended in 12 months, 2023–2025

    YouTube

    1:56:20 · 8.2M views · Jan 17, 2023

    Andrej Karpathy builds a GPT from scratch in code, following Attention Is All You Need and GPT-2/3, in about two hours using PyTorch. He connects it to ChatGPT and assumes familiarity with his earlier makemore videos.

    It is the go-to recommendation for learning how transformers and LLMs actually work, praised for its clarity and Karpathy's teaching.

    AI, Machine Learning & DataLLMs & generative AIMachine learning & deep learning
    1. 20:39
      AI Language Models & Transformers - ComputerphileComputerphile354K views • 7 years ago
    2. 3:31:24
      Deep Dive into LLMs like ChatGPTAndrej Karpathy10M views • 1 year ago
    3. 27:14
      Transformers, the tech behind LLMs | Deep Learning Chapter 53Blue1Brown12M views • 2 years ago
    4. 42:40
      State of GPT | BRK216HFSMicrosoft Developer786K views • 3 years ago
    5. 2:13:35
      Let's build the GPT TokenizerAndrej Karpathy1.3M views • 2 years ago
    6. 59:48
      [1hr Talk] Intro to Large Language ModelsAndrej Karpathy4.3M views • 2 years ago
    7. 1:57:45
      The spelled-out intro to language modeling: building makemoreAndrej Karpathy1.3M views • 4 years ago
    8. 8:25
      Large Language Models from scratchGraphics in 5 Minutes375K views • 4 years ago
    9. 1:31:13
      A Hackers' Guide to Language ModelsJeremy Howard580K views • 3 years ago
    10. 2:25:52
      The spelled-out intro to neural networks and backpropagation: building microgradAndrej Karpathy4.4M views • 4 years ago
    11. 28:48
      LSTM is dead. Long Live Transformers!Seattle Applied Deep Learning541K views • 6 years ago
    12. 48:32
      Sparks of AGI: early experiments with GPT-4Sebastien Bubeck1.8M views • 3 years ago
    13. 27:07
      Attention Is All You NeedYannic Kilcher814K views • 8 years ago
    14. 26:10
      Attention in transformers, step-by-step | Deep Learning Chapter 63Blue1Brown4.9M views • 2 years ago
    15. 1:22:38
      CS480/680 Lecture 19: Attention and Transformer NetworksPascal Poupart374K views • 7 years ago
    16. 30:10
      The Inside Story of ChatGPT’s Astonishing Potential | Greg Brockman | TEDTED1.9M views • 3 years ago
    17. 36:02
      ChatGPT with Rob Miles - ComputerphileComputerphile517K views • 3 years ago
    18. 19:20
      GPT-4chan: This is the worst AI everYannic Kilcher1M views • 4 years ago
    19. 25:57
      GPT3: An Even Bigger Language Model - ComputerphileComputerphile446K views • 6 years ago
    20. 29:43
      OpenAI Codex Live DemoOpenAI913K views • 5 years ago

    20 comments from Hacker News

    1. @wesammikhailMay 2023· in “Google DeepMind CEO Says Some Form of AGI Possible in a Few Years”

      Andrej Karpathy, the director of AI at tesla, published an AMAZING video about how the current models are built which I think everyone in the tech space should watch. It is intuitive, easy to follow and quite frankly the best video I have seen on the topic. Here is the link: this video If you conclude, after watching this, that this is all intelligence is - namely cascading optimization and data structure problems chained in a row, then you and a fair number of people here wont ever find common ground. That is not to say that you're wrong, it just seems as if there is a missing component here that we haven't yet discovered.

      Strongly recommendsView on HN
    2. @villedespommesJan 2024· in “Implementing a ChatGPT-like LLM from scratch, step by step”

      +1, Andrey is an amazing educator! I'd also recommend his this video and checking out his github repos. MinGPT, for example, implements a small gpt model that's compatible with HF API, whereas more modern nanoGPT shows how to use newer features such as flash attention. The quality of every video, every blog post is just so high.

      Strongly recommendsView on HN
    3. @yonzJan 2023· in “The Transformer Family”

      Great compilation, would be great to see Vision Transformer (ViT) included. Andrej Karpathy's GPT video is a must have companion for this this video I was going nuts trying to grok Key, Query,Position and Value until Andrej broke it down for me.

      Strongly recommendsView on HN
    4. @durdnFeb 2023· in “GPT in 60 Lines of NumPy”

      Very impressive. Recently I watched this really amazing lecture on building GPT from scratch from Karpathy, I was blown away: this video

      Strongly recommendsView on HN
    5. @qazpotMar 2023· in “Flow-Based Programming, a way for AI and humans to develop together”

      I think you are taking a very major assumption that LLMs are deterministic infact they are exactly opposite. They are probabilistic systems. - They do not transpile Rough English to Deterministic English. Infact they do not do any transpiling at all. - LLMs learn the probabilities of words in the dataset for all contexts from that dataset (context is a ordered set of words). This is called training. - Once training is done, LLMs can generate text given a prompt and the probabilities that it has learned. The analogy of LLMs being auto-complete on steroids is very apt. - Whether the text generated by LLMs is factual or not is purely coincidental. I would highly recommend watching and working though the code (if possible) of NanoGPT by Andrej Karpathy. this video A lot of things which seem like magic about LLMs will get demystified. Now one can argue that LLMs are showing human like reasoning/intelligence/sentience as an emergent behavior. This is hard to argue against because all these terms are extremely hard to define. IMO, the only emergent behavior that LLMs are showing is the output they generate looks like it might have been generated by a human which should not be surprising given that LLMs like ChatGPT has trained on a large amount of human written text available on internet.

      RecommendsView on HN