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.5ksao
144fork
28issue
22lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: hpc

#1 Repository của ngày

1
TINIX TRENDING·Chủ đề: avx512

#1 Repository của ngày

1
TINIX TRENDING·Chủ đề: mamba2

#1 Repository của ngày

llama-modchip (v2.4.0)

CPU-First Inference for 284B & 30B Mixture-of-Experts Models on 16–64 GB RAM

Release License Technical Paper PDF Architecture Drafter Submit Benchmark

Quickstart · Quantization & Memory Specs · Supported Models · Supported Hardware · Leaderboard · Technical Paper (paper/) · Architecture · FAQ

284.33B
Total MoE params (13.17B active)
56.56 GiB
DeepSeek-V4 GGUF (1.71 bpw)
57.61 GiB
Peak VmRSS @ 256K ctx
44.36 tok/s
284B CPU prefill (16C Zen 5)
25.0–111.6 tok/s
30B MoE CPU decode (3.75 bpw)
13.1 ms
/dev/shm KV slot restore
0
GPUs required
Hardware ClassSystem RAMTarget CheckpointThroughput (0 GPUs)Architecture & Memory Notes
Developer laptop / Mini-PC16–32 GBNemotron-3.5-30B-A3B (14.35 GiB, 3.75 bpw)25.0–60.4 tok/s46 Mamba-2 SSM layers + 1.64 MB L3 PVS drafter; 256K context uses 432 MB KV
64 GB Desktop / Server64 GBDeepSeek-V4-Flash 284B (56.56 GiB, 1.71 bpw)44.4 tok/s pp · 9.1–14.7 tok/s tgFits in 62.5 GiB usable Linux RAM (57.61 GiB VmRSS) with zero NVMe swap
Hybrid Desktop (CPU + 16 GB GPU)32–64 GBNemotron-30B / Qwen3-30B (3.75–4.25 bpw)80.80 tok/sHot attention/SSM trunk on GPU (-ngl 99), cold routed MoE experts in CPU RAM
8-Channel Workstation (Threadripper)128 GB+DeepSeek-284B / Nemotron-30B111.62 tok/s (30B)8-CCD AVX-512BW _1x8 register tiling saturates 8-channel DDR5 bandwidth

Overview

llama-modchip is a set of ggml/llama.cpp kernel patches, quantization transcoders, and runtime tools designed to run sparse Mixture-of-Experts (MoE) checkpoints entirely in system RAM on x86_64 (AVX-512 / AVX2) and ARM64 (NEON / SVE / Apple Metal) processors:

  1. Fitting 284B DeepSeek-V4-Flash into 64 GB Physical RAM (56.56 GiB on disk, 1.71 bpw): Standard UD-IQ1_S builds of DeepSeek-V4-Flash (284.33B total, 13.17B active across 43 MLA layers and 256 routed experts) occupy 76.87 GiB (82.5 GB), exceeding the ~62.5 GiB of usable RAM on a 64 GB Linux system and causing page-cache thrashing or OOM kills. llama-modchip reduces the checkpoint to 56.56 GiB (60.73 GB) so the entire model plus a 256K KV cache (57.61–58.9 GiB VmRSS) locks into RAM with zero swap. By default, all 6 routed experts per layer (Top-6) are evaluated without pruning.
  2. CPU Cache & SIMD Kernel Patches (+77% prefill, +53% decode): Replaces single-column quantized matrix-vector loops during prompt prefill with a 4-level register (ZMM AVX-512BW) + L1D (32 KB) + L2 (1 MB) + L3 (64 MB) multi-column ({8,4,3,2}) tiling schedule (25.0 -> 44.36 tok/s on 16-core Zen 5), register-stationary MQA8 FlashAttention, and non-temporal _MM_HINT_NTA MoE streaming so cold expert weights do not evict hot KV cache lines from L3.
  3. Self-Speculative Drafting & Instant Agent Context Restore: Pairs a 1.64 MB L2/L3 Zobrist n-gram drafter (Stockfish-PVS v2) with /dev/shm KV slot snapshots (13.1–32.6 ms restore time for 40-tool Claude Code prompts) and an $O(1)$ speculative rollback fix for deepseek4 recurrent/MLA states.
llama-modchip v2.4.0 — 284.33B DeepSeek-V4-Flash in 57.61 GiB RAM & 60.4 tok/s Nemotron-30B on Pure CPU

Quantization & Memory Breakdown

