AI Chatbot Runs Offline On A Ten Dollar RP2350 Board

The project runs a small language model on an RP2350 board with 520KB of working memory, without requiring an internet connection.

Hand holding a Raspberry Pi Pico-style board beside a monitor displaying an offline Athena AI chatbot conversation.
The Athena project runs a small language model locally on an RP2350 board without an internet connection. (AI illustration)

Running a small language model completely offline on a board costing about ten dollar is no longer just an idea. Built by Mikhail Matveev, an open-source project called Athena turns an RP2350-based board into a functional chatbot. Type the questions simply through a keyboard and replies appear on a connected monitor. Generating response takes some time, but the entire system runs locally without cloud service or an internet connection.

The firmware supports the FRANK M2 and Waveshare RP2350-PiZero boards, and we can build FRANK Next from source. The setup also needs a microSD card containing the model files, a USB keyboard, a mini-HDMI cable, a display and a USB-C power supply. The board’s output resolution is 640×480. This project is more than just a chatbot demo: it proves that a small language model can work within the memory limits of a budget microcontroller board.

Athena uses a mixture-of-experts architecture with 33.3 million parameters, of which around 11 million are active during each processing step. Its weights are quantised to four bits, and the model has ten layers, a 512-token context window and a vocabulary of 4,096 word pieces per language. Since the model cannot fit entirely in the board’s working memory, two files, ATHENA2.BIN and EXPERTS.BIN, are stored on the microSD card. During the first boot, the firmware transfers expert data that cannot remain in memory to flash, a process that takes around three minutes.

To train the model, Matveev used a mix of roughly 19,000 public-domain Russian books, Russian and Simple English Wikipedia, Wikidata, generated Q&A pairs, and children’s stories. You can find the firmware and model tools on the project’s GitHub repository under a GPL-3.0-or-later license, whereas the training and export code is based on the MIT-licensed llama2.c project. Setting it up requires cloning the repository, initializing its SDK submodule, building the firmware for your specific board, flashing that file, and finally copying the model files onto the memory card.

The developer reports that the model generates text at roughly 3.5 tokens per second on both supported boards, with the first token showing up two to four seconds after you submit a question. Matveev notes a 97 per cent accuracy rate on a 66-question Russian test set. On the English side, it scored 97.3 per cent on questions worded similarly to its training data, and 78.4 per cent when phrased in unfamiliar ways. Keep in mind that these numbers come directly from the developer’s own testing and haven’t been independently verified. The project’s documentation also openly notes that the model struggles with longer stories, reasoning-heavy questions, and factual recall.

For more information, click here.

Loading form…
Ananthu Ashok
Ananthu Ashok
Ananthu Ashok is a tech journalist and has a deep interest in embedded systems, open source, IoT, robotics and emerging tech.

SHARE YOUR THOUGHTS & COMMENTS

Latest DIY Projects

Electronics News

Truly Innovative Electronics

Electronics Components

Electronics Jobs