A 29M-parameter LLM runs on an ESP32-S3 at 9.88 tok/s with no server.

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Demonstrates that per-layer embeddings can keep a 29M-parameter LLM almost entirely in flash on a $5 microcontroller, widening what embedded devs can run locally.

Read this as

A hobbyist project called esp32-ai runs a very small AI language model, one trained to write simple children's stories, on a tiny computer chip called an ESP32-S3, the kind used in gadgets, not laptops. The chip has far less memory than a phone, so the trick is keeping most of the model stored in slow flash memory and reading only tiny pieces as needed. It writes stories at about 10 words' worth of output per second, entirely offline. The project is a proof of concept for enthusiasts, not a useful assistant, it can't answer questions or follow instructions.

This is a weekend open-source project, not a product, and it changes nothing for businesses today. Its significance is architectural: Google's per-layer embeddings idea from Gemma 3n lets a 28.9M-parameter model run on hardware with 512KB of SRAM, suggesting edge-AI deployments could eventually skip servers entirely. Companies building on-device AI features should watch this technique, but no cost, competitive or timing decision follows from this release.

esp32-ai runs a 28.9M-parameter TinyStories model (plus a 'Barista' espresso-QA model) at 9.88 tok/s on an ESP32-S3 with 512KB SRAM, 8MB PSRAM and 16MB flash, at 4-bit quantization (14.9MB). Borrowing Gemma 3n's per-layer embeddings, the 25M-parameter embedding table stays resident in flash and is sampled lazily (~450 bytes/token); activations live in SRAM, dense weights in PSRAM. Limitations: no instruction-following, one model on-device at a time, no benchmark beyond tokens/second.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

ESP32-S3 Gemma 3n TinyStories Barista esp32-ai Hugging Face

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.