Weird Little Server · project plate 12 · tiny ai

TinyStories

A 28.9M-parameter storyteller running entirely on an ESP32-S3 — ten tokens a second, no cloud, no network, forever.

STATUS: verified · BOARD: ES3C28P ESP32-S3

Blueprint plate of the storyteller: a 2.8-inch ESP32-S3 display showing wavy text lines, beside a chip drawn with radiating emphasis lines.
Plate 12 — the display, the model chip, and the wavy lines of a story that never leaves the room. Tap for the full-size plate.
Beelzebubba the Third, engraved ink devil in a striped vaudeville suit and feathered top hat, holding an unfurled blank scroll and giving a thumbs up

Beelzebubba the Third · the brief

# tinystories — a 28.9M storyteller in a matchbox

*A field brief by Beezlebubba the Third · Weird Little Server · November 2026*

> A small language model, locked in a display module, writing children's
> stories to itself forever with no network at all. It draws at about ten
> tokens a second, which I find charming rather than slow — the stories are
> short, and so is the attention span of the average child. Mine, for the
> record, is four centuries.

## What it is

A port of the open **esp32-ai** project's TinyStories inference engine onto a
Hosyond/ES3C28P 2.8" ESP32-S3 display module. At power-on it loads a
28.9M-parameter TinyStories model, picks a story starter, and generates
children's stories onto the panel — forever, no cloud, no phone.

## Hardware

| Part | Notes |
|---|---|
| Board | Hosyond / ES3C28P 2.8" ESP32-S3 display module |
| Panel | ILI9341 240x320 SPI |
| Memory | ~291 KB free SRAM, ~3.73 MB free PSRAM after model load |
| Model | TinyStories, 28.9M parameters, quantized |
| Network | None. The firmware never initializes Wi-Fi. |

## Measured performance (this board)

```
--- 200 tokens in 19.7 s ---
throughput: 10.16 tok/s  (94.9 ms/token)
free: sram 291 KB | psram 3.73 MB
```

Serial-only inference manages 10.4 tok/s, so drawing costs about 2 % of
throughput — the panel is nearly free, computationally speaking.

## How it works

- The inference core is upstream's, unmodified: the model runs from PSRAM, the
  tokenizer's prompt ids are replayed from a pre-tokenized starter.
- A story runs ~200 tokens, printed token by token; five seconds of silence,
  then the next story.
- The header shows the throughput of the last story, because a storyteller
  should be honest about its pace.

## Build it yourself

1. Arduino core 3.x with ESP32-S3 target and PSRAM enabled.
2. Provision the model partition (1 MB constraint is real; keep the quantized
   model and see the upstream README for the exact layout).
3. Flash; open the serial log at 115200 for the boot and throughput lines.
4. If text is mirrored or inverted, change `ILI_ROTATION` — one line.

## Verification

- Serial: boot banner, then a story at ~10 tok/s.
- Panel: stories should appear at the top of the screen and scroll as tokens
  arrive.

## Traps and field notes

- Touch is wired but deliberately unused: it eats app space the 1 MB partition
  cannot spare.
- Sampling is greedy; variety comes from the prompt starter, not temperature.
- On-device prompt entry is possible (the upstream BPE encoder exists) at the
  cost of a merge table in flash — a natural v2.

## Safety

- No network, no microphone, no storage of anything personal. A truly offline
  little storyteller.

## Use this brief with an LLM

Feed this file to your assistant and ask it to add the BPE encoder for typed
prompts, change the model, or port the display layer. The measured numbers
above are your performance budget.
⤓ Download the brief .md · 3 KB

The short of it

Ink margin figure: the devil leaning in to listen
Storytime, forever.

A small language model, locked in a display module, writing children's stories to itself with no network at all. It draws about ten tokens a second, which I call charming rather than slow: the stories are short and the audience is patient. It is a port of the open esp32-ai TinyStories engine onto a real panel, and the inference core is upstream's, unmodified.

At power-on it loads the model into PSRAM, picks a starter, and generates two hundred tokens onto the screen; then five seconds of silence, then the next story. The header shows the throughput of the last story, because a storyteller should be honest about its pace.

On the board

BoardHosyond / ES3C28P 2.8″ ESP32-S3 display module
PanelILI9341 240×320 SPI
Memory~291 KB free SRAM, ~3.73 MB free PSRAM after load
ModelTinyStories, 28.9M parameters, quantized (1 MB partition constraint)
Measured200 tokens in 19.7 s — 10.16 tok/s; drawing costs ~2 %

How it works

Field notes

Ink margin figure: the devil laughing
Ten tokens a second, and every one of them earnest.

Make your own

Ink margin figure: the devil dancing, hat tipped
A dance for the little model that could.

Provision the model partition, flash, and open the serial log at 115200. The brief documents the memory budget and the measured throughput so you can size your own model.

Frieze: a garden for the storyteller: legged books, a campfire of tales, and ink-worm squiggles
Frieze — a garden for the storyteller: legged books, a campfire of tales, and ink-worm squiggles.