Bedtime Story Machine

A brand-new story every time, written by a tiny AI right here on your device.

a little
who loves
Waking up the storyteller…
Pick a name, then press Tell me a story.

How this storyteller was made

Taught from scratch on a laptop, then handed to your browser.

On a MacBook Air · done once
1 · The reading

TinyStories

733,000 short children’s stories, cut into 149 million word pieces from a vocabulary of 4,096.

2 · Training

Guess, check, nudge

guess the next piece→check the real story→nudge the weights× 30,000

About 3.3 hours on the laptop’s built-in graphics chip. No special hardware.

mistakes: 8.3→ 1.47
3 · The model

One 15 MB file

7.2 million numbers across 6 layers. That file is everything it learned.

The file is copied to a web server once
On the internet · every visit
4 · Web server

Hands out the file

A small rented server sends you this page and the model. It never runs the model itself.

5 · Your device

Runs the model

Your browser does the thinking, one word piece at a time. Nothing you type is sent anywhere.

6 · Your story

New every time

Once upon a time, there was a little girl named Mia. She loved the moon…

This is a very small AI, so stories can be silly, mix up names, or wander off. Grown-ups, read along. Built by Dhiraj Makam while learning how language models work.