I'm making LLMs work on small and old devices
Custom llama.cpp patches and 1-bit kernels enable running 16B mixture-of-experts models on devices with under 1 GB of usable RAM like old TV boxes and iPads.
read it The repository details custom low-level kernels, memory tricks, and flash-streaming architectures for running large models on severely constrained hardware.
summary
An open-source project adapts llama.cpp to run large language models on obsolete hardware like a 2013 iPad Air and an Android TV box. By implementing 1-bit lookup-table kernels, dropping unused vocabulary rows, and paging Mixture-of-Experts layers from flash storage, the setup achieves usable token speeds on devices with roughly 1 GB of RAM. The repository includes extensive lab notes, custom patches, and cross-compilation tools.
key points
- Uses 1-bit lookup-table kernels and repacked 2-bit/ternary formats tailored for low-end ARM Cortex-A55 and Apple A7 chips lacking dot-product instructions.
- Pages mixture-of-experts layers dynamically from flash storage to run 8B and 16B models within a 1 GB RAM footprint.
- Drops rarely used vocabulary rows and introduces headless modes to reclaim crucial memory on resource-constrained operating systems.
who should read it
Systems engineers, embedded developers, and hardware hackers interested in extreme resource optimization and local LLM deployment.
discussion positive
consensus
Commenters find the project technically impressive and draw parallels to the demoscene or running DOOM on vintage hardware, though many question the practical utility of sub-optimal tiny models.
pushback
Some critics point out that scaled-down general models like Qwen underperform compared to models specifically designed for tiny sizes, and note the heavy use of AI coding tools.
Qwen isn't a good tiny model, it's scaled down and leads to bad results. It'll output the name of a capital city, but then it falls down on real work. MiniCPM, LFM, K2, Granite, Nemotron Nano, Gemma E2B, are designed to do work at tiny size. Speed means nothing if it gets stuck in doom loops, can't tool call, isn't trained on embedded functionality, etc. (https://artificialanalysis.ai/models/open-source/tiny)
Highlights better-suited alternative models designed specifically for tiny hardware footprints rather than scaled-down general models.
Generated by an LLM from the article and thread. Check the sources before relying on it.