2026-08-03 日报

Running a 28.9M Parameter LLM on an $8 Microcontroller - Hackster.io

Hackster

Running a 28.9M Parameter LLM on an $8 Microcontroller - Hackster.io

# Running a 28.9M Parameter LLM on an $8 Microcontroller ## A developer borrowed a trick from Google's Gemma models to fit a 28.9M parameter LLM on an $8 ESP32 chip. Nick Bild 20 hours ago • AI & Machine Learning When you think of large language models (LLMs), powerful GPUs with dozens or even hundreds of gigabytes of memory likely come to mind. That’s the kind of hardware it takes to run today’s cutting-edge models. It would be hard to imagine this type of algorithm running on a tiny microcontroller, yet one developer has managed to do exactly that. While certainly no frontier model, its 28.9 million parameters make it impressive to see running on an $8 development board all the same. ### 28 million parameters on an $8 chip [...] ### 28 million parameters on an $8 chip The project runs the language model entirely on an ESP32-S3, a microcontroller with just 512KB of SRAM, 8MB of PSRAM, and 16MB of flash storage available to it. Everything happens locally on the chip, with no cloud connectivity or external server involved. The generated text is written directly to a small display connected to the board at roughly 9.5 tokens per second. This isn’t the first LLM someone got running on a microcontroller, but earlier projects involved models that contained around 260,000 parameters. This implementation is approximately 100 times larger, raising the obvious question: how does a model that size fit on hardware with so little memory? ### Bypassing memory limits [...] The full model occupies just 14.9MB after 4-bit quantization, allowing it to fit comfortably within the ESP32-S3's onboard flash. According to the developer, this is the first known demonstration of Google's Per-Layer Embeddings concept being adapted to hardware this constrained. ### Capabilities and limitations Of course, a model this small is quite limited. It was trained on Microsoft's TinyStories dataset, so it generates short, simple stories with reasonably coherent structure. It is not intended

阅读原文