Menu

Post image 1
Post image 2
1 / 2
0

GitHub - slvDev/esp32-ai

Hacker News·GitHub - slvDev/esp32-ai·about 2 months ago
#nfty4HR7
#github#model#chip#small#flash#memory
Reading 0:00
15s threshold

Running a 28.9M parameter LLM on an $8 microcontroller Open to Work  ·  𝕏 slvDev  ·  LinkedIn This is a 28.9 million parameter language model that generates text on an ESP32-S3, a microcontroller that costs about $8. It runs on the chip itself, with nothing sent to a server, and it writes each word to a small screen wired to the chip at roughly 9 tokens per second. The last language model people ran on a chip like this had 260 thousand parameters, so this one holds about a hundred times more. It fits because most of the model lives in flash instead of RAM, using an idea from Google's Gemma models called Per-Layer Embeddings. The numbers Parameters 28.9M stored (25M of them in a flash lookup table) Chip ESP32-S3, about $8, with 512KB SRAM, 8MB PSRAM and 16MB flash Speed about 9.5 tok/s end to end (9.7 tok/s of pure compute) Connectivity none, everything runs on the device Model size 14.9MB at 4-bit Why it is hard, and how it fits anyway A microcontroller has very little fast memory.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More