# KTransformers

> Run and fine-tune huge mixture-of-experts LLMs on limited GPUs by splitting work between CPU and GPU

Source: https://talira.ai/catalog/ktransformers-n99jxp94
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [ai / inference / engines](https://talira.ai/categories/ai/inference/engines), [ai / ml / fine tuning](https://talira.ai/categories/ai/ml/fine-tuning)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [kvcache.ai](https://talira.ai/orgs/kvcache-ai.md)

KTransformers is a research project from kvcache.ai (with Tsinghua's MADSys lab) for efficient inference and fine-tuning of large language models through CPU-GPU heterogeneous computing. Its kt-kernel provides CPU kernels optimized with Intel AMX and AVX-512/AVX2 for INT4 and INT8 quantized mixture-of-experts inference, with NUMA-aware memory and hot experts on the GPU and cold ones on the CPU, served through [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md) or a Python API. With [LlamaFactory](https://talira.ai/catalog/llamafactory-7swv7mxz.md) it fine-tunes ultra-large MoE models (DeepSeek, Kimi K2, GLM, MiniMax) with LoRA or full training on limited GPU memory. It supports Ascend NPUs and Intel Arc GPUs too.

## Links

- Website: https://kvcache-ai.github.io/ktransformers/
- GitHub: https://github.com/kvcache-ai/ktransformers
- Docs: https://kvcache-ai.github.io/ktransformers/

## Problems it solves

- run DeepSeek-sized MoE models on one GPU plus a big CPU server
- fine-tune a huge mixture-of-experts model without enough GPU memory
- offload LLM experts to CPU RAM for local inference

## Features

- CPU-GPU hybrid inference for large MoE models
- Intel AMX and AVX-512/AVX2 kernels
- INT4 and INT8 CPU quantization, GPTQ on GPU
- NUMA-aware expert placement
- SGLang integration
- MoE LoRA and full fine-tuning with LlamaFactory
- Ascend NPU and Intel Arc support

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 0.91, adoption 0.86, momentum 0.86, community 0.85, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 47 commits in the last 90 days
- latest release v0.7.2 46 days ago
- 19.7k GitHub stars
- 136 contributors
- backed by kvcache.ai

## Related

- Works with [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md)
- Works with [LlamaFactory](https://talira.ai/catalog/llamafactory-7swv7mxz.md)

## Alternatives

- [FreeToken](https://talira.ai/catalog/freetoken-kbfpyv4p.md): Serving engine that runs frontier-scale open-weight MoE models on consumer GPUs
- [Colossal-AI](https://talira.ai/catalog/colossal-ai-gk5zdz5s.md): PyTorch library for distributed training, fine-tuning and inference of large AI models
- [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md): Fast inference for LLMs and multimodal models
- [kimi-k3-in-c](https://talira.ai/catalog/kimi-k3-in-c-2m92j5h6.md): An inference engine in portable C99 that runs the 2.78-trillion-parameter Kimi K3 on one CPU with 8 GB of RAM
- [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md): A high-throughput and memory-efficient inference and serving engine for LLMs
- [TensorRT-LLM](https://talira.ai/catalog/tensorrt-llm-343p07g7.md): Optimized LLM and visual generation inference on NVIDIA GPUs

## Sources

[^1]: https://github.com/kvcache-ai/ktransformers/blob/main/LICENSE (checked 30 Nov 2026)
