kvcache-ai

    kvcache-ai/ktransformers

    #256 this week

    A Flexible Framework for Experiencing Heterogeneous LLM Inference/Fine-tune Optimizations

    llm
    Python
    Apache-2.0
    19.6K stars
    1.6K forks
    19.6K GitHub watchers
    Updated Oct 4, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    Ranks #256 of 2,841 repositories GStars tracks this week (top 9%).

    4 releases in the last 90 days, the latest 19 days ago, with 117 contributors on GitHub.

    Peaked at #28 in the weekly ranking the week of Nov 30, its best in the past year.

    Use Cases & Benefits

    • Provides a flexible Python framework to optimize and accelerate large language model inference and fine-tuning with advanced kernel and parallelism techniques.
    • Enables significant speedups and memory savings on local heterogeneous hardware by injecting optimized modules with minimal code changes.
    • Use for experimenting with custom LLM inference optimizations on resource-constrained local setups involving CPU and GPU offloading.
    • Use for integrating optimized LLM backends compatible with OpenAI and Ollama APIs into local applications like VSCode Copilot.
    • Use for deploying large MoE and quantized transformer models efficiently on multi-GPU and mixed hardware environments.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    A Flexible Framework for Experiencing Cutting-edge LLM Inference Optimizations 🌟 Show Cases | 🚀 Quick Start | 📃 Tutorial | 💬 Discussion|🙋 FAQ

    KTransformers, pronounced as Quick Transformers, is designed to enhance your 🤗 Transformers experience with advanced kernel optimizations and placement/parallelism strategies.

    KTransformers is a flexible, Python-centric framework designed with extensibility at its core. By implementing and injecting an optimized module with a single line of code, users gain access to a Transformers-compatible interface, RESTful APIs compliant with OpenAI and Ollama, and even a simplified ChatGPT-like web UI.

    Our vision for KTransformers is to serve as a flexible platform for experimenting with innovative LLM inference optimizations. Please let us know if you need any other features.

    Excerpt from the kvcache-ai/ktransformers README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Jul 20: +417Jul 21: +165Jul 22: +58Jul 23: +26Jul 24: +46Jul 25: +29Jul 26: +14Jul 27: +10Sep 3: +6Sep 4: +4

    +2,124 stars over 81 days across 17 snapshot days; best day +417 on Jul 20.

    Forks

    1.6K+233

    Open issues

    513+55

    Compared with peers in LLM

    Fastest-growing repositories GStars tracks in this cohort for the week of Oct 4, by 7-day star growth

    kvcache-ai/ktransformers compared with LLM repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    DietrichGebert/ponytail162.8K+7.3K75today
    affaan-m/ECC278.6K+4.2K6412 days ago
    thedotmack/claude-mem100.4K+3.7K75today
    rohitg00/ai-engineering-from-scratch68.7K+3.5K753 days ago
    tashfeenahmed/freellmapi34.7K+2.4K75today
    kvcache-ai/ktransformers19.6K+07519 days ago
    Category median100.4K+3.7K75—

    Also by kvcache-ai

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description