To answer the most common technical question upfront—exact bit-widths (bpw), base checkpoints, and what is compressed in each GGUF:

CheckpointTotal / Active ParamsBase SourceDisk Size (GiB / GB)Effective bpwLayer-by-Layer Tensor Allocation
Nemotron-3.5-30B-A3B-Q4_030.2B / 3.0BBF16 Official17.59 GiB (18.89 GB)4.50 bpwStandard Q4_0 across MoE + attention; F32 norms & SSM conv/decay
Nemotron-3.5-30B-A3B-MXFP430.2B / 3.0BBF16 Official15.95 GiB (17.13 GB)4.25 bpwGGML_TYPE_MXFP4 (E2M1 + shared exponent) on routed MoE; Q4_0/Q8_0 trunk
Nemotron-3.5-30B-A3B-Fractal-6430.2B / 3.0BBF16 Official14.35 GiB (15.41 GB)3.75 bpwAttention, Mamba-2 SSM & shared experts in Q4_0/Q8_0/F32; cold routed MoE experts in hybrid Q4_0 + Fractal-64 (Q2_0, 64-weight block + BF16 scale). Scores 100/100 on benchmarks/eval_quality_and_tools.py.
DeepSeek-V4-Flash-0731-Fractal284.33B / 13.17BUnsloth UD-IQ1_S (76.87 GiB / 82.5 GB)56.56 GiB (60.73 GB)1.71 bpw• Embeddings, Dense L0, 43 Shared Experts (shexp), MLA kv_a / q_a / wkv_b: Preserved in Q4_K / Q5_K / F32
• MLA wq_b & attn_output (wo_a/wo_b): Transcoded to Fractal-64 (GGML_TYPE_Q2_0, 3.75 bpw, 30B/64-block w/ 8 sub-scales & BF16 scale)
• 256 Routed MoE Experts (ffn_*_exps): Primarily IQ1_S (1.5625 bpw) with analytical SwiGLU-H2 second-order scale matching; sensitive boundary layers preserved in IQ2_XXS (2.06 bpw) & IQ1_M (1.75 bpw) (-20.31 GiB vs UD-IQ1_S). Retains 98.5 / 100 on benchmarks/eval_quality_and_tools.py (100% JSON tool-calling & 8.5K/256K needle accuracy, 0.9964 top-logit cosine similarity vs 76.87 GiB UD-IQ1_S; full ablation in docs/DEEPSEEK_V4_OPTIMIZATIONS.md).

Note on MoE Expert Routing (Top-K): By default (v2.4.0 Lossless), DeepSeek-V4-Flash evaluates all 6 routed experts + 1 shared expert (Top-6) per layer with zero expert dropping (1.00000 logit cosine similarity vs the unpatched runtime on the same checkpoint). Setting LLAMA_MOE_TOP_K=5 or 4 is an optional runtime flag for users who want to trade a small perplexity delta for higher decode throughput.


Quickstart

Linux & macOS (Automated Setup & Chat)

git clone https://github.com/synchopate/llama-modchip.git
cd llama-modchip
./modchip chat

Direct Run (Pre-Compiled Linux x86_64 Binary + Hugging Face .gguf)

Compatibility Note (GGML_TYPE_Q2_0 = 40): Fractal-64 models use custom block-64 BF16-scale tensors (GGML_TYPE_Q2_0, type ID 40) and deepseek4 / Stockfish-PVS kernels. Unpatched llama.cpp, Ollama, or LM Studio binaries will reject them with unknown tensor type 40. Use ./modchip above or the standalone pre-compiled binary (llama-server-modchip-linux-x86_64, zero external .so dependencies) included in the Hugging Face repositories and GitHub Release 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 (Hybrid GPU + CPU MoE Pack)

