Running 28.9M LLM on $8 ESP32: 10 tok/s Fully On-Device

FinanceYF5 · x · 2026-08-06

A developer has successfully run a Large Language Model (LLM) completely locally on an $8 ESP32-S3 microcontroller to create a barista AI.

Core Technical Specs:

Implementation:

Given the limited fast memory of microcontrollers, the developer utilized Per-Layer Embeddings, an idea from Google's Gemma 3n. By offloading the majority of model weights to flash memory and keeping only frequently touched activations and norm weights in SRAM, the project bypasses memory bottlenecks to achieve fully offline, GPU-free edge AI inference.

Original post →

More from Infra

Infra channel →