This is the exact file that runs Moon-Beam-8B-A1B-Preview at 7.2 tok/s in real chat on a Xiaomi TV Box S (3rd Gen). That box has 4× Cortex-A55 and ~1 GB of usable RAM. The model is an 8B mixture-of-experts with 128 experts. Experts are paged from flash on demand.
From the 🤏 smolmaxxing project. The full write-up is in EXPERIMENT.md §19.
⚠️ This file needs the patched llama.cpp from the smolmaxxing repo. 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. See Run.
| File | mb-q2-h60.gguf, 2.75 GB |
| SHA-256 | 2d78fcdd14c72fb84967c7a906aa9d4ea3ecd699bfbddbd03446d336ee1c34ee |
| Source | tablinum/Moon-Beam-8B-A1B-GGUF-Preview, Q8_0 |
| Experts | Q2_K, imatrix from a Wikipedia + Project Gutenberg sample |
| Everything else | Q4_K (attention, DeltaNet, shared expert, embeddings, head) |
| Output head | 60,000 rows (data/head-ids-ling-60k.txt), chosen by token frequency on an English + multilingual corpus. Prompts can still use every token; the model can only generate tokens in the head (rare and non-Latin tokens are mostly out). |
| Context | 131,072 tokens in the metadata; run at 1,024 on the TV |
The general.name in the metadata is "Merged R1B". That comes from the source file and was left unchanged.
| Setting | Quality (bits/byte, lower is better) | Real chat | Long answers that loop |
|---|---|---|---|
| Default: top-6 experts, bias 0.25, prefetch, repeat penalty | 0.996 | 7.2 tok/s | 2/8 |
| Top-8 experts, bias 0.2 | 0.963 | ~6.9 tok/s |
--repeat-penalty 1.15 --repeat-last-n 256.This model is the 8B MoE row. The best file of every size class is in hyperionaidev. The scoreboard has the full table and the kernels and memory tricks behind each step.
Build the patched llama.cpp first. It's llama.cpp at 8642541 with patches/llama.cpp-v0.8.0-tvbox.patch applied; Quick start has the exact steps. Then run:
# Low-RAM setup (what the TV runs): expert pager, cache-aware routing, warm start, pre-gated prefetch.
# moe-warm-moonbeam.txt is in this repo. The repack cache is written on the first run.
GGML_MOE_PAGER=1 GGML_MOE_POOL=43 GGML_MOE_BIAS=0.25 LLAMA_MOE_USED=6 \
GGML_MOE_PREFETCH_K=6 GGML_MOE_PREFETCH_AHEAD=2 \
GGML_MOE_WARM=moe-warm-moonbeam.txt GGML_REPACK_CACHE=cache/mbq2 \
llama-server -m mb-q2-h60.gguf -t 3 -c 1024 -ub 4 -b 64 -ctk q8_0 -ctv q8_0 -fa on -cram 0 -ctxcp 0 \
--repeat-penalty 1.15 --repeat-last-n 256
On a machine with RAM to spare, drop the environment variables: the patched llama-server -m mb-q2-h60.gguf loads every expert normally. On the TV box, tv-llm-ui/start.sh in the repo does all of this, including a headless mode that frees Android's RAM.
Settings:
LLAMA_MOE_USED: experts per token. 6 is the default; 8 gives better text at ~5 % less speed.GGML_MOE_BIAS: how strongly routing prefers experts already in RAM.GGML_MOE_POOL: experts kept in RAM per layer.