KTransformers

KTransformers Documentation

KTransformers is a CPU-GPU heterogeneous computing project for large MoE model inference and LoRA fine-tuning. The documentation helps you choose a model family first, then read Inference, Training, technical background, hardware boundaries, and command references from the same model-aware view.

Current Public Surface

TaskPublic packagesPrimary entry
Inference servingkt-kernel sglang-ktkt run or python -m sglang.launch_server with --kt-* arguments
LoRA SFTktransformers[sft] through LLaMA-FactoryLLaMA-Factory training YAML with use_kt: true and an Accelerate KT config

Older local_chat.py, ktransformers/server/main.py, balance_serve, and kt_optimize_rule paths are historical unless a page explicitly marks them as revalidated.

Getting Started

Inference

Fine-Tuning

Advanced Features

Supported Models and Platforms

Technical Work

Command Reference