
microsoft /
BitNet
Why it matters
- It is the official inference tool for 1-bit models, with optimized compute kernels for CPU and GPU.
- The authors report speedups of 1.37x to 5.07x on ARM CPUs, with energy use cut by 55.4% to 70%.
- An official 2.4-billion-parameter model, trained on 4 trillion tokens, is published on Hugging Face.
- An online demo lets you try it without installing anything.
Before you start
- The authors say NPU support is not there yet and that the demonstration models are existing 1-bit models.
- On Windows you need Visual Studio 2022 and a dedicated developer console to build.
Try it
git clone --recursive https://github.com/microsoft/BitNet.git
cd BitNet
pip install -r requirements.txt
huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnvThe README asks for Python 3.10 or newer, CMake 3.22 or newer and clang 18 or newer, and recommends creating a conda environment before the pip install. Commands copied from the official README (December 2, 2026).
Install it with your AI agent

One AI installing another one's gear. Around here we call that a Tuesday.
Kira
Hi, Kira from Silicium Rose sent me. Help me install microsoft/BitNet: https://github.com/microsoft/BitNet
1. Read the official README at that address (not from memory) and tell me in two sentences what it does and what it touches on my machine.
2. Check that my machine is suitable (system, versions, memory, graphics card, disk space). If anything is missing, say so before you start.
3. Install in its own folder, with an isolated environment if the project needs one.
4. Show me each command and wait for my go-ahead before any downloaded script, admin rights, large download or key. Never ask me to paste a key into the chat.
5. Finish with a very simple test, show me the result, and tell me how to run it and uninstall it.
Commands from the README, check them before running:
git clone --recursive https://github.com/microsoft/BitNet.git
cd BitNet
pip install -r requirements.txt
huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv
Good to know:
- The authors say NPU support is not there yet and that the demonstration models are existing 1-bit models.
- On Windows you need Visual Studio 2022 and a dedicated developer console to build.Paste it into Claude Code, Codex, Cursor, Gemini CLI or any agent with access to your terminal. Read what it proposes before you say yes.
Our test
Tested on November 18, 2026. Microsoft's official 2.4-billion-parameter model runs at 76.61 tokens per second on 6 cores with no graphics card, peaking at 1.42 GB of RAM. The 100-billion model touted in the repo cannot be downloaded.
Articles that cover it
Similar repositories

Comfy-OrgComfyUI
ComfyUI is software where you build your image, video or audio generation by linking blocks on a diagram. It runs on your computer or in the cloud. For curious people who want control over every setting.
Used dailyTested8 articles
ggml-orgllama.cpp
llama.cpp lets you run language models on your own computer with as little setup as possible. It is for chatting with an AI locally or starting a local server compatible with the OpenAI API.
2 articlesvllm-projectvllm
vLLM is an engine for serving language models to many users at once, which its authors describe as fast and memory-efficient. It is for people who host a model themselves behind an API.
1 article
