BigMoeOnEdge runs a 21 GB model on a 12 GB phone by reading experts off flash
A llama.cpp-based engine keeps the busiest parts of a mixture-of-experts model in memory and fetches the rest from storage. Its limitations page is the best part.
BigMoeOnEdge is an inference engine, built on llama.cpp, for running mixture-of-experts models that are bigger than the memory of the machine. The README’s headline example is Qwen3.6-35B-A3B, 21 GB on disk, answering at 5 to 6 tokens per second on an Android phone with 12 GB of RAM.
The project, by GitHub user Helldez, is not new: it has 622 commits. But it shipped at least ten releases between November 9 and 17, and the docs are unusually frank about where the trick stops working.
How it works
A mixture-of-experts model is mostly made of small sub-networks, and each token passes through only a few of them per layer. So at any moment, most of the file is idle.
The engine uses that. It keeps in memory the weights every token needs, plus the experts that get used most, and reads the others from flash storage when the router asks for them. On a desktop with a graphics card there are three tiers: the hottest experts in VRAM, more in RAM, the rest on disk. The README says the output is the same as with the whole model loaded, and that the tests check this.
An --auto mode measures the machine and the model, then picks the cache size, thread count, and which device does what. Because the engine sits on llama.cpp’s public API, the README says any MoE model in GGUF format works at any quantization, with no per-model code.
The numbers, and the fine print
All figures are the author’s, from the README’s performance table. A 16 GB Apple-silicon laptop runs the same 21 GB model at 18 to 24 tokens per second. The 12 GB phone manages DeepSeek V4 Flash 284B, 91 GB on disk, at 1 token per second, which is a proof more than a product.
The limitations page is worth reading in full. Some of it:
- Decoding serves one sequence at a time. A batch has to load the union of every token’s experts, so the saving is widest at one token. Prefill pays the same tax.
- A model that already fits in memory is faster loaded normally. Beating that case is listed among the things the project is not trying to do.
- Models with shared experts or dense layers, such as the Gemma 4 and DeepSeek 4 architectures, keep those parts resident, so less is saved.
- iOS support was tested by one contributor on one iPhone.
- The design leans on a ggml scheduling behavior that is not a guaranteed contract. The tests re-verify it on each update.
Try it yourself
The releases page has a macOS disk image (not notarised yet), a Windows installer, a Linux AppImage, and an Android APK. The command-line tools are bmoe-cli and bmoe-server, which serves OpenAI-style and Anthropic-style APIs on port 8765. v0.42.0 from November 11 is marked latest, and v0.44.0 from November 17 is a pre-release. The license is Apache 2.0.
We have not installed or run it; this is based on the README, the limitations page, and the release notes.