llama-modchip Runs 284B DeepSeek On 64 GB RAM, No GPU
A project called llama-modchip has appeared on GitHub claiming to run DeepSeek-V4-Flash, a 284 billion parameter mixture-of-experts model, entirely on a 64 GB CPU workstation with zero GPUs. The project reports 44.36 tokens per second prefill and 9 to 14.7 tokens per second decode at 256K context length.
For context, running a 284B model normally requires multiple high-end GPUs with combined VRAM well exceeding 60 GB. llama-modchip fits the entire model plus 256K context into 57.61 GiB of system RAM on a stock AMD Ryzen 9 9955HX with 64 GB DDR5.
How It Works
The project combines several techniques to achieve what sounds impossible:
- SwiGLU-H2 Compression — an analytical second-order Hessian compression method that shrinks the model from 76.87 GiB to 56.56 GiB, a 20.31 GiB reduction, while claiming bit-exact lossless output (100% cosine similarity, 0% KL divergence).
- Fractal-64 Quantization — a custom Q2_0 block-64 format at 3.75 bits per weight, combined with BF16-scale Gray-coded tensors.
- Stockfish-PVS Drafting — a 1.64 MB speculative decoding drafter inspired by chess engine search techniques, achieving 96.4% acceptance rate and boosting decode speed from 25 to 60 tokens per second on 30B models.
- 4-Level Register Tiling — ZMM AVX-512BW register tiling across L1D (32 KB), L2 (1 MB), and L3 (64 MB) cache levels, increasing prefill throughput by 77%.
- /dev/shm Warm Restore — eliminates the 45-second agent prompt re-evaluation bottleneck by restoring KV cache from shared memory in 13.1 milliseconds, making Claude Code integration practical on CPU.
Supported Models and Hardware
Beyond the flagship DeepSeek-V4-Flash 284B, the project also runs NVIDIA Nemotron-3.5-30B-A3B at 25 to 60 tokens per second on 16 GB of RAM. A hybrid mode using a 16 GB GPU alongside CPU reaches 80.8 tok/s. On an 8-channel Threadripper with 256 GB RAM, the 30B model hits 111.6 tok/s.
Supported hardware spans AMD Zen 4 and Zen 5, Intel with NVIDIA RTX GPUs on Windows, Apple Silicon (M1 through M4 Pro), and AWS Graviton3 ARM64 instances. The project provides per-processor optimization guides with exact flag tuning.
Caveats
The custom Fractal-64 tensor format means these models will not work with unpatched llama.cpp, Ollama, or LM Studio. You must use the modchip binary or the standalone pre-compiled server bundled in the Hugging Face repositories.
The project includes a 100-point quality gate benchmark, and the Fractal-64 and Fractal-MXFP4 formats both score 100/100 on it. The lossless mode claims bit-exact output match with the unquantized model.
Why It Matters
Running frontier-scale models on commodity CPU hardware changes the economics of AI inference. A 64 GB desktop costs a fraction of an 8x H100 server. If the benchmarks hold up to independent verification, llama-modchip could make frontier model deployment accessible to anyone with a desktop computer and enough RAM.
For those of us running AI on ARM boards with 16 GB of RAM, the 30B MoE results are equally interesting. 25 tokens per second on a 16 GB developer laptop, with no GPU, is fast enough for interactive use.