ROIpad ← Back to Search
news.ycombinator.com › comment

Comment on: Show HN: How LLMs Work – Interactive visual guide based on Karpathy's lecture

by vova_hn2
Posted: Apr 24, 2026
I think that BPE visualization is slightly misleading, because it seems to imply that the "old" (smaller) tokens are thrown away and replaced with longer tokens, which is not the case.In fact, it is purely additive process: we iteratively add the most frequent pairs to the set, until we reach the desired total number of tokens. But we never remove tokens, we keep everything, including the initial 256 tokens, representing bytes.This ensures that the model is capable of producing every possible unicode sequence (in fact, I think that it is capable of producing every possible byte sequence, but bytes that are not valid unicode are filtered during sampling).Edit #1: also, this page entirely skips the attention mechanism, which is, in my opinion, both the most interesting part and the part that is hardest to understand (I can't say that I fully understand it, to me it is just some linear algebra matrix multiplication magic).
View Discussion ↗
Discussion Thread
Parent Entity
Points: 207 • Comments: 49
Posted: Apr 24, 2026