KTransformers
Run and fine-tune large language models by distributing computation between CPUs and GPUs.
Description
KTransformers is a research project for heterogeneous inference and fine-tuning of language models, including Mixture of Experts (MoE) architectures. The current project organizes these tasks into two tracks around kt-kernel. Inference features include optimized CPU operations, quantized weight support and integration with SGLang. A compatible model and prompts are supplied as input, and generated responses are returned. Fine-tuning integrates with LlamaFactory, including LoRA and full training for supported models. For instance, a developer can combine system memory and CPU resources with a GPU to work with a large MoE model. The code is available under Apache 2.0. CPU, GPU, memory and software requirements depend on the backend, precision and model. The previous monolithic framework is retained in an archive for reference.