HN Hall of Fame Weekly email

Transformers from Scratch

e2eml.school Books & learning Tutorials & guides AI & data Candidate
Screenshot of e2eml.school captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
7
submitters
7
observed span
2021–2025
peak thread · 46 comments
644 pts
latest 20+ return · 2023-04-25
644 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

This article describes positional encodings based on several sine waves with different frequencies, but I've also seen positional "embeddings" used, where the position (the position is an integer value) is used to select an differentiable embedding from an embedding table. Thus, the model learns its own positional encoding. Does anyone know how these compare? I've also wondered why we add the positional encoding to the value, rather than concatenating them? Also, the terms encoding, embedding, projection, and…

This is a great comprehensive deep dive, thank you for sharing! Interestingly, there was a blog post and video in 2019 by Peter Bloem [1] with the same title which I consider to be one of the very best quick intros to transformers. Rather than diving into all of the details right away, Peter focuses on the intuition and “peels the onion” gradually. [1] http://peterbloem.nl/blog/transformers Other notable good intros to transformers are: The Illustrated Transformer by Jay Alammar…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
871

reference only — not used in Hall rules or ranking

Total comments
63

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2021-11-23Transformers from ScratchFirst breakoutgradientgarden19917
2021-11-23Transformers from Scratchsebg150
2023-01-07Transformers from Scratch (2021)maxutility20
2023-04-24Transformers from Scratchizik40
2023-04-25Transformers from ScratchBest thread · Latest 20+ point returnjasim64446
2023-04-25Transformers from Scratch: Detailed Notestim_sw30
2025-07-26Transformers from Scratchsupriyo-biswas40