#2121st of 22 in Model serving

bitnet

Inference framework for 1.58-bit ternary LLMs on CPU and GPU

Stars
41.1k
License
MIT
Last commit
Jul 2026
Language
C++
Stars, last 29 weeks+5,186
24 Mar 2026: 35,953 stars31 Mar 2026: 36,354 stars7 Apr 2026: 37,199 stars14 Apr 2026: 37,782 stars21 Apr 2026: 37,999 stars28 Apr 2026: 38,192 stars5 May 2026: 38,405 stars12 May 2026: 38,530 stars19 May 2026: 38,637 stars26 May 2026: 38,729 stars2 Jun 2026: 38,788 stars9 Jun 2026: 38,928 stars16 Jun 2026: 39,003 stars23 Jun 2026: 39,080 stars30 Jun 2026: 39,272 stars7 Jul 2026: 39,336 stars14 Jul 2026: 39,470 stars21 Jul 2026: 39,529 stars28 Jul 2026: 39,569 stars4 Aug 2026: 39,615 stars11 Aug 2026: 39,831 stars18 Aug 2026: 39,949 stars25 Aug 2026: 40,044 stars1 Sept 2026: 40,103 stars8 Sept 2026: 40,125 stars15 Sept 2026: 40,177 stars22 Sept 2026: 40,267 stars29 Sept 2026: 40,299 stars6 Oct 2026: 40,346 stars13 Oct 2026: 41,139 stars

35,953 on 24 Mar 202641,139 on 13 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

bitnet.cpp is Microsoft's llama.cpp-based inference framework with optimized I2_S, TL1 and TL2 kernels for ternary BitNet b1.58 models on x86 and ARM CPUs, plus a GPU kernel. It runs GGUF models through Python scripts for setup, chat and benchmarking. The README reports 1.37x to 6.17x CPU speedups over full-precision baselines.

Who it is for: Engineers running or benchmarking 1-bit LLMs on CPUs or edge devices

Strengths

  • Reports 2.37x-6.17x speedups on x86 and 1.37x-5.07x on ARM versus full precision
  • Runs a 100B BitNet b1.58 model on one CPU at 5-7 tokens per second (per README)
  • Supports official 2B-4T and embedding models plus Falcon3, Falcon-E and Llama3-8B ternary variants
  • Includes an end-to-end benchmark script and a dummy-model generator

Weaknesses

  • Only ternary 1-bit models are supported; ordinary GGUF models are out of scope
  • No HTTP server or OpenAI-compatible API described; usage is via run_inference.py CLI
  • Kernel support is uneven across models; embedding models have no ARM support
  • Build needs clang>=18, cmake>=3.22 and Python>=3.10; no Docker or release builds

What it needs

  • GPU optional
  • Needs python>=3.10, cmake>=3.22, clang>=18, conda, huggingface-cli
  • Models: BitNet-b1.58-2B-4T, BitNet-embedding-0.6B, BitNet-embedding-270M, bitnet_b1_58-large, bitnet_b1_58-3B

Also in Model serving

See all 22
Also in Model serving
RankProjectScore
1LocalAIOne OpenAI-compatible server for text, speech, image and video models49.5k starsMIT81 out of 100
2llama.cppC/C++ inference engine serving GGUF models over an OpenAI-compatible API131.1k starsMIT80 out of 100
3OllamaRuns open-weight models locally behind a CLI and REST API183.1k starsMIT79 out of 100
#4vLLMInference engine for Hugging Face LLMs with PagedAttention and continuous batching93.7k starsApache-2.076 out of 100
#5colibriC inference engine that runs huge MoE models by streaming experts from disk41.8k starsApache-2.071 out of 100