AIToday
Large Language ModelsOpen-Source AIHacker NewsPublished: Jul 26, 2026, 06:00 JST

28.9M-parameter LLM runs on $8 ESP32-S3 microcontroller

28.9M-parameter LLM runs on $8 ESP32-S3 microcontroller

3 Key Points

  1. What happened

    A developer successfully ran a 28.9 million parameter language model on an ESP32-S3 microcontroller (costing about $8), generating text at roughly 9 tokens per second entirely on-device with no server connection. The previous record for this chip class was 260 thousand parameters, making this model roughly 100 times larger.

  2. Why it matters

    The breakthrough uses Google's Per-Layer Embeddings design from Gemma models, storing most parameters (25 million) in slow flash memory and loading only the rows needed for each token into fast RAM. This architectural shift demonstrates that large models can run on severely memory-constrained hardware, potentially enabling AI applications on edge devices without cloud dependency.

  3. What to watch

    The full implementation, training code, and technical results are available in the project repository (firmware/esp32_llm/README.md, src/, and RESULTS.md). The model was trained on TinyStories and generates short coherent stories but does not answer questions, follow instructions, or provide factual knowledge.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The achievement represents a shift in how language models can be deployed at the hardware extreme. Traditionally, fitting models onto microcontrollers required severe parameter reduction because the entire model had to fit into fast memory—the ESP32-S3's 512KB SRAM—which is why prior models on this chip class maxed out at 260 thousand parameters. By adopting Google's Per-Layer Embeddings architecture, the developer decoupled the model's lookup tables (embeddings) from its reasoning core, allowing 25 million of the 28.9 million parameters to live in the chip's slower 16MB flash memory. Only the active computation—the "thinking" part—needs to reside in fast memory, fundamentally changing the memory constraint equation.

The model achieves this while maintaining practical performance: 9 tokens per second is sufficient for real-time text generation on a screen, and coherent short-story generation on TinyStories proves the architectural trade-off does not destroy reasoning quality at scale. The deliberate choice to train on TinyStories acknowledges the model's limitations (no question-answering, instruction-following, or factual knowledge), anchoring expectations to what the architecture can actually deliver. This is explicitly about demonstrating that large models can run on tiny edge hardware, not about competing with general-purpose AI systems.

FAQ
How does such a large model fit on such a small chip?
The model uses Per-Layer Embeddings from Google's Gemma models, storing 25 million parameters in slow flash memory instead of fast RAM. Only the few rows needed for each token (about 450 bytes) are loaded into the fast 512KB SRAM at a time, while the small reasoning core stays in fast memory.
What can this model actually do?
It was trained on TinyStories and writes short, simple stories while keeping them mostly coherent. It cannot answer questions, follow instructions, write code, or provide factual knowledge.
How fast does it generate text?
The model generates text at roughly 9 tokens per second end-to-end (9.7 tokens per second of pure compute), running entirely on the ESP32-S3 with 512KB SRAM, 8MB PSRAM, and 16MB flash.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleTSMC pledges $100B more US investment; SK Hynix eyes US manufacturing