# Training a Transformer from Scratch on an $8 ESP32-S3

Original title: An SLM trained on $8 ESP32-S3

> Hacker News story 49178464 · language: en · submitted 2026-08-05
> Web version: https://zeli.app/story/49178464
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 67 · by [pavelai](<https://news.ycombinator.com/user?id=pavelai>) · 💬 20
[original](<https://github.com/Carloscodix/qapla>) · [HN discussion](<https://news.ycombinator.com/item?id=49178464>)

## Summary

This project demonstrates training a character-level transformer from scratch on an ESP32-S3 microcontroller, with backpropagation written by hand in C. The model, Qapla', learns Klingon from a small corpus, achieving real learning on-device without any external computation. It highlights the feasibility of on-device training for edge AI, constrained by memory and model size, and explores potential applications like predictive maintenance and soil monitoring.

## Key quote

> The chip starts with random weights and no prior knowledge of Klingon, and learns from scratch.

## HN discussion (20 comments)

### [chicken-stew](<https://news.ycombinator.com/item?id=49179260>)

> Would probably be better to demonstrate by exsmple how this approach is used to train on sensor data and then use it (as is hinted by the author) instead of acknowledging that the klingon poc is useless.

### [runtime_lens](<https://news.ycombinator.com/item?id=49180955>)

> Sometimes the proof of concept isn't the product. It's the constraints it exposes that end up influencing more practical systems.

### [dannyw](<https://news.ycombinator.com/item?id=49178941>)

> Very cool project! Sounds like it was a fun challenge :)
>
> I wonder when we'll start seeing clusters of ESP32-S3s... not sure how interconnects would go though, but I guess the interconnect wouldn't be the bottleneck anyway.

---

## Cite

- Page: https://zeli.app/story/49178464
- Date: 2026-08-05
- Source: github.com (https://github.com/Carloscodix/qapla)
- Hacker News: https://news.ycombinator.com/item?id=49178464

## Other languages

- zh: https://zeli.app/zh/story/49178464 · markdown: https://zeli.app/zh/story/49178464.md
- ko: https://zeli.app/ko/story/49178464 · markdown: https://zeli.app/ko/story/49178464.md
- de: https://zeli.app/de/story/49178464 · markdown: https://zeli.app/de/story/49178464.md
- es: https://zeli.app/es/story/49178464 · markdown: https://zeli.app/es/story/49178464.md