Open windows/ and run windows/AVVIA_MODCHIP.bat (or ./modchip start in Git Bash). It detects physical CPU cores, free RAM, and GPU VRAM (nvidia-smi), downloads llama.cpp CUDA 12.4 / Vulkan binaries, computes the --n-cpu-moe split, and launches the Web Chat UI (http://127.0.0.1:8080).

./modchip CommandDescription
./modchip chatInteractive terminal chat with live tok/s, TTFT, and Stockfish-PVS acceptance telemetry
./modchip webOpens the Dark-Mode Web Chat & Live Telemetry HUD (http://127.0.0.1:8787)
./modchip benchRuns a 30-second 2-stage speed test and prints a shareable CPU Benchmark Scorecard
./modchip claudeLaunches Claude Code CLI (40 tools) wired to the local 256K engine (18.9–32.6 ms warm restore)
./modchip evalRuns the reproducible 100-Point Quality, Tool-Calling, Coding & 8.5K Needle Gate
./modchip quantizeTranscodes BF16/Q4_0/UD-IQ1_S GGUFs into Fractal-64 (3.75 bpw) or Fractal-MXFP4 (4.25 bpw)
./modchip status / stopInspects CPU readiness, 2MB HugePages, and /dev/shm IPC, or stops background services

Hardware Readiness Check (Zero Model Download Required)

curl -sL https://raw.githubusercontent.com/synchopate/llama-modchip/main/scripts/check_cpu_readiness.py | python3

Submit your terminal scorecard via a GitHub Benchmark Issue or GitHub Discussions to add your CPU to the leaderboard below.


Supported Models & Model-Specific Optimizations

Each model family has a dedicated technical guide with mathematical derivations, operator-level latency profiles, and quality gate benchmarks:

Model FamilyTotal / Active ParamsDisk (GGUF) & 256K RAM (VmRSS)Key Optimizations ImplementedVerified 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
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
• Optional $L_2$-Quadrature MoE Pruning + L1-Local Gate-First SwiGLU (10.74 tok/s)
• 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 Top-6)
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
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
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

Supported Chips & Processor-Specific Optimizations

Microarchitectural details and tuning flags for each processor and GPU hybrid are documented in docs/HARDWARE_OPTIMIZATIONS.md:

Processor / PlatformVerified HardwareHardware-Specific Optimizations ActivePlatform 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
install.sh
AMD Zen 4 Multi-CCD (Threadripper / EPYC)Threadripper PRO 7985WX (64C/128T, 8 CCDs, 256 MB L3)• Dynamic sysfs L3 CCD Topology Discovery (scripts/llama_modchip.py)
• Deterministic 4C/CCD Stride (-t 32): avoids Infinity Fabric saturation (+54% faster than -t 64)
Hardware Guide §2.2
Issue #1
AMD 3D V-Cache + Radeon Vulkan HybridRyzen 9 7945HX3D (128 MB L3) + RX 9070 XT 16GB (RADV)• Tensor-Role Splitting (-ngl 99 --n-cpu-moe N --load-mode none)
• Native Vulkan SSM_SCAN + Fractal-MXFP4 (15.2 GB) GPU Shaders (80.8 tok/s at 256K)
Hardware Guide §2.3
FAQ.md Q8
Intel / AMD + NVIDIA RTX (Windows 10/11)Core i9-9900K / 14900K + RTX 2080 Ti 11GB / 3090 / 4090• Single-Cycle AVX2 vpsllvd + vpmaddwd Sub-Scale Fusion
• Live-VRAM --n-cpu-moe Solver (550 MB WDDM Reserve) + _WIN32 CreateFileMappingA
Windows Guide
windows/modchip_win.ps1
Apple Silicon (M1 / M2 / M3 / M4)Apple M4 Max (16C+40C, 64 GB), M4 Pro (14C+20C, 24 GB)• Zero-Copy Unified Memory Metal Shaders + ARM64 NEON/AMX (238.9 GB/s DRAM BW on M4 Max)
• 0-Swap 128K–256K Context Budgeting (384 MB KV) + Stockfish-PVS v2
Apple Silicon Guide
Issue #8
ARM64 Cloud & Edge (AWS Graviton / Ampere)AWS Graviton3 m7g.2xlarge (8 vCPU Neoverse-V1, 32 MB L3)• ARMv8.4-A DotProd (SDOT) + 256-Bit SVE + 1-vCPU-per-core pinning (-t 8)
• 32 MB System Level Cache (SLC) retention (44.97 tok/s decode)
Hardware Guide §1
Issue #2
AMD Zen 4 Compact Mini-PC (Linux)Ryzen 7 8745H / 8745HS (8C/16T, 16 MB L3 + Radeon 780M)• AVX-512 VNNI + 16 MB L3 window auto-tuning (19.48–23.38 tok/s on 96 GB DDR5-5600)
• Optional Radeon 780M UMA iGPU offload
Fedora Guide
Issue #9

Headline Benchmarks: Pure CPU & Hybrid Summary

1. DeepSeek-V4-Flash 284B (13.17B Active) on a 64 GB Zen 5 CPU (AMD Ryzen 9 9955HX, 0 GPUs)

Operator-level profiling and mathematical derivations in docs/DEEPSEEK_V4_OPTIMIZATIONS.md (probabilities and KL-divergence measured relative to the unpatched Top-6 execution on the 56.56 GiB Fractal checkpoint):

Runtime Configuration (DeepSeek-V4-Flash, 256K Context)Prefill (pp512)Pure Decode (N=1)With Stockfish-PVSLogit Cosine SimKL-Divergence ($\Delta$ PPL)Top-1 / Top-3 Match
Unpatched UD-IQ1_S (76.87 GiB / 82.5 GB)OOM / Swap on 64 GB5.91 tok/s (169.3 ms)N/A (Rollback Bug)1.00000 (Ref)0.0000 (0.00%)100% / 100%
1. v2.4.0 Lossless (Top-6 All Layers, Default, 56.56 GiB)43.16 – 44.36 tok/s (+77.1%)9.06 – 9.95 tok/s11.5 – 14.7 tok/s1.000000.0000 (0.00% Bit-Exact)100% / 100%
2. v2.4.0 Sweet-Spot (Top-5 on il >= 3, $L_2$ Quadrature)43.16 – 44.36 tok/s9.68 – 9.87 tok/s12.2 – 15.1 tok/s0.997140.0042 nats (+0.42% PPL)95.8% / 100%
3. v2.4.0 Top-5 L2 + Gate-First SwiGLU (80/128 $L_2$)43.16 – 44.36 tok/s10.15 tok/s (98.5 ms)12.8 – 15.6 tok/s0.993850.0531 nats100% / 100%
4. v2.4.0 Turbo 10+ (Top-4 L2 + Gate-First SwiGLU)43.16 – 44.36 tok/s10.12 – 10.74 tok/s (93.2 ms)13.0 – 16.0 tok/s0.991260.0281 – 0.0694 nats100% / 100%

2. NVIDIA-Nemotron-3.5-30B-A3B (3.0B Active) at 256K Context (AMD Ryzen 9 9955HX, 0 GPUs)

Full ablation tables and 100/100 Quality Gate report in docs/NEMOTRON_OPTIMIZATIONS.md:

Quantization ProfileDisk SizeIdle VmRSS (256K)Quality Gate (100 pts)Prefill (pp512)Base Decode (N=1)Stockfish-PVS v2 (M=7) Refactoring
Baseline-Q4_0 (4.50 bpw Official GGUF)17.59 GiB21.41 GiB100.0 / 100.0241.0 – 306.8 tok/s19.54 tok/s40.91 avg / 45.43 peak tok/s
Fractal-MXFP4 (4.25 bpw)15.95 GiB17.46 GiB100.0 / 100.0241.0 – 306.8 tok/s26.08 tok/s (+33.5%)48.39 avg / 60.40 peak tok/s (80.8 Vulkan)
Fractal-64-BF16 (3.75 bpw)14.35 GiB15.40 GiB (-6.01 GiB)100.0 / 100.0241.0 – 306.8 tok/s25.02 tok/s (+28.0%)48.39 avg / 60.40 peak tok/s (96.4% acc)

Community CPU & Hybrid Leaderboard

Run ./modchip bench (or windows\BENCHMARK_PC.bat on Windows) and Submit Your Scorecard (GitHub Issue).

Hardware Platform (CPU / SoC / Hybrid)Cores / CacheMemoryPrefill (tok/s)Decode — Prose / C++20Decode — Stockfish M=7 BurstConfig & Contributor
AMD Threadripper PRO 7985WX (Zen 4)64C/128T (8 CCDs, 256 MB L3)256 GB 8-Ch DDR5-6000 (0 GPU)386.00 (-t 32)73.84 – 80.14 tok/s (70.0% acc)111.62 tok/s warm / 80.14 cold (-t 32 4C/CCD)@aifartist (Issue #1)
AMD Ryzen 9 7945HX3D + RX 9070 XT (Hybrid)16C/32T (128 MB 3D V-Cache) + 16 GB Vulkan94 GB DDR5 + 16 GB VRAM563.00 (256K ctx)75.10 tok/s (MXFP4 15.2GB)80.80 tok/s (Vulkan SSM_SCAN + MXFP4 MoE)Community (RADV/Vulkan) (FAQ.md)
AMD Ryzen 9 9955HX (Zen 5)16C/32T (2 CCDs, 64 MB L3)64 GB DDR5 (0 GPU)241.0 (Peak 306.8)25.02 – 34.5 tok/s (Fractal-64 / MXFP4)48.39 avg / 60.40 peak (len 6.90)@synchopate (docs/NEMOTRON_OPTIMIZATIONS.md)
Apple M4 Max (14C/16C · 32C/40C Metal)ARM64 NEON + Metal36 GB LPDDR5X-8533 (Unified)860.13 (Metal)77.23 tok/s (C++20, 203 ms TTFT)77.95 tok/s (81.0 short, 69.9 @ 32K)@khairullinr (Issue #16)
Apple M4 Max (16C CPU + 40C GPU)16C (ARM64 NEON + 40C Metal)64 GB LPDDR5X-8533 (238.9 GB/s BW)~451.0 (Audit)49.2 – 57.7 tok/s (Prose / Code)70.9 – 120.0 tok/s (Agent / Refactor)@jbeckman1974 (Issue #8)
Apple M4 Pro (14-Core SoC)14C CPU + 20C Metal24 GB Unified (0 Swap)256.0 – 549.047.0 – 48.0 tok/s (128K)49.0+ tok/s@jarorosFork (apple-silicon/)
AWS Graviton3 m7g.2xlarge (ARM64 Neoverse-V1)8 vCPU (32 MB L3, SVE-256)31 GB DDR5 (0 GPU)101.67 (-t 8)41.05 tok/s (C++20)44.97 tok/s (Refactoring)@gerchik (Issue #2)
AMD EPYC 7402P (Zen 2 Rome · AVX2-only)24C/48T (8 CCDs, 128 MB L3)128 GB 8-Ch DDR4 (0 GPU)158.73 (-t 24)27.29 tok/s (C++20, 567 ms TTFT)31.22 tok/s (Cold Run 1, 66.7% acc)@AdamKlob (Issue #6)
AMD Ryzen 9 9950X (Zen 5 Desktop)16C/32T (2 CCDs, 64 MB L3)64 GB DDR5-6800 (0 GPU)135.64 (v2.1 Q4_0)20.78 tok/s (C++20, 526 ms TTFT)24.67 tok/s (Cold Run 1, 66.5% acc)@nadams (Issue #5)
AMD Ryzen 7 8745H w/ Radeon 780M (Zen 4)8C/16T (16 MB L3, AVX-512)96 GB DDR5-5600 (0 GPU, Arch)128.81 (-t 8)19.48 tok/s (C++20, 686 ms TTFT)23.38 tok/s (69.8% PVS acc)@arch-btw (Issue #9)
Intel Core Ultra 5 125H (Meteor Lake-H)4P+8E+2LP-E (18 MB L3, AVX-VNNI)32 GB DDR5 (50.2 GB/s, 0 GPU)55.46 (-t 14 incl. LP-E)13.72 tok/s (C++20, 1286 ms TTFT)15.94 tok/s (67.9% PVS acc)@xma (Issue #18)
AMD Ryzen 5 7430U (Zen 3 Mobile 15W)6C/12T (16 MB L3, AVX2)32 GB DDR4-3200 (0 GPU, Pop!_OS)59.03 (-t 6)13.03 tok/s (C++20, 2072 ms TTFT)15.57 tok/s (68.3% PVS acc)@armadillu (Issue #12)
AMD Ryzen 7 PRO 6850U (ThinkPad T14s Gen 3)8C/16T (16 MB L3, AVX2)32 GB LPDDR5-4800 (0 GPU, Debian 13)62.74 (-t 8)12.61 tok/s (C++20, 1204 ms TTFT)14.67 tok/s (66.0% PVS acc)@mkesper (Issue #15)
AMD Ryzen 7 5700U (Zen 2 Mobile 15W · Fractal-64)8C/16T (8 MB L3, AVX2)64 GB DDR4 (0 GPU, Debian)32.48 (v2.1 Fractal-64)13.55 tok/s (C++20, 2233 ms TTFT)13.52 tok/s (64.9% PVS acc)@JamesStallings (Issue #19)
AMD Ryzen 7 5700U (Zen 2 Mobile 15W · Q4_0)8C/16T (8 MB L3, AVX2)64 GB DDR4 (0 GPU, Debian)42.80 (v2.1 Q4_0)12.92 tok/s (C++20, 1720 ms TTFT)14.35 tok/s (66.5% PVS acc)@JamesStallings (Issue #10)
Intel Core i9-11950H (Tiger Lake-H)8C/16T (24 MB L3, AVX-512)128 GB DDR4-3200 (0 GPU, Fedora)85.39 (-t 8)10.76 tok/s (C++20, 1106 ms TTFT)13.37 tok/s (69.8% PVS acc)@ELO-I (Issue #11)
AMD Ryzen 5 5600X (Zen 3 Desktop)6C/12T (32 MB L3, AVX2)32 GB DDR4 (28.8 GB/s, THP 0 GiB)83.81 (-t 6)10.16 tok/s (C++20, 1181 ms TTFT)12.96 tok/s (64.5% PVS acc)@alexander-jung (Issue #17)
Dual Intel Xeon E5-2670 (Sandy Bridge-EP 2012)16C/32T (2×20 MB L3, AVX-only)94 GB RAM (0 GPU, Ubuntu 24.04)47.31 (-t 16)10.69 tok/s (C++20, 2014 ms TTFT)11.47 tok/s (65.0% PVS acc, 3.0x floor)@Mammux (Issue #14)
Windows 11 Hybrid (i9-9900K + RTX 2080 Ti 11GB)8C/16T (16 MB L3) + 11 GB CUDA16 GB DDR4 + 11 GB GDDR6Auto CUDA 12.450–58 tok/s (14B) / 30B Hybrid100+ tok/s (Nemotron-H-8B 128K)windows/
AMD Ryzen 7 8745HS (GEEKOM A8)8C/16T (16 MB L3)64 GB DDR5-5600Verified Fedora 44Verified (ngram)Verified (CPU & 780M)@jarorosFork (fedora/)
DeepSeek-V4-Flash 284B on Ryzen 9 9955HX16C/32T (2 CCDs, 64 MB L3)64 GB DDR5 (58.9 GiB RSS @ 256K)43.16 – 44.36 tok/s (32.6 ms Slot-0)9.06 – 10.74 tok/s (13.17B active)11.50 – 14.69 tok/s (94.5% PVS acc)@synchopate (docs/DEEPSEEK_V4_OPTIMIZATIONS.md)
Repository Structure & Manual CMake Build Instructions
llama-modchip/
├── modchip                                    # Unified CLI (setup | start | chat | bench | eval | quantize | web | claude | stop)
├── install.sh                                 # Automated Installer (Linux)
├── README.md / ARCHITECTURE.md / FAQ.md       # Overview, Full Mathematical Paper & Engineering FAQ
├── RELEASE_NOTES.md                           # v2.4.0 Release Notes
├── docs/
│   ├── NEMOTRON_OPTIMIZATIONS.md              # Deep-dive on Nemotron-3.5-30B-A3B & Nemotron-H-8B optimizations
│   ├── DEEPSEEK_V4_OPTIMIZATIONS.md           # Deep-dive on DeepSeek-V4-Flash 284B profiling, SVD & L2-quadrature MoE
│   └── HARDWARE_OPTIMIZATIONS.md              # Chip-by-chip optimizations (Zen 5, Threadripper, Vulkan, CUDA, Metal, ARM64)
├── patches/
│   ├── deepseek-v4-flash-fractal-256k.patch   # Unified v2.4.0 patch (DeepSeek-V4-Flash 284B + Nemotron-3.5 30B, Linux/macOS/Windows)
│   └── zen5-nemotron-256k-optimizations.patch # Standalone ggml/llama core patch for Nemotron-3.5
├── windows/                                   # Windows 10/11 Hybrid GPU+CPU MoE Pack (AVVIA_MODCHIP.bat, modchip_win.ps1)
├── apple-silicon/                             # Apple M4 Pro (24 GB) Metal setup & 128K benchmarks
├── fedora/                                    # Fedora 44 / AMD Ryzen 7 8745HS (GEEKOM A8) all-in-one script
├── speculative/                               # RouteCrack + Stockfish-PVS v2 (rc_stockfish.h, ngram-map.cpp)
├── benchmarks/                                # eval_quality_and_tools.py (100-pt Quality Gate) & results/*.json
├── gateway/sse_gateway.py                     # Agentic SSE Proxy + Compact Tool Table + Dark-Mode Web Chat HUD (:8787)
└── scripts/                                   # build_fractal_moe_gguf.sh, transcode_dsv4.{c,py}, chat.py, llama_modchip.py

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

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