Peter Bloem

peterbloem.nl · Personal blog · on HN since 2019

Peter Bloem, a machine learning researcher, writes tutorials on transformers, PCA, SVD, and the practice of AI-assisted coding.

What HN saysCommenters praise his Transformers from Scratch as one of the best early tutorials and recommend his five-part PCA series.
23HN people shared it
15linked it in comments
9stories submitted
380story points
3 months agolast shared
2019people per year2026

Most-shared posts

  1. 1
    Transformers from Scratch
    15 people · 328 points · first shared 2019 · 28 comments on HN
  2. 2
    The Singular Value Decomposition
    2 people · 26 points · first shared 2022 · 1 comments on HN
  3. 3
    A Friendly Introduction to Principal Component Analysis
    2 people · 21 points · first shared 2021 · 2 comments on HN
  4. 4
    AI Coding Without the Vibes
    1 people · 2 points · first shared 2026 · 1 comments on HN
  5. 5
    The Experience Feedback Loop
    1 people · 1 points · first shared 2026 · discussion on HN
  6. 6
    Unraveling Principal Component Analysis
    1 people · 1 points · first shared 2026 · discussion on HN
  7. 7
    What Design Can Teach Us
    1 people · 1 points · first shared 2023 · discussion on HN
  8. 8
    Machine learning
    1 people · first shared 2019

What HN people wrote when they linked it

d4rkp4ttern · 2026-08-17
Tangential to this post but Peter Bloem’s Transformers from Scratch (2019) was one of the best early tutorials on transformers and self-attention. There have been many more tutorials since then but this was the one that solidified a mental picture for me. https://peterbloem.nl/blog/transformers
mkaic · 2023-05-22
I recently stumbled across a truly excellent 5-part deep dive into PCA on Peter Bloem's blog, which I highly recommend to anyone who's interested. It assumes you have some level of linear algebra knowledge. https://peterbloem.nl/blog/pca
lucidrains · 2023-04-26
besides everything that was mentioned here, what made it finally click for me early in my journey was running through this excellent tutorial by Peter Bloem multiple times https://peterbloem.nl/blog/transformers highly recommend
nmfisher · 2023-01-30
It took me a long time to wrap my head around the whole "key/query/value" explanation (and to be honest I regularly forget which vector is which). I find the "weighted sum of vectors" explanation much simpler/more intuitive; this blog post is IMO the best on the subject: https://peterbloem.nl/blog/transformers
panabee · 2021-01-05
you can catch up very quickly. great resource on transformers, which underpin the openai breakthroughs (the "T" in GPT-3 stands for transformer): http://peterbloem.nl/blog/transformers great reddit sub for tracking ml research and trends: https://www.reddit.com/r/machinelearning great email newsletter on ml from andrew ng: https://www.deeplearning.ai/thebatch/ also, someone must maintain old code or things break. thanks for your contributions.
yamrzou · 2019-08-23
This is the best article I have read so far explaining the transformer architecture. The clear and intuitive explanation can’t be praised enough. Note that the teacher has a Machine Learning course with video lectures on youtube that he references throughout the article : http://www.peterbloem.nl/teaching/machine-learning
heyitsguay · 2023-01-29
For a while now, an answer I've seen is to start with "Attention Is All You Need", the original Transformers paper. It's still pretty good, but over the past year I've led a few working sessions on grokking transformer computational fundamentals and they've turned up some helpful later additions that simplify and clarify what's going on. You can quickly get overwhelmed by the million good resources out there so I'll keep it to these three. If you have a strong CS background, they'll take you a long way: (1) Transformers from Scratch: https://peterbloem.nl/blog/transformers (2) Attention Is All You Need: https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c… (3) Formal Algorithms for Transformers: https://arxiv.org/abs/2207.09238
civilized · 2022-04-02
There are millions of "Transformers Explained" blog posts by now. The one I got the most out of is "Transformers from Scratch" by Peter Bloem: http://peterbloem.nl/blog/transformers
ypcx · 2020-07-28
Yes this seems like an early work in progress, compared to Jay's previous Transformer articles. In addition to your link, I've found a really good Transformer explanation here (backed by a Github repo w/ lively Issues talk): http://www.peterbloem.nl/blog/transformers Additionally, there's a paper on visualizing self-attention: https://arxiv.org/pdf/1904.02679.pdf
jayalammar · 2023-05-18
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

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close