Skip to content
HardwareLab

Needle 2 Esp32

45M-parameter LLM offline on an ESP32-S3 turning English into valid commands.

By andrisgauracs

Est. cost
Cost unknown
Posted
GitHub stars
193 (GitHub)
Needle 2 Esp32: GitHub repository card
No photo in the source; showing the GitHub repository card.

Overview

A 45-million-parameter language model doing grammar-guaranteed tool calling entirely on one ESP32-S3: type a request and the board's RGB LED does what you asked, with no network.

How it works

An independent C99 engine (about 3,700 lines) reads the model weights from 16 MB of flash and uses 8 MB of octal PSRAM for its KV cache. Output is constrained so every tool call is valid JSON. It runs at about 1.87 tokens per second, roughly 25 seconds per request with reasoning turned off.

Hardware

  • ESP32-S3

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

See all 17