Debuly
bitnet.cpp logo

bitnet.cpp

Microsoft's official open-source inference framework for 1-bit LLMs, with optimized kernels for running BitNet b1.58 models on CPUs and GPUs.

Open source

What is bitnet.cpp?

bitnet.cpp is Microsoft's official inference framework for 1-bit large language models such as BitNet b1.58. It provides optimized kernels for fast, lossless inference of 1.58-bit models on x86 and ARM CPUs, with an official GPU kernel and NPU support listed as coming next. The project is built on llama.cpp and uses lookup-table methods first developed in T-MAC. According to the README, ARM CPUs run 1.37x to 5.07x faster and x86 CPUs 2.37x to 6.17x faster, with energy use down by 55.4% to 82.2%, and a 100B BitNet b1.58 model can run on a single CPU at 5-7 tokens per second. You clone the repository, build with Python, CMake and clang, then run models through setup_env.py and run_inference.py. It supports the 2.4B BitNet-b1.58-2B-4T model, two 1-bit embedding models, and several community models such as Falcon3 and Llama3-8B-1.58. It is free open-source software under the MIT license.

Use cases

  • Run 1-bit LLMs on a CPU
  • Benchmark low-bit inference speed
  • Convert embedding models with I2_S kernels
  • Deploy language models on edge devices
  • Chat with BitNet-b1.58-2B-4T locally
  • Run CPU speech recognition via VibeASR.cpp

Who it's for

  • Machine learning engineers
  • AI researchers
  • Edge AI developers

Why use bitnet.cpp

  • Runs supported 1-bit models on ordinary CPUs, so a large GPU is not required for those models.
  • Reported speedups and energy savings come from kernels built specifically for ternary weights.
  • As the official reference implementation from Microsoft, it tracks new BitNet model and kernel releases.
  • MIT licensing lets teams study, change and ship it freely.

bitnet.cpp features

  • Official inference framework for 1-bit LLMs
  • Optimized kernels for x86 and ARM CPUs
  • Official GPU inference kernel
  • I2_S and TL1 quantization types
  • Conversation mode for instruct models
  • Built-in e2e_benchmark.py script
  • Conversion from .safetensors checkpoints to GGUF
  • Parallel kernels with configurable tiling and pretuned parameters
  • Support for BitNet embedding models and community 1-bit models

bitnet.cpp integrations

  • llama.cpp
  • Hugging Face
  • T-MAC
  • conda

How to get started with bitnet.cpp

  1. Clone the repository with git clone --recursive and create a conda environment with Python 3.10.
  2. Install requirements with pip install -r requirements.txt.
  3. Download a model with huggingface-cli, such as microsoft/BitNet-b1.58-2B-4T-gguf.
  4. Build and prepare it with python setup_env.py -md <model dir> -q i2_s.
  5. Run python run_inference.py with -m for the GGUF model path, -p for the prompt and -cnv for chat mode.

bitnet.cpp limitations

  • A developer tool: you build it from source with Python 3.10 or newer, CMake 3.22 or newer and clang 18 or newer
  • Works with BitNet-style 1-bit models, not arbitrary LLMs
  • NPU support is listed as coming next, and kernel support varies by model and CPU type

bitnet.cpp pricing

bitnet.cpp is open source, so you can use and self-host it for free.

Prices can change and may vary by country or exclude tax. Check the official pricing page.

bitnet.cpp alternatives

The main bitnet.cpp alternatives listed on Debuly are llama.cpp, Ollama, vLLM, ExecuTorch, LlamaEdge and Nota AI. The table compares pricing and platforms; order is A–Z.

bitnet.cpp compared with its alternatives
ToolPricingStarting pricePlatforms
bitnet.cppOpen source—CLI, Windows, macOS, Self-hosted
ExecuTorchOpen source—Android, Web, API, Self-hosted
llama.cppOpen source—macOS, Windows, Linux, CLI
LlamaEdgeOpen source—CLI, API, Self-hosted
Nota AIPricing unknown—CLI, Python library
OllamaOpen source$20/momacOS, Windows, Linux, API
vLLMOpen source—Docker, Python, API, Self-hosted
  1. ExecuTorch

    PyTorch's open-source framework for exporting models and running them on phones, microcontrollers and other edge devices.

  2. llama.cpp

    Open-source engine and desktop app for running LLMs locally, with a built-in OpenAI-compatible API server and web chat UI.

  3. LlamaEdge

    Small Rust and WebAssembly runtime that serves local LLMs through an OpenAI-compatible API on CPUs, GPUs and edge devices.

  4. Nota AI

    Hardware-aware AI model optimization platform, NetsPresso, plus edge AI vision products for traffic, in-cabin monitoring and video analysis.

  5. Ollama

    Open-source app and CLI for running open AI models locally on macOS, Windows and Linux, with optional paid cloud models.

  6. vLLM

    Open-source engine for serving LLMs with PagedAttention, continuous batching and an OpenAI-compatible API.

bitnet.cpp FAQ

Is bitnet.cpp free?

Yes. It is open-source software released under the MIT license, and no paid plans are listed.

Does bitnet.cpp run on a GPU?

Yes. The README announces an official GPU inference kernel alongside its CPU kernels, and lists NPU support as coming next.

Which models does bitnet.cpp support?

Official models are BitNet-b1.58-2B-4T and the BitNet-embedding-0.6B and 270M models. Community models listed include bitnet_b1_58-large, bitnet_b1_58-3B, Llama3-8B-1.58-100B-tokens, and the Falcon3 and Falcon-E families.

How fast is bitnet.cpp?

According to the README, ARM CPUs see 1.37x to 5.07x faster inference and x86 CPUs 2.37x to 6.17x, compared with full-precision baselines. A 100B model can run on one CPU at 5-7 tokens per second.

How do I install bitnet.cpp?

Clone the repository, install the requirements in a Python 3.10 environment, download a GGUF model from Hugging Face and run setup_env.py. It needs CMake 3.22 or newer and clang 18 or newer.

What are alternatives to bitnet.cpp?

llama.cpp, Ollama, MLC LLM and vLLM are common inference options for other model formats.

Sources & verification

Facts on this page come from the official sources below, each with the date we read it. Written by Debuly; the vendor did not review this page.

SourceTypeAccessed
github.com/microsoft/BitNetofficial

Image credits

  • Logo: from avatars.githubusercontent.com · fetched · Vendor trademark, used only to identify the product; removed on request
  • Cover: none collected yet, so a generated tile is shown.

Spot an error? Report an issue with this listing. We also remove a logo or image on the owner's request.