This file runs Moon-Beam-8B-A1B-Preview, an 8B mixture-of-experts model, on a 2013 iPad Air. The iPad has an Apple A7 (2 cores, no dotprod), 1 GB of RAM, and runs iOS 12.5.7 (jailbroken). Stock llama.cpp can't even load the model there: iOS 12 lets a process map at most about 1.7 GB, and the file is 2.75 GB. In this file every expert tensor comes after everything else, so the expert pager maps only the first 474 MB and reads experts from flash with pread when the router picks them.
For the fastest iPad file, use hyperionaidev/Moon-Beam-8B-A1B-ipad-GGUF instead (mb-q2-h60-lut.gguf, about 4 % faster). That file is this one with its experts repacked for a lookup-table kernel. This file keeps the experts in the standard Q2_K layout. Use it to:
From the 🤏 smolmaxxing project. The full write-up is in EXPERIMENT.md §21.8-21.10.
⚠️ This file needs the patched llama.cpp from the smolmaxxing repo (the iOS 12 patch, see Run). It has a pruned output head: 60,000 of 157,184 vocabulary rows, plus an
output_idstensor. Stock llama.cpp, LM Studio and Ollama will not load it.
| File | mb-q2-h60-xl.gguf, 2,753,180,192 bytes (2.75 GB) |
| SHA-256 | aa91940040d91c9b18725361399dd451a3405510c98c3a1c00e83a2922871d7e |
| Made from | the TV file mb-q2-h60.gguf from hyperionaidev/Moon-Beam-8B-A1B-tvbox-GGUF (SHA-256 2d78fcdd…1c34ee), with tools/gguf_experts_last.py |
| Layout | all 69 *_exps tensors moved after the others; the tensor bytes are unchanged. The non-expert part is the first 474 MB. Each expert (gate, up and down together) is 0.774 MB. |
| Experts | Q2_K, imatrix from a Wikipedia and Project Gutenberg sample |
| Everything else | Q4_K (attention, DeltaNet, shared expert, embeddings, head) |
| Output head | 60,000 rows (data/head-ids-ling-60k.txt). Prompts can use every token, but the model can only generate tokens in the head. |
Perplexity is identical to the TV file. Paging and reordering don't change any computation (E138).
All runs use the expert pager with pool 14, on a 220-token story prompt.
| Setting | tok/s |
|---|---|
| Cache bias 0.03, no prefetch | 2.76 |
| Bias 0.03, top-4 prefetch | 2.94 |
The same settings with the repacked -lut file, for comparison |
3.06 |
On a jailbroken iOS 12 device:
1945793 with ipad-air/patches/llama.cpp-ios12.patch applied, using ipad-air/build.sh from the repo. ipad-air/README.md has the steps: Xcode 15.4's iPhoneOS SDK, signing with ldid -Sent.xml, and SSH over USB.GGML_MOE_PAGER=1 GGML_MOE_POOL=14 GGML_MOE_BIAS=0.03 GGML_MOE_PREFETCH=1 GGML_MOE_LFU=0.95 \
./smolchat -m mb-q2-h60-xl.gguf -c 512 -b 64 --no-think --repeat-penalty 1.15 --repeat-last 256
To make the faster lookup-table file from this one: python3 tools/gguf_q2lut.py mb-q2-h60-xl.gguf mb-q2-h60-lut.gguf.