KTransformers
Heterogeneous CPU and GPU inference framework for very large language models on limited hardware.
About
KTransformers tackles the problem of running very large language models on hardware that cannot hold them in GPU memory. Developed by Tsinghua University's MADSys Lab together with Approaching.AI, it splits inference across CPU and GPU, using CPU optimized kernels with Intel AMX and AVX acceleration for INT4 and INT8 quantized weights and NUMA aware memory management tuned for Mixture-of-Experts architectures. Models such as DeepSeek-V3 and R1, Qwen3, Kimi, GLM, and MiniMax variants can run, and even fine-tune, on machines pairing a single consumer GPU with a capable CPU, while multi GPU Xeon servers reach hundreds of tokens per second. The kt-kernel serving stack integrates with SGLang for production deployment, and fine-tuning hooks into LLaMA-Factory with reported speedups of 6 to 12x over ZeRO-Offload on MoE workloads. The open source project targets researchers and practitioners serving huge MoE models on constrained budgets.
Should you use KTransformers?
Pick it when
Pick KTransformers when you want to run or fine-tune huge Mixture-of-Experts models like DeepSeek-V3, Qwen3, or Kimi on one workstation pairing a 24 GB GPU with a large-memory Xeon CPU that has AMX or AVX acceleration.
Look elsewhere when
Skip it for dense models that fit in VRAM, where vLLM or llama.cpp is simpler and better supported, or if your machine lacks a big RAM pool and a fast CPU. Setup is expert level; llama.cpp offers easier CPU and GPU offload.
Alternatives to KTransformers
- llama.cpp
Simpler CPU and GPU layer offloading that works on almost any hardware, but without KTransformers' MoE-specific kernels and NUMA tuning.
- PowerInfer
Also splits work between GPU and CPU using hot and cold neurons, but targets ReLU-based models on smaller GPUs rather than MoE giants.
- SGLang
Production serving on multi-GPU clusters, which KTransformers' kernels integrate with; the better fit once the model fits in GPU memory.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- LLM Inference & Serving
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Advanced (4/5)
- License
- Apache-2.0
- Minimum VRAM
- 24 GB
- Added
- May 7, 2026