How it fits
A real transformer, written in assembly for a 1989 8-bit CPU. It runs here in an emulator and has never been tested on a physical console.
- 44,288
- parameters
- 128 KB
- ROM
- 8 KB
- built-in RAM
- 4.19 MHz
- no multiply instruction
What happens when you type
- YouYOU ARE DUMB
- Keyword parserINSULTand keeps the word DUMB
- The prompt it sees SMUGPESTNEWONCENONEINSULTNONE
- Transformerone tokenabout 0.93 s each, fed back in
- ScreenDUMB? THAT FIT IN ONE BYTE.
From a real run. The model sees those labels and never your sentence, which is why it can't hold a general conversation. The game fills in the saved word when it draws the reply.
Inside the model
One block, with 8-bit weights and activations. Bar widths are a sketch, not to scale. The ROM's output matches a separate Python reference, token for token.
Where everything lives
Everything it remembers about you fits in 42 bytes. That's a save file, not learning: the weights never change.
Ten times faster, same words
Seconds per token, recorded in the PyBoy emulator. Each step keeps the ones above it. Race the first and last live.
Multiplying without multiply
13 × 11
= (13 + 11)² ÷ 4 − (13 − 11)² ÷ 4
= 144 − 1 = 143
A transformer is mostly multiplication, and this CPU can't do it directly. Looking up squares in a table made the model about 1.75 times faster.