llama-modchip runs a 284B model on a 64GB CPU
2026-11-09 · GitHub
llama-modchip is a set of kernel patches for llama.cpp/ggml, quantization transcoders and runtime tools aiming to run sparse mixture-of-experts models entirely in system RAM on x86_64 (AVX-512/AVX2) and ARM64. On Nov. 8 it made Hacker News's 300-plus-point list.
Its headline claim: the standard UD-IQ1_S build of DeepSeek-V4-Flash (about 284.3B total, 13.17B active) needs about 76.87 GiB, above the roughly 62.5 GiB usable on a 64GB machine, causing thrashing or OOM kills; llama-modchip shrinks the checkpoint to 56.56 GiB (about 1.71 bpw) so with a 256K KV cache it holds about 57.6–58.9 GiB resident, and by default still evaluates all 6 routed experts per layer.
The author adds self-speculative decoding with a Zobrist n-gram drafter and KV snapshots in /dev/shm, claiming a 40-tool Claude Code prompt restores in about 13–33 ms. Listed speeds are about 44.4 tok/s prefill and 9.1–14.7 tok/s generation; 30B-class MoEs about 25–111 tok/s. All are the author's own measurements.
Note the custom quantization format needs the author's patched binary; stock llama.cpp, Ollama and LM Studio reject it. The README gives its own quality evals for such low-bit quantization, but parity with the original needs independent checking. Confirm each model's license before use.