Retrieved article excerpt
Open article Β· Retrieved 2026-11-08T11:21:59.043882+00:00
# βοΈπ llama-modchip (v2.4.0)
### Break the 64 GB RAM Wall: Run 284B DeepSeek-V4-Flash (< 59 GiB RAM) & 30B MoEs (up to 111 tok/s) at 256K Context on Pure CPU β Zero GPUs Required.
[Release](https://github.com/synchopate/llama-modchip/blob/main/RELEASE_NOTES.md)
[License](https://github.com/synchopate/llama-modchip/blob/main/LICENSE)
[arXiv Preprint PDF](https://github.com/synchopate/llama-modchip/blob/main/paper/llama-modchip-paper.pdf)
[Technical Paper](https://github.com/synchopate/llama-modchip/blob/main/ARCHITECTURE.md)
[RouteCrack + Stockfish](https://github.com/synchopate/llama-modchip/blob/main/speculative/ROUTECRACK_TECHNIQUES.md)
[Submit Benchmark](https://github.com/synchopate/llama-modchip/issues/new?template=cpu_benchmark_submission.yml)
[**β‘ Quickstart**](https://github.com/synchopate/llama-modchip#-quickstart) Β· [**π§© Supported Models**](https://github.com/synchopate/llama-modchip#-supported-models--model-specific-optimizations) Β· [**π₯οΈ Supported Chips & Platforms**](https://github.com/synchopate/llama-modchip#%EF%B8%8F-supported-chips--processor-specific-optimizations) Β· [**π Leaderboard**](https://github.com/synchopate/llama-modchip#-community-cpu--hybrid-leaderboard) Β· [**π Preprint PDF (`paper/`)**](https://github.com/synchopate/llama-modchip/blob/main/paper/llama-modchip-paper.pdf) Β· [**π Architecture**](https://github.com/synchopate/llama-modchip/blob/main/ARCHITECTURE.md) Β· [**β FAQ**](https://github.com/synchopate/llama-modchip/blob/main/FAQ.md)
| | | | | | | |
| --- | --- | --- | --- | --- | --- | --- |
| **284.33B** Frontier MoE params | **56.56 GiB** checkpoint on disk | **57.61 GiB** peak VmRSS @ 256K ctx | **44.36 tok/s** 284B CPU prefill | **60.4β111.6 tok/s** 30B MoE CPU decode | **13.1 ms** Claude Code restore | **0** GPUs required |
**Real-time Frontier & Agentic MoE inference on the CPU workstation you already own β 100% in RAM, zero NVMe swap:**
| the machine you have | RAM | recommended model | speed (0 GPUs) | what is going on |
| --- | --- | --- | --- | --- |
| a developer laptop / mini-PC | 16β32 GB | **Nemotron-3.5-30B-A3B** (`14.35 GiB`) | **25.0β60.4 tok/s** | 46 Mamba-2 SSM layers + 1.64 MB L3 Stockfish-PVS drafter; 256K ctx in 6 GiB KV |
| a 64 GB desktop / server | 64 GB | **DeepSeek-V4-Flash 284B** (`56.56 GiB`) | **44.4 tok/s pp Β· 9.1β14.7 tok/s tg** | SwiGLU-H2 shaves 20.31 GiB; entire 284B model + 256K ctx sits in RAM (57.61 GiB VmRSS) |
| a hybrid desktop (CPU + 16 GB GPU) | 32β64 GB | **Nemotron-30B / Qwen3-30B** | **80.80 tok/s** | hot attention trunk on GPU (`-ngl 99`), cold routed MoE experts in CPU DDR5 |
| an 8-channel workstation (Threadripper) | 128 GB+ | **DeepSeek-284B / Nemotron-30B** | **111.62 tok/s** (30B) | 8-CCD AVX-512BW `_1x8` register tiling saturates 8-channel DDR5 memory bandwidth |
> **TL;DR β The 3 Paradigm-Breaking Pillars of `llama-modchip`:**
>
> - π **284.33B Frontier MoE in a 64 GB CPU Box:** Shrinks `DeepSeek-V4-Flash` from `76.87 GiB` (which crashes in OOM on 64 GB Linux) down to **`56.56 GiB` on disk / `57.61β58.9 GiB` `VmRSS` at full 256K context** (**`44.36 tok/s` prefill**, **`9.06β10.74 tok/s` pure CPU decode**, **`11.5β14.7 tok/s` with PVS**) using closed-form **Analytical `SwiGLU-H2` Second-Order Hessian Compression** + **`Fractal-64` (`Q2_0`, `3.75 bpw`) MLA transcoding** + **4-Level Register (`ZMM` AVX-512BW) + L1D (`32 KB`) + L2 (`1 MB`) + L3 (`64 MB`) Whole-Model Tiling** + **$L\_2$-Quadrature MoE Pruning**.
> - β‘ **30B MoE at GPU Speeds on Pure CPU:** Runs `NVIDIA-Nemotron-3.5-30B-A3B` in **`14.35 GiB`** at **`25.0β60.4 tok/s`** on 16-core Zen 5 (**`111.6 tok/s`** on Threadripper, **`80.8 tok/s`** on AMD Vulkan Hybrid, **`44.97 tok/s`** on AWS Graviton3 ARM64) via a **`1.64 MB` `Stockfish-PVS v2 + RouteCrack` L2/L3 Drafter (`96.4%` acceptance)** and `_MM_HINT_NTA` L3 cache isolation (`HARPCache`).
> - π€ **Zero-API Claude Code (`./modchip claude`):** Eliminates the 45-second CPU agent prompt re-evaluation bottleneck via **`/dev/shm` Slot-0 KV Warm Restore (`18.9 ms` on Nemotron-30B / `13.1β32.6 ms` on DeepSeek-284B)** with all 40 Claude Code tools active.
[llama-modchip v2.4.0 β 284.33B DeepSeek-V4-Flash in 57.61 GiB RAM & 60.4 tok/s Nemotron-30B on Pure CPU](https://github.com/synchopate/llama-modchip/blob/main/assets/launch_284b_64gb.gif)
---
## β‘ Quickstart
### π§ Linux & π macOS (1-Command Automated Setup & Chat)
```
git clone https://github.com/synchopate/llama-modchip.git
cd llama-modchip
./modchip chat
```
### β‘ Zero-Compile Direct Run (Pre-Compiled Linux `x86_64` Binary + Hugging Face `.gguf`)
> **β οΈ Important Compatibility Note (`GGML_TYPE_Q2_0 = 40`):** Our **`Fractal-64`** models use custom block-64 `BF16`-scale Gray-coded tensors (`GGML_TYPE_Q2_0`, type ID `40`) and custom `deepseek4` / `Stockfish-PVS` kernels. Opening them in unpatched `llama.cpp`, Ollama, or LM Studio will fail with `unknown tensor type 40`. Use either `./modchip` above or our **standalone single-file pre-compiled binary (`llama-server-modchip-linux-x86_64`, zero `.so` dependencies)** bundled directly inside the Hugging Face repositories and [GitHub Release `v2.4.0`](https://github.com/synchopate/llama-modchip/releases/tag/v2.4.0):
```
# 1. For 30B Nemotron-3.5-A3B (14.35 GiB β runs in 16β32 GB RAM at 25β60.4 tok/s):
hf download Synchopate/NVIDIA-Nemotron-3.5-30B-A3B-Fractal-64-CPU-GGUF \
llama-server-modchip-linux-x86_64 NVIDIA-Nemotron-3.5-30B-A3B-Fractal-64.gguf --local-dir .
chmod +x llama-server-modchip-linux-x86_64
./llama-server-modchip-linux-x86_64 -m NVIDIA-Nemotron-3.5-30B-A3B-Fractal-64.gguf -c 262144 -t 16 --port 8080
# 2. For 284B DeepSeek-V4-Flash (56.56 GiB β fits in 64 GB RAM at 9.1β14.7 tok/s):
hf download Synchopate/DeepSeek-V4-Flash-0731-Fractal-64GB-CPU-GGUF --local-dir ./dsv4
chmod +x ./dsv4/llama-server-modchip-linux-x86_64
./dsv4/llama-server-modchip-linux-x86_64 -m ./dsv4/DeepSeek-V4-Flash-0731-Fractal-00001-of-00003.gguf -c 32768 -t 16 -fa on --port 8080
```
### πͺ Windows 10/11 (1-Click Hybrid GPU + CPU MoE Pack)
Open **[`windows/`](https://github.com/synchopate/llama-modchip/blob/main/windows/README.md)** and double-click **[`windows/AVVIA_MODCHIP.bat`](https://github.com/synchopate/llama-modchip/blob/main/windows/AVVIA_MODCHIP.bat)** (or run `./modchip start` in Git Bash). It automatically detects your CPU cores, free RAM, and GPU VRAM (`nvidia-smi`), downloads official `llama.cpp` CUDA 12.4 / Vulkan binaries, computes the optimal `--n-cpu-moe` split, and opens the Web Chat UI (`http://127.0.0.1:8080`).
| `./modchip` Command | What It Does |
| --- | --- |
| **`./modchip chat`** | π¬ Interactive terminal chat with live `tok/s`, TTFT, and `Stockfish-PVS` acceptance telemetry |
| **`./modchip web`** | π Opens the **Dark-Mode Web Chat & Live Telemetry HUD** (`http://127.0.0.1:8787`) |
| **`./modchip bench`** | π Runs a 30-second 2-stage speed test and prints a shareable **CPU Benchmark Scorecard** |
| **`./modchip claude`** | π€ Launches **Claude Code CLI** (`40 tools`) wired to the local 256K engine (`18.9β32.6 ms` warm restore) |
| **`./modchip eval`** | π§ͺ Runs the reproducible **100-Point Quality, Tool-Calling, Coding & 8.5K Needle Gate** |
| **`./modchip quantize`** | ποΈ Transcodes `BF16`/`Q4_0`/`IQ2_XXS` GGUFs into **`Fractal-64`** (`3.75 bpw`) or **`Fractal-MXFP4`** (`4.25 bpw`) |
| **`./modchip status` / `stop`** | π Inspects CPU readiness, `2MB HugePages`, and `/dev/shm` IPC, or stops background services |
### π Can your CPU run a 284B Frontier MoE in 64 GB RAM? Test in 2 seconds (Zero Downloads):
```
curl -sL https://raw.githubusercontent.com/synchopate/llama-modchip/main/scripts/check_cpu_readiness.py | python3
```
π **Paste your terminal scorecard in a [π 1-Click GitHub Benchmark Issue](https://github.com/synchopate/llama-modchip/issues/new?template=cpu_benchmark_submission.yml) or [GitHub Discussions](https://github.com/synchopate/llama-modchip/discussions) to be added to the Official Community CPU Leaderboard!**
---
## π§© Supported Models & Model-Specific Optimizations
Each model family has a dedicated deep-dive optimization guide with exact mathematical proofs, operator-level latency breakdowns, and quality gate benchmarks:
| Model Family | Total / Active Params | Disk (`GGUF`) & `256K` RAM (`VmRSS`) | Key Optimizations Implemented | Verified Speed (`16C Zen 5` / Hybrid) | Detailed Guide |
| --- | --- | --- | --- | --- | --- |
| **π `NVIDIA-Nemotron-3.5-30B-A3B`** *(`Fractal-64` / `MXFP4` / `Q4_0`)* | `30.2B` / **`3.0B`** *(`23 SSM + 23 MoE + 6 GQA`)* | **`14.35 β 17.59 GiB`** *(`15.4 β 21.7 GiB` RSS)* | β’ **Block-64 `Fractal-64` (`3.75 bpw`) & `MXFP4` (`4.25 bpw`)** (`100/100` Quality Gate) β’ **`Stockfish-PVS v2 (M=7)` + `RouteCrack`** (`1.64 MB` L2/L3 Zobrist TT) β’ **`432 MB` 256K EAKV (`Q8_0/Q4_0`)** + `_MM_HINT_NTA` L3 isolation β’ **`18.9 ms` `/dev/shm` Slot-0 Restore** (`~6,800x` faster warm turns) | **`25.0 β 60.4 tok/s`** (`0 GPU`) **`80.8 tok/s`** (`Vulkan Hybrid`) **`111.6 tok/s`** (`Threadripper`) | π **[Nemotron Guide](https://github.com/synchopate/llama-modchip/blob/main/docs/NEMOTRON_OPTIMIZATIONS.md)** |
| **π `DeepSeek-V4-Flash-0731-Fractal`** *(`SwiGLU-H2 + Fractal-64`)* | **`284.33B`** / **`13.17B`** *(`43L MLA + 256+1s MoE`)* | **`56.56 GiB`** *(`-20.3 GiB`)* *(**`58.9 GiB` RSS** β fits in `64 GB`!)* | β’ **Analytical 2nd-Order `SwiGLU-H2` MoE + `Fractal-64` MLA Transcoding** β’ **4-Level Register (`ZMM` AVX-512BW) + L1D (`32KB`) + L2 (`1MB`) + L3 (`64MB`) Multi-Column (`{8,4,3,2}`) Prefill Tiling (`25.0 -> 44.36 tok/s`, `+77%`)** β’ **Register-Stationary AVX-512 `MQA8` FlashAttention (`2.0x`) + AVX-512 `quantize_row_q8_K`** β’ **$L\_2$-Quadrature MoE Pruning + L1-Local Gate-First SwiGLU (`10.74 tok/s`)** β’ **Exact SVD of `wo_b * wo_a`** (`99.82%` CosSim at `-25%` rank) & $O(1)$ Rollback Fix | **`43.2β44.4 tok/s`** *(Prefill)* **`9.06β9.95 tok/s`** *(Lossless)* **`9.87β10.15 tok/s`** *(`Top-5 L2`)* **`10.41β10.74 tok/s`** *(`Top-4+SwiGLU`)* **`11.5β14.7 tok/s`** *(`PVS`)* | π **[DeepSeek-V4 Guide](https://github.com/synchopate/llama-modchip/blob/main/docs/DEEPSEEK_V4_OPTIMIZATIONS.md)** |
| **β‘ `Qwen3-30B-A3B` & `Qwen3-14B`** *(`Q3_K_M` / `Q4_K_M`)* | `30.5B` / **`3.3B -> 1.7B`** *(`48L GQA`, `128` exp)* | **`13.70 β 17.28 GiB`** *(`14.5 β 19.4 GiB` RSS)* | β’ **Norm-Preserving Dynamic MoE Top-K (`8 -> 4`, `+38.5%` decode)** β’ **3:1 Interleaved SWA Safety Lock (`LLAMA_SWA_STRIDE=4`)** β’ **Windows `11 GB VRAM + 16 GB RAM` Hybrid Split (`--n-cpu-moe N`)** | **`34.80 tok/s`** (`0 GPU` Top-4) **`50β58 tok/s`** (`14B` RTX 2080 Ti) | π **[Architecture Β§3.9](https://github.com/synchopate/llama-modchip/blob/main/ARCHITECTURE.md)** |
| **ποΈ `NVIDIA-Nemotron-H-8B-128K`** *(`Q8_0` / `Q4_K_M`)* | `8.0B` Dense *(`48 SSM + 4 GQA`)* | **`4.60 β 8.00 GiB`** *(`210 MB` KV @ `128K`)* | β’ **48-Layer Mamba-2 SSM Constant-Memory Backbone** β’ **100% GPU VRAM Residency on `8β11 GB` Cards (`0 GB` System RAM)** | **`100+ tok/s`** (`RTX 2080 Ti`) **`147.6 tok/s`** (`CPU pp512`) | π **[Nemotron Guide](https://github.com/synchopate/llama-modchip/blob/main/docs/NEMOTRON_OPTIMIZATIONS.md)** |
---
## π₯οΈ Supported Chips & Processor-Specific Optimizations
Full microarchitectural details and tuning flags for every supported processor and GPU hybrid are documented in **[`docs/HARDWARE_OPTIMIZATIONS.md`](https://github.com/synchopate/llama-modchip/blob/main/docs/HARDWARE_OPTIMIZATIONS.md)**:
| Processor / Platform | Verified Hardware | Hardware-Specific Optimizations Active | Platform Guide & Scripts |
| --- | --- | --- | --- |
| **AMD Zen 5 (`Desktop / Mobile / Server`)** | `Ryzen 9 9955HX`, `9950X`, `EPYC 9005 Turin` | β’ Single-cycle 512-bit **AVX-512 (`VPDPBUSD`, `VPRORVQ`, `VBMI`, `BF16`)** β’ **`48 KB` L1D 3D Tiling (`TILE_I0=64`)** on multi-head `wo_a` projections β’ **`_MM_HINT_NTA` Victim-L3 Isolation (`64 MB`)** + **`2MB` THP (`6.14 GB` L2 STLB)** | π **[Hardware Guide Β§2.1](https://github.com/synchopate/llama-modchip/blob/main/docs/HARDWARE_OPTI