Transformer Lab · trained from scratch

decoder-only transformer · word-level

What a tiny GPT actually does

A 198k-parameter transformer trained from scratch on Alice's Adventures in Wonderland and Through the Looking-Glass. Type a prompt: the forward pass runs here in your browser, and you can open every attention head that produces the next word.

198k parameters 2 layers · 4 heads d = 64 context 32 tokens vocab — val loss —
Loading weights…