The Power Standard for Aorus Workstations
Edge Intelligence at the Microcontroller Scale

The modern AI landscape is defined by scale: trillions of parameters, clusters of H100 GPUs, and staggering energy consumption. Yet, a parallel movement is emerging—the quest for the absolute minimum resource footprint required to sustain text generation. A compelling case study in this pursuit is the deployment of a Large Language Model (LLM) on an ESP32-S3 microcontroller, a chip costing less than ten dollars.
Originally designed for sensor management and basic Internet of Things (IoT) tasks, the device's hardware capabilities are severely constrained: it possesses only 520 KB of static RAM (SRAM) and 8 MB of pseudo-static RAM (PSRAM). It is evident that today’s flagships, such as DeepSeek V4 Flash, are fundamentally incompatible with such architecture. Achieving a functional LLM required a radical shift in model selection.
The foundation for this experiment was TinyStories, developed by Microsoft Research. This model is ten thousand times more compact than industry standards, boasting just 28.9 million parameters. Even with its diminutive size, the original version proved too cumbersome for the ESP32-S3; at standard 16-bit precision, the weights occupy roughly 60 MB—far exceeding the device's available memory.
The solution lay in aggressive quantization—the process of reducing the precision of weight representation. By transitioning from 16-bit to 8-bit, and eventually to 4-bit precision, the model was compressed to 14.9 MB. To accommodate this volume of data, a modified microcontroller with an expanded 16 MB flash memory was utilized.
However, simply storing weights in flash memory is insufficient for efficient operation, as access speeds are significantly slower than those of RAM. To overcome this bottleneck, a Per-layer embedding (PLE) mechanism was implemented—a concept conceptually aligned with the architecture used in Google’s Gemma family of models.
The essence of this method lies in data segregation: the bulk of the weights (approximately 25 million parameters or 12 MB) is offloaded to flash memory, where access occurs sporadically. Only critical data, totaling 2 MB, is held in active RAM. Consequently, input tokens and the key-value (KV) cache reside in PSRAM, while the primary SRAM handles activation processes.
This engineering optimization resulted in a generation speed of nearly 10 tokens per second. This is roughly equivalent to the average human reading speed, making the interaction with the device feel fluid and natural.
Naturally, TinyStories is limited by its specialization—it is designed for short narratives rather than full-scale conversational AI. Other niche models exist, such as Barista, which operates even faster but is restricted to the domain of coffee preparation. Nevertheless, this experiment signals a pivotal technological shift: intelligence is no longer the exclusive domain of server racks; it is becoming accessible at the level of basic electronic components.

