microqwen: hand-coded minimal Transformer ports Qwen 3 modernities into Karpathy's microgpt

anshulkundaje · x · 2026-09-26

Inspired by Karpathy's microgpt, developer daveyburke hand-wrote microqwen: a minimal Transformer implementation updated with modern architectural tweaks from Qwen 3, while preserving Karpathy's original clarity — the code still fits in three columns. It doubles as a teaching artifact showing that the 2017 Transformer architecture has endured with only a few key changes, and what those changes actually are.

Original post →

More from Research

Research channel →