Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
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
    E

    e2eml School

    e2eml.school · Personal blog · on HN since 2021

    e2eml School, run by Brandon Rohrer, publishes machine learning teaching material, including a from-scratch explanation of transformers.

    Visit blogHN submissions
    AI & Machine Learning
    What HN says

    HN commenters repeatedly recommend its Transformers from Scratch article as a clear, in-depth introduction to how transformers work.

    Stats for nerds
    23HN people shared it
    10linked in comments
    230story points
    Jul 2024last shared
    2021people per year2024

    Top posts on HN

    1. 1
      Transformers from Scratch
      19 people · 224 points · first shared 2021 · 17 comments on HN
    2. 2
      Sharpened Cosine Similarity for Neural Networks
      2 people · 5 points · first shared 2022 · Discussion on HN
    3. 3
      What to do when a leader does something wrong (2019)
      1 person · 1 points · first shared 2024 · Discussion on HN
    4. 4
      Blog
      1 person · first shared 2023

    What HN people wrote when they linked it

    • kromemFeb 2024

      The Markov chain by definition satisfies the Markov property (https://en.m.wikipedia.org/wiki/Markov_property).

      If you want a more in depth sense of why it's not, look at the following link that describes the transformer architecture in detail and specifically goes over moving from a Markov process to one that no longer satisfies it, specifically around the following paragraph:

      > The first thing that becomes apparent is that, when trying to predict the word that comes after ran, we no longer look at just one line, but rather a whole set of them. We've moved out of the Markov realm now. Each row no longer represents the state of the sequence at a particular point. Instead, each row represents one of many features that may describe the sequence at a particular point. The combination of the most recent word with each of the words that came before makes for a collection of applicable rows, maybe a large collection. Because of this change in meaning, each value in the matrix no longer represents a probability, but rather a vote. Votes will be summed and compared to determine next word predictions.

      - https://e2eml.school/transformers.html

    • jayalammarMay 2023

      I'm the author of https://jalammar.github.io/illustrated-transformer/ and have spent years since introducing people to Transformers and thinking of how best to communicate those concepts. I've found that different people need different kinds of introductions, and the thread here includes some often cited resources including:

      https://peterbloem.nl/blog/transformers

      https://e2eml.school/transformers.html

      I would also add Luis Serrano's article here: https://txt.cohere.com/what-are-transformer-models/ (HN discussion: https://news.ycombinator.com/item?id=35576918).

      Looking back at The Illustrated Transformer, when I introduce people to the topic now, I find I can hide some complexity by omitting the encoder-decoder architecture and focusing only on one. Decoders are great because now a lot of people come to Transformers having heard of GPT models (which are decoder only). So for me, my canonical intro to Transformers now only touches on a decoder model. You can see this narrative here: https://www.youtube.com/watch?v=MQnJZuBGmSQ

    • MAXPOOLJul 2024

      There are many others that are better.

      1/ The Annotated Transformer Attention is All You Need http://nlp.seas.harvard.edu/annotated-transformer/

      2/ Transformers from Scratch https://e2eml.school/transformers.html

      3/ Andrej Karpathy has really good series of intros: https://karpathy.ai/zero-to-hero.html Let's build GPT: from scratch, in code, spelled out. https://www.youtube.com/watch?v=kCc8FmEb1nY GPT with Andrej Karpathy: Part 1 https://medium.com/@kdwa2404/gpt-with-andrej-karpathy-part-1-865bec6fbcce

      4/ 3Blue1Brown: But what is a GPT? Visual intro to transformers | Chapter 5, Deep Learning https://www.youtube.com/watch?v=wjZofJX0v4M Attention in transformers, visually explained | Chapter 6, Deep Learning https://www.youtube.com/watch?v=eMlx5fFNoYc Full 3Blue1Brown Neural Networks playlist https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi

    • KirillPanovOct 2023

      No, I didn't!

      Before I came across that image (and the paper Linearized Transformers are Secretly Fast Weight Programmers) I very much did not understand transformers. I had spent at least 20 hours with Attention Is All You Need, and probably another dozen hours with https://e2eml.school/transformers.html and wasn't getting much of anywhere. I have no ML/AI background; just a typical undergraduate-CS-level familiarity with neural networks -- the basic stuff that hasn't changed since the 1990s. I do have some experience with linear algebra, but that isn't the hard part of any of this.

      Frankly, most people who publish in this field go out of their way to obfuscate the key insights. Mediocre physicists (but not the truly brilliant ones) do the same thing. It's very annoying.

    • metadatMay 2023

      Transformers from scratch:

      1.) https://e2eml.school/transformers.html

      https://news.ycombinator.com/item?id=35697627 (46 comments, 1 month ago)

      https://news.ycombinator.com/item?id=29315107 (17 comments, 2 years ago)

      2.) http://www.peterbloem.nl/blog/transformers

      https://news.ycombinator.com/item?id=20773992 (28 comments, 4 years ago)

      https://news.ycombinator.com/item?id=29280909 (9 comments, 2 years ago)

      Source: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=Transformers%20from%20scratch%20&sort=byPopularity&type=story

    • lhnzMay 2023

      I think it applies because lookups can be done by multiplying one-hot vectors (or masks) with matrices; this is roughly analogous to what happens when we multiply Q with K^T in a self-attention head.

      Read this: https://e2eml.school/transformers.html#table_lookup

      And then read: https://e2eml.school/transformers.html#attention

      Also, multiplication is differentiable as you can calculate a partial derivative of this operation, and the ability to do that is what allows gradient descent optimization via the chain rule.

    Related

    Peter Bloempeterbloem.nl23 people

    Transformers from Scratch

    Peter Bloem
    Personal · last shared 2026
    Jay Alammarjalammar.github.io108 people

    The Illustrated Transformer

    Jay Alammar
    Personal · last shared 2026
    freeCodeCampmedium.com/free-code-camp45 people

    I replicated an $86M project using open-source libraries (2017)

    freeCodeCamp
    Company · last shared 2025
    E2B Bloge2b.dev19 people

    Replicating Cursor's Agent Mode with E2B and AgentKit

    E2B Blog
    Company · last shared 2026
    Berkeley ML Blogml.berkeley.edu21 people

    Machine Learning Crash Course: The Bias-Variance Dilemma

    Berkeley ML Blog
    Company · last shared 2023
    One Useful Thingoneusefulthing.org104 people

    No elephants: Breakthroughs in image generation

    One Useful Thing
    Personal · last shared 2026
    AssemblyAI Blogassemblyai.com58 people

    PyTorch vs. TensorFlow in 2022

    AssemblyAI Blog
    Company · last shared 2026
    Transformer Circuitstransformer-circuits.pub166 people

    Circuit Tracing: Revealing Computational Graphs in Language Models (Anthropic)

    Transformer Circuits
    Company · last shared 2026