esp32-ai
A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.
It is one of the few projects to get llama.cpp running natively on a Nintendo Switch via a custom patch, proving that even a Tegra X1 can handle offline quantized LLMs in a constrained homebrew environment.
Run local LLMs (GGUF models via llama.cpp) natively on a homebrew-enabled Nintendo Switch — no internet connection required. CPU-only inference, console-based UI, model picker, and persistent multi-chat history saved to the SD card. Disclaimer: This was Vibe Coded using Claude Sonnet 5
.gguf model dropped into sdmc:/switch/llm/models/devkitA64, switch-dev, and
switch-tools installed.gguf model (see Getting a model)wget https://apt.devkitpro.org/install-devkitpro-pacman
chmod +x ./install-devkitpro-pacman
sudo ./install-devkitpro-pacman
sudo dkp-pacman -S devkitA64 switch-dev switch-tools
Make sure your environment has:
export DEVKITPRO=/opt/devkitpro
export DEVKITA64=${DEVKITPRO}/devkitA64
export PATH=${DEVKITPRO}/tools/bin:${DEVKITA64}/bin:${PATH}
llama.cpp doesn't support Horizon OS out of the box. This repo ships a patch that adds Switch/newlib
compatibility (no dlfcn.h/mmap, missing posix_memalign/sysconf, forces the CPU backend, etc).
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
git apply ../patches/llama-switch.patch
mkdir build-switch && cd build-switch
cmake .. -DCMAKE_TOOLCHAIN_FILE=../switch-toolchain.cmake \
-DGGML_OPENMP=OFF \
-DGGML_NATIVE=OFF \
-DLLAMA_CURL=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DLLAMA_BUILD_TOOLS=OFF \
-DLLAMA_BUILD_EXAMPLES=OFF \
-DLLAMA_BUILD_SERVER=OFF \
-DLLAMA_BUILD_TESTS=OFF \
-DLLAMA_BUILD_APP=OFF \
-DGGML_BACKEND_DL=OFF \
-DGGML_CPU=ON \
-DLLAMA_BUILD_COMMON=OFF
make -j$(nproc)
cd ../..
The toolchain file (switch-toolchain.cmake) is included in this repo — copy it into your llama.cpp
checkout before running cmake:
cp switch-toolchain.
Similar projects matched by category, topics, and programming language.
A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.
Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.