• Picks
  • Discover
  • Alternatives
  • About

© 2026 Willet

  • Newsletter
  • About
  • FAQ
  • Terms
  • Privacy & Cookies
Join the Discord (opens in a new tab)
kvcache.ai avatar

KTransformers

CPU-GPU hybrid inference and fine-tuning for large MoE language models

  • AI models and runtimes
View on GitHub
Website

What it is

KTransformers runs and fine-tunes very large Mixture-of-Experts language models by splitting work between GPU and CPU, with AMX/AVX-optimized kernels, NUMA-aware memory handling, and INT4/INT8 or FP8 quantization. It lets models like DeepSeek-V3, Kimi-K2, and GLM run on a single consumer GPU paired with large system RAM, and integrates with SGLang for serving and LLaMA-Factory for LoRA, full-parameter, and DPO training. Researchers and hobbyists without datacenter GPU clusters use it to serve or adapt frontier-scale open models on their own hardware.

Images

Facts

Stars
19,618 GitHub stars.
19,618

Forks
1,602
Commits
1,359
Contributors
121
Language
Python
License
Apache-2.0
Last commit
Oct 19, 2026
On GitHub since
July 2024
First release
July 2024
Platforms
Windows, Linux, library
Self-hostable
No
Tags
  • llm-inference
  • local-ai
  • model-optimization
  • gpu-computing
  • fine-tuning

Last synced from GitHub on Oct 20, 2026

The 10 best overlooked open-source projects, every Monday.

Share and more

Comments

No comments yet. Start the conversation.

Similar projects

  • Gavin Li avatar

    AirLLM

    Run very large language models on a single low-memory GPU

    39.7k
  • LightSeek Foundation avatar

    TokenSpeed

    LLM serving engine tuned for agentic workloads on datacenter GPUs

    2.7k
  • NVIDIA Corporation avatar

    NVIDIA Model Optimizer

    Python library for quantizing, pruning, and distilling models for inference

    5.4k

What people are saying

Updated Oct 20, 2026
  • Hacker NewsShow HN: KTransformers–236B Model and 1M Context LLM Inference on Local MachinesAug 29, 2024 · 20 points · 3 comments (opens Hacker News in a new tab)
  • Bluesky“_technically_ you can have just one H100-class GPU with a whole bunch of RAM and CPU to do hybrid inference using something like ktransformers for a single…”Jul 29, 2026 · 3 likes · 1 reply (opens Bluesky in a new tab)
  • Bluesky“7. WrenAI Open-Source Generative BI via Text-to-SQL LINK 8. ktransformers Framework for Heterogeneous LLM Inference and Fine-tuning LINK”Jul 20, 2026 · 1 like · 1 reply (opens Bluesky in a new tab)
  • Bluesky“KTransformers A Flexible Framework for Experiencing Cutting-edge LLM Inference Optimizations.”Mar 4, 2025 · 1 like · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Show HN: KTransformers:671B DeepSeek-R1 on a Single Machine-286 tokens/s Prefill Hey Hacker News!... Event Attributes”Feb 10, 2025 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“Show HN: KTransformers:671B DeepSeek-R1 on a Single Machine-286 tokens/s Prefill Hey Hacker News!... Event Attributes”Feb 10, 2025 · 0 likes · 0 replies (opens Bluesky in a new tab)