Hacker Project: Running Local LLMs on an Echo Dot 2 with Only 512MB RAM
alberto_zurini · reddit · 2026-08-07
A developer successfully deployed a fully offline voice assistant pipeline on an Amazon Echo Dot 2—equipped with only an ARMv7 processor and 512MB of RAM—achieving local speech recognition and LLM inference.
Core Technical Optimizations:
- Model Choice: Used an ultra-small 28M parameter LLM, reaching 7 tokens/s for prompt processing and 4 tokens/s for generation.
- Architectural Tweaks: Abandoned cold-starting llama-cli for every interaction. Instead, a persistent llama-server process is used, leveraging cacheprompt=true to reuse the KV cache for stable prefixes.
- Performance Leap: By keeping the server resident and caching prompts, warm query latency for simple commands dropped drastically from 17 seconds to 2.3 seconds.
- Offline Voice Pipeline: Integrated Sherpa-ONNX for offline streaming STT. The LLM's output is strictly constrained to simple JSON action commands (e.g., controlling volume, toggling lights), bypassing the limitations of a tiny model to enable purely local IoT voice control.
More from Infra
- Chess Transformer hits 2545 Elo after 260x training speedup — realSharonZhou · 2026-11-30
- Tokens/sec alone is misleading: quantized LLM speed hides quality costs — OrganizationAgile361 · 2026-11-30
- Samsung's new memory chief warns record quarters don't mean competitiveness is back — tengyanAI · 2026-11-30
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30