Forget Inference. This $8 ESP32 Trained a Transformer From Scratch.
Instead of training a model on a GPU and deploying it to the microcontroller, the ESP32-S3 starts with random weights and learns entirely on-device.
No PyTorch. No TensorFlow. No autograd.
Everything from tokenization and the forward pass to cross-entropy loss, hand-written backpropagation, SGD with momentum, checkpointing, and text generation runs directly on an $8 ESP32-S3.
The model itself is modest by today's standards: a single-block, single-head transformer with ~319K parameters trained for 5,000 steps over about two days. But that's not the impressive part.
The real achievement is fitting the weights, gradients, optimizer state, activations, and scratch buffers into the limited memory of a microcontroller while implementing the entire training pipeline from scratch in C.
It's a fascinating project if you want to understand how transformers are trained under the hood, not just how to use them.
https://t.co/O2HUCUg6PE
You can now run a full language model on a chip that costs less than your lunch. 🧠💸
The ESP32-S3 ($8) just trained its own SLM—no cloud, no GPU.
This changes the edge-AI game forever.
https://t.co/x9zbnXwZ8l
Volem donar les gràcies a tot el personal de @Mutua_Terrassa i en especial a l'equip de la 7a planta, per cuidar tant i tant bé d'un dels nostres companys, a qui heu donat l'alta avui després de 9 díes de lluita amb #COVID19. Sou enormes! Moltes gràcies pel que feu.
Si necesitas mantener tu actividad profesional y eres de los que puede beneficiarse del teletrabajo, pero no sabes por dónde empezar, te ayudamos GRATIS. Contacta por DM o desde nuestra web y haremos lo posible por echarte una mano.
#JuntosLoConseguiremos#YoMeQuedoEnMiCasa
I was released from federal detention 18 years ago today for a little bit of hacking ;-)
Life is much, much better today as I’ve dedicated my time, energy, and passion to helping others improve their security.