AI in your hand

Language models on a chip that fits in your palm.

Who got them there, what grew from it, and what you can make one do.

They really said this

jeď, dokud nebudeš 10 cm od překážky (drive until you're 10 cm from a wall)Franta: *hlidam* VRRRM! STOP!
znáš chatgpt? (do you know chatgpt?)Franta: oni jsou velci. (they are big.)
do what i asked you last time againFranta: I forget everything
umyj nádobí (wash the dishes)a Czech plant: to neumim (I can't)

A 4-million-parameter model, on a $10 chip, no cloud. You can make one.

The chip

ESP32-S3. About $10.

SRAM512 KBfast, tiny
PSRAM8 MBmedium
flash16 MBhuge, slow

Half a megabyte to think in. Less than one photo of your cat.

slvDev/esp32-ai README · github.com

Before: TinyML

The chip listens for one word, or spots a person.

It classifies. It does not write. "Hey." "Heard you." End of conversation.

TensorFlow Lite Micro on the ESP32, 2020.

TensorFlow blog, Aug 2020 · blog.tensorflow.org

Then: it writes

2023 · llama4micro, Cortex-M7Karpathy's llama2.c on a microcontroller
2024 · DaveBben, ESP32-S3260 K parameters19 tok/s
2026 · EmbedLlama, STM32H7260 K87 tok/s
2026 · slvDev, ESP32-S328.9 M9.88 tok/s

Mostly bedtime stories, word by word, no cloud. Some of them even make sense.

About thirty such projects by now, nearly all hobbyists.

the projects' GitHub READMEs; re-measurements by jake-g and manjunathshiva · github.com

slvDev's trick: keep the brain in a drawer

flasha 25 M lookup table, 87 % of the model~450 bytes read a token
PSRAMthe core that actually multiplies: 556 Konce a token
SRAMactivationsmany times a token

Most of the model sleeps in flash. Each word wakes up ~450 bytes of it. (Per-Layer Embeddings, from Gemma 3n.)

Same chip, bonus: 48,311 neurons of a real fruit fly brain, escaping a spider.

slvDev/esp32-ai README and model card · huggingface.co

The wall is bandwidth, not compute

SRAM3,800 MB/s
PSRAM89 MB/s
flash32 MB/s

The chip thinks fast. Reading is the slow part. Relatable.

Measured on an ESP32-S3: a model is as fast as the memory it has to read.

Oído, arXiv 2610.13447 (preprint); JARACH-209/esp32-30.7M · arxiv.org

And the chip makers?

Espressif: LLMs "still rely on cloud servers".

Arm: 15 M at 7.5–8 tok/s on its NPU, on an FPGA.

ST, in a preprint by its engineer: to fit its own NPU, a language model had to drop softmax attention.

The hobbyists got there first.

Espressif ESP-Techpedia; Arm Newsroom, Nov 2024; arXiv 2611.28935 (preprint) · newsroom.arm.com

What they actually write (yes, really)

stories"Once upon a time, there was a little hanger. The hanger was sad…"chip
stories, 260 K"He put the bug on the bug and started to bug."chip
chat"The largest planet is Earth…"chip
a narrow helper"if the cup reads bitter, coarsen a step."chip
sentence → pinblink pin 4 every 5 seconds 3 times → blinking 1 pin every 5000ms, 3 timeschip
sentence → robotLEDライトの色を青にして → LED を青にするchip

Stories: cute. Chat: confidently wrong. Narrow jobs: actually useful.

JARACH-209, jake-g, ViezeVingertjes, slvDev Barista, esp32-gpio-llm, ayousanz · GitHub and Hugging Face · huggingface.co

What's different here

elsewherehere
one command, rule or JSONa program with loops and if; the chip runs it and checks the picture
only the outputthe inside: a thermometer sets T, attention on LEDs, a dial into the stream
the author's own numbersa test set someone else wrote, chip = PyTorch, what failed published too
a model to downloadyour own robot, any language, 48 s on Colab

Not first: sentence → pin (esp32-gpio-llm, llmOS) and sentence → robot action (ayousanz) came earlier. Not the biggest either.

Then it got a body

it writes programs, the chip checks them

the room sets its temperature

attention on 64 LEDs

Franta, a car with a dial into its head

A story can't be checked. A program can: the house is drawn, or it isn't.

moudrkat, 2026 · github.com

This playground: not how big. What happens inside.

1 · a programwhat a tiny model doesone command
2 · temperaturesoftmax, entropy, a thermometerone command
3 · attentionone head, in your hand3 solder joints
4 · wheelsinputs that are not wordsan afternoon
5 · a trickwhat training is3½ min
6 · your robota model in any language48 s

Your turn

Add your robot to our crew. Ducks welcome. 🦆

moudrkat.github.io/ai-in-your-hand

Start in Colab: free GPU, about five minutes, no board.

← → · swipe · ?print for PDF