RepositoryPython
synchopate

synchopate/llama-modchip

Zero-GPU CPU inference for 26B-284B MoE models (Inkling-2-Mini Monza-RS v3, Qwen3.8 176.5B, DeepSeek-V4 284B, Nemotron-30B) + AVX-512 Fusion & RouteCrack 2.0.

1.5kstars
144forks
28issues
22views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: hpc

#1 Repository of the day

1
TINIX TRENDING·Topic: avx512

#1 Repository of the day

1
TINIX TRENDING·Topic: mamba2

#1 Repository of the day

🚀 Run 284B MoE Models on a 64 GB CPU, No GPU Required

llama-modchip compresses DeepSeek-V4-Flash (284B total) to 56.56 GiB and runs it at 44 tok/s prefill on pure CPU.

llama-modchip is a set of ggml/llama.cpp kernel patches, quantization transcoders, and runtime tools from synchopate. It runs sparse Mixture-of-Experts (MoE) checkpoints entirely in system RAM on x86_64 (AVX-512/AVX2) and ARM64 (NEON/SVE/Apple Metal). Standard builds of DeepSeek-V4-Flash need ~77 GiB and thrash on 64 GB systems; llama-modchip compresses the checkpoint to 56.56 GiB so the model plus a 256K KV cache locks into RAM with zero swap.

✨ Highlights

  • 284B MoE in 64 GB RAM: DeepSeek-V4-Flash (284.33B total, 13.17B active) drops from 76.87 GiB to 56.56 GiB at 1.71 bpw; model + 256K KV cache fit in 57.61 GiB VmRSS.
  • +77% prefill, +53% decode: AVX-512BW multi-column tiling (ZMM registers, L1D/L2/L3 schedule) replaces single-column quantized matvec loops; 25.0 → 44.36 tok/s on 16-core Zen 5.
  • Stockfish-PVS v2 speculative drafter: 1.64 MB Zobrist n-gram model pairs with /dev/shm KV slot snapshots, restoring Claude Code agent context in 13.1–32.6 ms.
  • Zero GPUs: 30B MoEs hit 25–111 tok/s on CPU; hybrid mode offloads hot attention/SSM to a GPU while cold MoE experts stay in RAM.
  • Broad hardware support: AVX-512/AVX2 on x86_64, NEON/SVE/Apple Metal on ARM64; 8-CCD AVX-512BW register tiling saturates 8-channel DDR5 on Threadripper.
  • Cache-aware MoE streaming: non-temporal _MM_HINT_NTA keeps cold expert weights from evicting hot KV cache lines from L3.

💡 Why it matters

Most large-model inference assumes a GPU. llama-modchip flips that: it treats system RAM as the primary compute medium and optimizes the CPU kernels hard. The 1.71 bpw quantization plus cache-aware MoE streaming is the difference between usable throughput and page-cache thrashing on a 64 GB box.

The speculative-drafting + KV slot restore combo is the practical win for agent workflows: restoring a 40-tool Claude Code prompt context in ~13 ms makes iterative agent use feel instant rather than cold. Fits developers with 16–64 GB laptops or desktops who want large MoE models without a GPU budget.


#CPUInference #MixtureOfExperts #llama.cpp #AVX512 #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
opensetlabs/openset-llm

Fast local LLM inference on plain CPUs. No GPU, 8 GB of RAM. OpenAI-compatible server.

3.2k
Dec 2, 2026
RepositoryPython
youssofal/MTPLX

The fastest way to run Inkling 2 Mini, Qwen 3.8 and Ternary Bonsai 2 27B on a Mac: Inkling 2 Mini at up to 128.8 tok/s and Flash Next at 125 tok/s in OpenCode on an M5 Max, and a 27B model on 16 GB Macs. Native MTP speculative decoding on Apple Silicon, exact at any temperature. OpenAI and Anthropic compatible local server.

2.9k
Nov 28, 2026
RepositoryPython
StayLameBro/backburner

Your iPhone helps your Mac run a 27B model: faster prompt reading and more context over a USB-C cable

1.2k
Nov 7, 2026
Modelimage-text-to-text
SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF

GSQ-RCO upstream · layout preserved144 tensors transplantedIQ3S / IQ3XXS / IQ2XS / Q20per-tensor blake2b verified262K contextAPACHE-2.0 Qwen3.8-Flash-Next · GSQ-RCO-abliterated The refusal direction removed from an already-quantized GSQ-RCO model —...

♥0
4.2M
Oct 24, 2026
Modeltext-generation
prism-ml/Ternary-Bonsai-2.5-27B-GGUF

Prism ML Website  |  Whitepaper  |  Demo & Examples  |  Discord Ternary Bonsai 2.5 27B — GGUF A 27B ternary model built for agents, for llama.cpp (CUDA, Metal, CPU) \~9× smaller than FP16 | FP16-level agentic tool c...

♥0
881.1k
Nov 24, 2026
RepositoryC++
incoai/splash

A local inference engine for Apple silicon, built around the model.

3.0k
Nov 28, 2026
RepositoryC++
Luce-Org/lucebox

Lucebox inference engine for heterogeneous hardware & consumer GPUs

3.0k
Nov 30, 2026
Modeltext-generation
antirez/deepseek-v4-gguf

DeepSeek V4 Flash — GGUF for ds4 This quants are specific for the DS4 inference engine. They may work with other inference engines or not (they should, but not the MTP model which requires a specific loader). https://github.com/antirez/ds4 Files | F...

♥0
429.0k
Aug 31, 2026
RepositoryC++
Helldez/BigMoeOnEdge

Run MoE models bigger than your RAM. Frontier-size MoE on a phone, laptop, edge. Lossless, on stock llama.cpp. An adaptive streaming optimizer. Any hardware, any OS, any model, any quantization, behind a local OpenAI-compatible server.

1.3k
Dec 1, 2026