28.9M-Parameter LLM Runs on an $8 ESP32 with Per-Layer Embeddings

TL;DR Summary
A 28.9M-parameter LLM runs entirely on an ESP32-S3 (about $8) by using Google’s Gemma-inspired Per-Layer Embeddings: ~25M parameters are stored in flash and only ~450 bytes are loaded per token, with a 4-bit quantized 14.9MB model that generates short stories at ~9.5 tokens/sec and is not intended for questions, coding, or complex tasks.
Reading Insights
Total Reads
1
Unique Readers
23
Time Saved
6 min
vs 6 min read
Condensed
95%
1,168 → 53 words
Want the full story? Read the original article
Read on Hackster.io