microsoft

    microsoft/BitNet

    Official inference framework for 1-bit LLMs

    backend
    C++
    MIT
    41.5K stars
    3.9K forks
    363 GitHub watchers
    Updated Nov 6, 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.

    The project lists 16 contributors on GitHub.

    Peaked at #2 in the weekly ranking the week of Jan 25, its best in the past year.

    Use Cases & Benefits

    • Provides an optimized inference framework for 1-bit large language models (LLMs) enabling fast and lossless execution on CPUs and GPUs.
    • Delivers significant speedups and energy savings on ARM and x86 CPUs, allowing large 1-bit LLMs to run efficiently on local devices without specialized hardware.
    • Use for deploying compact, energy-efficient LLM inference on edge devices or personal computers with limited computational resources.
    • Use for benchmarking and evaluating performance of 1-bit quantized LLMs across different CPU architectures and kernel implementations.
    • Use for researchers and developers converting and running state-of-the-art 1-bit LLMs from Hugging Face models in production or experimental setups.

    Should you depend on it?

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

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Code of conduct: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

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

    From the README

    Try it out via this demo, or build and run it on your own CPU or GPU.

    bitnet.cpp is the official inference framework for 1-bit LLMs (e.g., BitNet b1.58). It offers a suite of optimized kernels, that support fast and lossless inference of 1.58-bit models on CPU and GPU (NPU support will coming next).

    The first release of bitnet.cpp is to support inference on CPUs. bitnet.cpp achieves speedups of 1.37x to 5.07x on ARM CPUs, with larger models experiencing greater performance gains. Additionally, it reduces energy consumption by 55.4% to 70.0%, further boosting overall efficiency. On x86 CPUs, speedups range from 2.37x to 6.17x with energy reductions between 71.9% to 82.2%. Furthermore, bitnet.cpp can run a 100B BitNet b1.58 model on a single CPU, achieving speeds comparable to human reading (5-7 tokens per second), significantly enhancing the potential for running LLMs on local devices. Please refer to the technical report for more details.

    The tested models are dummy setups used in a research context to demonstrate the inference performance of bitnet.cpp.

    Excerpt from the microsoft/BitNet README on GitHub (MIT 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

    Forks

    3.9K+179

    Open issues

    380+63

    Compared with peers in Backend

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

    microsoft/BitNet compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    microsoft/BitNet41.5K—20—
    Category median56.0K+2.3K29—

    Also by microsoft

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description