KTransformers
Framework for heterogeneous LLM inference/fine-tune optimizations.
Working when we checked on .
What is KTransformers?
KTransformers is an open-source framework for heterogeneous LLM inference and fine-tuning optimizations, developed by the kvcache-ai project on GitHub. It targets developers and researchers who want to run and optimize large language models across mixed CPU/GPU/NPU hardware. The project includes kt-kernel optimized kernels (such as AVX2 MXFP4 decoding), SYCL backends including an opt-in Panther Lake XMX expert backend, and Docker images with API guides. Documentation covers deployment tutorials such as DeepSeek-V4-Flash single-NPU deployment on Ascend, plus Kimi K2.5 LoRA fine-tuning tutorials.
KTransformers pricing
Pricing model: Free
Free and open source
KTransformers pros
- Open-source project hosted on GitHub under kvcache-ai
- Includes kt-kernel optimizations like AVX2 MXFP4 weight decoding
- Provides Docker images and API guides for deployment
- Supports heterogeneous hardware including SYCL Panther Lake XMX and Ascend NPUs
- Offers fine-tuning tutorials such as Kimi K2.5 LoRA
- Installable via pip with the ktransformers package pulling kt-kernel and sglang-kt
KTransformers cons
- Requires technical expertise; it is a source-level GitHub project, not a hosted service
- Hardware-specific optimizations (SYCL, Ascend, AVX2) limit portability across platforms
- No dedicated product pricing or commercial support plan of its own documented
Frequently asked questions about KTransformers
What is KTransformers?
KTransformers is a flexible open-source framework for experiencing heterogeneous LLM inference and fine-tune optimizations, hosted on GitHub by the kvcache-ai organization.
Who is KTransformers intended for?
It is intended for developers and researchers who want to run, optimize, and fine-tune large language models across heterogeneous CPU, GPU, and NPU hardware.
How can KTransformers be installed?
It can be installed via pip using the ktransformers meta-package, which pulls in kt-kernel, which in turn installs sglang-kt as a dependency. Source installation is also available via an install.sh script.
Does KTransformers support fine-tuning?
Yes. The project includes fine-tuning support and documentation, including an English Kimi K2.5 LoRA tutorial and a KT-FT fine-tuning paper.
What hardware optimizations does KTransformers include?
It includes kt-kernel optimizations such as AVX2 MXFP4 weight-group decoding, an opt-in Panther Lake XMX SYCL expert backend, and deployment support for Ascend NPUs.
Is Docker deployment supported?
Yes. The repository contains a Docker setup with a Dockerfile and documentation covering Docker images and an API guide.
Which large models can be deployed with KTransformers?
The documentation includes deployment tutorials for models such as DeepSeek-V4-Flash single-NPU deployment on Ascend and Kimi K2.5 LoRA fine-tuning.
Does KTransformers integrate with other serving frameworks?
Yes. It integrates a kvcache-ai fork of sglang as a git submodule at third_party/sglang, published as sglang-kt on PyPI and kept version-aligned with ktransformers.
Is KTransformers free to use?
Yes, it is an open-source project on GitHub. The pricing text shown relates to GitHub platform plans, not the project itself; the repository is publicly available.
How actively maintained is the project?
The repository shows substantial activity with 1,361 commits, 73 branches, 44 tags, and ongoing updates including recent kernel and documentation improvements.