esp32-ai is an experimental language-model project that runs a 28.9-million-parameter model entirely on an ESP32-S3 microcontroller. The quantized model occupies about 14.9 MB and generates text without sending data to a server. Most parameters remain in flash through a Per-Layer Embeddings design, while active computation uses SRAM and PSRAM. This memory layout allows the device to retrieve only the embedding rows required for each token. The implementation reaches roughly 9.5 tokens per second and can display generated words on a connected screen. Trained on TinyStories, the model produces short, simple stories rather than answering questions, following instructions, or providing factual knowledge. The repository includes firmware, wiring and flashing instructions, training code, quantization experiments, ablations, and measured results.

Features

  • On-device text generation
  • 28.9-million-parameter model
  • Four-bit quantized storage
  • Per-Layer Embeddings architecture
  • Flash, PSRAM, and SRAM partitioning
  • Training and firmware toolchain

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow esp32-ai

esp32-ai Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of esp32-ai!

Additional Project Details

Programming Language

Python

Related Categories

Python Large Language Models (LLM)

Registered

6 days ago