You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving this to the lectures monorepo — under the pool model a new lecture is pitched to the shared pool, and which product publishes it is a later manifest decision.
Nothing in the series covers transformers. A search for "transformer" across lecture-python.myst, lecture-python-intro, lecture-jax and lecture-datascience.myst returns zero.
The question in the issue body is the right spine for the lecture, and we already teach both ends of it. Asking how this differs from "a simple transition matrix building probabilities off of word transitions" is a question our own material sets up:
finite_markov.md teaches transition matrices, which is exactly the bigram baseline being compared against
back_prop.md, "Introduction to Artificial Neural Networks", builds a network and derives back propagation through the chain rule by hand
That makes this an unusually well-scaffolded proposal: the two prerequisites already exist, and the lecture is the bridge — begin with the Markov model the reader knows, show where it fails on longer-range structure, and introduce learned representations and attention as what buys the difference. Karpathy's implementation including its own autograd engine pairs neatly with back_prop.md, which likewise avoids leaning on a framework.
Two things worth settling early. First, whether the lecture reproduces the 243-line implementation or writes a QuantEcon version against it — the pedagogical shape may want to differ, particularly to make the Markov comparison explicit rather than implicit. Second, the licence on the gist needs checking before any code is reused; gists frequently carry none, in which case default copyright applies and a clean-room implementation is the safer route.
Activity
mmcky commentedon Feb 20, 2026
Here is the GIST
https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
the comments on the GIST are pretty fun, people are porting and having a bit of fun with this.
mmcky commentedon Jul 30, 2026
Moving this to the lectures monorepo — under the pool model a new lecture is pitched to the shared pool, and which product publishes it is a later manifest decision.
Both links are still live, including the gist.
Nothing in the series covers transformers. A search for "transformer" across
lecture-python.myst,lecture-python-intro,lecture-jaxandlecture-datascience.mystreturns zero.The question in the issue body is the right spine for the lecture, and we already teach both ends of it. Asking how this differs from "a simple transition matrix building probabilities off of word transitions" is a question our own material sets up:
finite_markov.mdteaches transition matrices, which is exactly the bigram baseline being compared againstback_prop.md, "Introduction to Artificial Neural Networks", builds a network and derives back propagation through the chain rule by handThat makes this an unusually well-scaffolded proposal: the two prerequisites already exist, and the lecture is the bridge — begin with the Markov model the reader knows, show where it fails on longer-range structure, and introduce learned representations and attention as what buys the difference. Karpathy's implementation including its own autograd engine pairs neatly with
back_prop.md, which likewise avoids leaning on a framework.Two things worth settling early. First, whether the lecture reproduces the 243-line implementation or writes a QuantEcon version against it — the pedagogical shape may want to differ, particularly to make the Markov comparison explicit rather than implicit. Second, the licence on the gist needs checking before any code is reused; gists frequently carry none, in which case default copyright applies and a clean-room implementation is the safer route.
Moved from #5 as part of the disposition review in QuantEcon/meta#344.