Reading images
Draw a digit, an AI reads it
Write any digit with your mouse or finger. A network trained on 60,000 handwritten examples tells you what it sees and how sure it is.
Right 99.25% of the time on digits it never sawEach demo below is a real model you can try right now. Nothing is sent to a server: the models run in your browser, on an engine written line by line in plain JavaScript with no AI libraries underneath.
Reading images
Write any digit with your mouse or finger. A network trained on 60,000 handwritten examples tells you what it sees and how sure it is.
Right 99.25% of the time on digits it never sawGenerating images
This model learned to draw digits of its own. Drag across its map and watch a 3 melt into an 8.
A small ancestor of today's image generatorsLanguage
The same design as the large chat models, shrunk to fit a web page and trained on Shakespeare. See which earlier words it looks at as it writes.
A transformer with its own word-piece tokenizerLearning by trial and error
It starts knowing nothing and drops the pole in half a second. A few hundred attempts later it holds it steady, and recovers when you knock it.
Learns live in front of you, no saved modelMeaning
Given nothing but Shakespeare's plays, it worked out which words belong together. Type a word and explore its neighbourhood.
Found that kings are called Richard, Edward and HenryThe basics
Pick a pattern, choose the size of the network and press train. Watch it work out the shape step by step.
Change every setting and see what happensMost AI code calls a large library that hides how learning works. gradlab does not. The part that works out how to improve a model after every mistake, the layers, the training loops and the models on this page are all written out in a few thousand readable lines.
These are small models, trained on a laptop-sized budget. They are here to show how the ideas work, not to compete with the systems that cost millions to train.