Llama-modchip: 284B DeepSeek on 64GB RAM, no GPU
Quickstart · Quantization & Memory Specs · Supported Models · Supported Hardware · Leaderboard · Technical Paper (paper/) · Architecture · FAQ
快速入门 · 量化与内存规格 · 支持的模型 · 支持的硬件 · 排行榜 · 技术论文 (paper/) · 架构 · 常见问题解答
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:
llama-modchip 是一套 ggml/llama.cpp 内核补丁、量化转码器和运行时工具,旨在让稀疏混合专家模型 (MoE) 检查点完全在 x86_64 (AVX-512 / AVX2) 和 ARM64 (NEON / SVE / Apple Metal) 处理器的系统内存中运行:
To answer the most common technical question upfront—exact bit-widths (bpw), base checkpoints, and what is compressed in each GGUF:
为了预先回答最常见的技术问题——确切的位宽 (bpw)、基础检查点以及每个 GGUF 中压缩的内容:
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.
关于 MoE 专家路由 (Top-K) 的说明:默认情况下 (v2.4.0 无损版),DeepSeek-V4-Flash 会评估每层所有 6 个路由专家 + 1 个共享专家 (Top-6),且不丢弃任何专家(与同一检查点上未打补丁的运行时相比,logit 余弦相似度为 1.00000)。对于希望以微小的困惑度差异换取更高解码吞吐量的用户,设置 LLAMA_MOE_TOP_K=5 或 4 是一个可选的运行时标志。
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:
兼容性说明 (GGML_TYPE_Q2_0 = 40):Fractal-64 模型使用自定义的 block-64 BF16 缩放张量 (GGML_TYPE_Q2_0,类型 ID 40) 以及 deepseek4 / Stockfish-PVS 内核。未打补丁的 llama.cpp、Ollama 或 LM Studio 二进制文件会因无法识别张量类型 40 而拒绝运行它们。请使用上述 ./modchip 或包含在 Hugging Face 存储库及 GitHub Release v2.4.0 中的独立预编译二进制文件 (llama-server-modchip-linux-x86_64,无外部 .so 依赖):
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).
打开 windows/ 文件夹并运行 windows/AVVIA_MODCHIP.bat(或在 Git Bash 中运行 ./modchip start)。它会自动检测物理 CPU 核心、可用内存和 GPU 显存 (nvidia-smi),下载 llama.cpp CUDA 12.4 / Vulkan 二进制文件,计算 —n-cpu-moe 分割,并启动 Web 聊天界面 (http://127.0.0.1:8080)。
Submit your terminal scorecard via a GitHub Benchmark Issue or GitHub Discussions to add your CPU to the leaderboard below.
通过 GitHub Benchmark Issue 或 GitHub Discussions 提交您的终端评分卡,将您的 CPU 添加到下方的排行榜中。
Each model family has a dedicated technical guide with mathematical derivations, operator-level latency profiles, and quality gate benchmarks:
每个模型系列都有专门的技术指南,包含数学推导、算子级延迟概况和质量门禁基准测试:
Microarchitectural details and tuning flags for each processor and GPU hybrid are documented in docs/HARDWARE_OPTIMIZATIONS.md:
每个处理器和 GPU 混合架构的微架构细节和调优标志记录在 docs/HARDWARE_OPTIMIZATIONS.md 中:
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):
算子级分析和数学推导记录在 docs/DEEPSEEK_V4_OPTIMIZATIONS.md 中(概率和 KL 散度是相对于 56.56 GiB Fractal 检查点上未打补丁的 Top-6 执行测量的):
Full ablation tables and 100/100 Quality Gate report in docs/NEMOTRON_OPTIMIZATIONS.md:
完整的消融表和 100/100 质量门禁报告记录在 docs/NEMOTRON_OPTIMIZATIONS.md 中:
Run ./modchip bench (or windows\BENCHMARK_PC.bat on Windows) and Submit Your Scorecard (GitHub Issue).
运行 ./modchip bench(或 Windows 上的 windows\BENCHMARK_PC.bat)并提交您的评分卡(GitHub Issue)。
Nemotron Deep-Dive (docs/NEMOTRON_OPTIMIZATIONS.md) · DeepSeek-V4 284B Deep-Dive (docs/DEEPSEEK_V4_OPTIMIZATIONS.md) · Hardware & Chip Matrix (docs/HARDWARE_OPTIMIZATIONS.md) · Full Paper (ARCHITECTURE.md) · FAQ (FAQ.md)
Nemotron 深度解析 (docs/NEMOTRON_OPTIMIZATIONS.md) · DeepSeek-V4 284B 深度解析 (docs/DEEPSEEK_V4_OPTIMIZATIONS.md) · 硬件与芯片矩阵 (docs/HARDWARE_OPTIMIZATIONS.md) · 完整论文 (ARCHITECTURE.md) · 常见问题解答 (FAQ.md)
🐋 Run 284B DeepSeek-V4-Flash (<59GiB RAM, 44.4 tok/s pp, 9.1-14.7 tok/s) & 30B MoEs (25-111 tok/s) on a pure 64GB CPU at 256K ctx (0 GPUs). SwiGLU-H2, Stockfish-PVS L3 & 13ms Claude Code restore.
🐋 在纯 64GB CPU 上以 256K 上下文(0 GPU)运行 284B DeepSeek-V4-Flash(<59GiB 内存,44.4 tok/s pp,9.1-14.7 tok/s)和 30B MoEs(25-111 tok/s)。支持 SwiGLU-H2、Stockfish-PVS L3 和 13ms Claude Code 恢复。