whatisgithub

What is llama.cpp-fusion?

borisk1/llama.cpp-fusion — explained in plain English

Analysis updated 2026-05-18

2C++Audience · developerComplexity · 5/5Setup · hard

In one sentence

A llama.cpp fork with CPU and multi-GPU tricks for running huge Mixture of Experts AI models on hardware with limited graphics memory.

Mindmap

mindmap
  root((llama.cpp-fusion))
    What it does
      Runs huge MoE models on limited VRAM
      Combines CPU and multi-GPU resources
      Speeds up local inference
    Tech stack
      C++
      CUDA
      NUMA-aware CPU
    Use cases
      Multi-GPU model offload
      CPU GPU hybrid inference
      Speculative decoding
    Audience
      Advanced local LLM users
      Multi-GPU server owners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run large Mixture of Experts language models that do not fit fully in GPU memory.

USE CASE 2

Split a large model across several GPUs for faster inference.

USE CASE 3

Tune CPU thread groups on dual-processor servers for faster generation.

USE CASE 4

Speed up generation using speculative decoding with a built-in draft model.

What is it built with?

C++CUDAllama.cppNUMA

How does it compare?

borisk1/llama.cpp-fusion9veedz/4leggedspiderbotakashsingh3031/striver-sde-challenge-2023
Stars222
LanguageC++C++C++
Last pushed2023-06-19
MaintenanceDormant
Setup difficultyhardhardeasy
Complexity5/54/51/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Tuned for multi-GPU, NUMA-aware server hardware and very large model files, not beginner friendly.

So what is it?

llama.cpp-fusion is a fork of the popular llama.cpp project, focused on running very large AI language models, especially Mixture of Experts models like DeepSeek and Qwen3, on hardware that does not have enough graphics card memory to hold the whole model at once. It brings together several techniques that let a computer combine its CPU, its GPU or GPUs, and multiple processors to squeeze more speed out of large models. One feature, called Thread Copy, is built for computers with two or more physical CPUs, splitting the work into groups of processor cores so each group stays close to its own memory bank, which cuts down on slow cross-processor data transfers. Another feature, called MoE Cache, keeps the most frequently used parts of the model on the graphics card, so the computer does not have to keep copying them back and forth from system memory, which the readme reports can raise generation speed significantly. The project also supports splitting a model across several graphics cards at once, running only certain parts of the model on the CPU while attention runs on the GPU, and a technique called Multi-Token Prediction, where the model tries to guess several words ahead at once to speed up generation. There is also a feature that predicts, based on how the model processes the initial prompt, which experts inside the model are likely to be needed soon, so they can be loaded in advance. The readme includes detailed benchmark tables and command line examples run on a specific test machine with four graphics cards and two server-grade processors, and gives command line flags and environment variables for turning each feature on. Because it deals with multi-GPU setups, NUMA-aware processors, and large models measured in tens of gigabytes, this project is aimed at people already comfortable running and tuning large language models locally, not beginners.

Copy-paste prompts

Prompt 1
Help me pick thread-copy CPU core groups for my dual Xeon server using numactl output.
Prompt 2
Explain how to enable the MoE Cache with GGML_CUDA_MOE_CACHE and set a VRAM budget.
Prompt 3
Walk me through offloading a large DeepSeek model across 4 GPUs with this fork.
Prompt 4
Show me the cpu-moe flag for running MoE experts on CPU while attention runs on GPU.

Frequently asked questions

What is llama.cpp-fusion?

A llama.cpp fork with CPU and multi-GPU tricks for running huge Mixture of Experts AI models on hardware with limited graphics memory.

What language is llama.cpp-fusion written in?

Mainly C++. The stack also includes C++, CUDA, llama.cpp.

How hard is llama.cpp-fusion to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is llama.cpp-fusion for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.