cpp on its own hardware, so this comparison has no speed figures of ours. It's based on each project's GitHub README and documentation, read on 2 December 2026.
Very large mixture-of-experts (MoE) models have far more weights than any consumer graphics card can hold, but only a small share of their experts run for each token. Both KTransformers and ik_llama.cpp take advantage of that by keeping some of the model on the GPU and the rest in system RAM for the CPU. They come at it from very different directions, though.
What each one is
KTransformers is a project from the kvcache-ai group that describes itself as "a research project focused on efficient inference and fine-tuning of large language models through CPU-GPU heterogeneous computing". It's Apache-2.0 licensed and mostly Python. For inference, its CPU kernels (kt-kernel) plug into a fork of the SGLang serving engine called sglang-kt. It also offers MoE fine-tuning through LlamaFactory.
ik_llama.cpp is an MIT-licensed C++ fork of llama.cpp that its README describes as a "llama.cpp fork with better CPU performance". It runs GGUF models through the familiar llama-server, adds its own quantisation types, and supports the CPU and NVIDIA CUDA as its fully working backends. Our ik_llama.cpp guide shows how to set it up.
At a glance
| KTransformers (kt-kernel + sglang-kt) | ik_llama.cpp |
|---|
Licence | Apache-2.0 | MIT |
Install | pip install kt-kernel (prebuilt wheels for Linux x86-64)
| Build from source with cmake, or Docker images |
Operating system | Linux x86-64 for the PyPI wheels | Linux; Windows via a source build |
CPU | AVX2 minimum; AVX-512 and Intel AMX unlock faster backends | AVX2 or better (or Arm NEON); extra AVX-512 build flags |
GPU (current docs) | NVIDIA; prebuilt CUDA support for SM 80, 86, 89 and 90 | NVIDIA Turing or newer (Pascal/Volta partly) |
CPU-side weights | GGUF (llamafile backend) or converted INT4/INT8, BF16 or FP8 | GGUF, including its own quant types |
Serving | SGLang server with --kt-* options, or the kt CLI | llama-server with a browser chat page
|
Also does | MoE fine-tuning with LlamaFactory | Quantisation tools, multi-GPU split modes |
KTransformers' kt-kernel README picks a CPU backend for you. Its table ranks Intel AMX (Sapphire Rapids and later) as the best, then AVX-512 variants, with AVX2 (Intel Haswell and AMD Zen+ onwards) as the fallback "for maximum compatibility". Several backends need server-class instruction sets: the native BF16 and FP8 backends need AVX-512 with BF16 support, for example Zen 4 and later or Intel Cooper Lake and Sapphire Rapids, and the AMX INT4/INT8 backends need an Intel CPU with AMX. On an ordinary AVX2 desktop CPU, you'd use the llamafile backend with GGUF weights. Not sure what your chip supports? See how to check AVX2 support.
The project's own worked example uses an RTX 4090 24GB alongside two Intel Xeon Gold 6454S processors (64 physical cores, two NUMA nodes), and its parameters include settings for the thread count and NUMA nodes. That's a workstation or server set-up, not a typical gaming PC, though its update log notes earlier support for running DeepSeek-V3 and R1 on a single 24 GB GPU with 382 GB of system RAM.
On the GPU side, the prebuilt wheel's CUDA support lists compute capabilities 8.0, 8.6, 8.9 and 9.0. That covers RTX 30 and RTX 40-series cards but doesn't include the RTX 50-series. The README says to build from source for custom CUDA versions.
ik_llama.cpp's needs are simpler: a CPU with AVX2 or better and, for GPU acceleration, an NVIDIA card from Turing onwards. Its README says AVX-512 CPUs need extra build flags to use the faster kernels, and it lists native FP4 paths for Blackwell (RTX 50-series) GPUs. KTransformers' update log mentions ROCm and Intel Arc tutorials from 2025, but the current kt-kernel README only covers NVIDIA CUDA for GPU acceleration, and ik_llama.cpp asks users not to file ROCm or Vulkan issues. If you have a Radeon or Arc card, mainline llama.cpp is the safer choice.
Installing: neither is one click
KTransformers' recommended route is pip install kt-kernel, which the README says needs no compilation or CUDA Toolkit, plus sglang-kt for serving. The README is clear you must use the kvcache-ai fork rather than the official sglang package. The PyPI wheels are for Linux x86-64, so on Windows you'd be looking at Linux or WSL2. The documentation we read doesn't cover WSL2, so we can't confirm it works there. Our WSL2 GPU set-up guide covers the general set-up if you want to try.
ik_llama.cpp is built from source with cmake on Linux, and its build guide has a Windows section using the CUDA Toolkit and Visual Studio Build Tools. It also has ready-made Docker images for CPU, CUDA 12 and CUDA 13.
Running a model: GGUF simplicity vs SGLang flexibility
With ik_llama.cpp you download one GGUF file, start llama-server, offload layers with -ngl and keep experts on the CPU with --cpu-moe, --n-cpu-moe or a tensor override. It's the same workflow as llama.cpp, so most guides carry over.
KTransformers needs two sets of weights: the GPU weights SGLang uses (for example the original Hugging Face model) and CPU-side expert weights. For the AMX backends you convert the model with the project's convert_cpu_weights.py script. For the llamafile backend you point --kt-weight-path at a folder of GGUF files. You then launch SGLang with options such as --kt-method, --kt-cpuinfer (set to physical cores), --kt-threadpool-count (set to the NUMA node count) and --kt-num-gpu-experts, which decides how many experts stay on the GPU. The README's example notes that about 32 experts fit on its 24 GB card for Qwen3-30B-A3B, but that varies by model. A newer kt command-line tool (kt run, kt chat, kt doctor) aims to pick these settings automatically.
If you already use SGLang, KTransformers fits in neatly. See our SGLang vs vLLM comparison for what SGLang offers.
Speed claims
Both projects publish performance claims. KTransformers' README includes throughput figures on multi-GPU L20 servers and fine-tuning speeds on RTX 4090 systems, and ik_llama.cpp's lists many CPU and CUDA speed-ups. These are the developers' own results on their own hardware. Neither project publishes a like-for-like comparison with the other in the pages we read. Your RAM capacity and memory bandwidth will matter as much as the engine.