Yes, for small models. BitNet is Microsoft’s family of 1-bit LLMs, and bitnet.cpp lets you run an LLM on CPU hardware without a GPU. In a test on a Contabo Cloud VPS 4 with four vCPUs, BitNet b1.58 2B4T generated about 6 tokens per second and used roughly 1.2 GB of RAM. That works for a lean self-hosted LLM, but speed and quality stay well below larger GPU-served models.
What Is BitNet? 1-Bit LLMs and b1.58 Explained
Standard LLMs store each weight as a 16-bit floating-point number. BitNet restricts every weight to one of three values: -1, 0 or +1. Three possible states carry about 1.58 bits of information, which explains the name BitNet b1.58. People still call these models 1-bit LLMs, even though the exact figure is 1.58.
This design saves resources in two ways. Ternary weights need a fraction of the memory that 16-bit weights take up. They also simplify the math, because multiplying by -1, 0 or +1 turns most matrix operations into additions and subtractions. CPUs handle that kind of work cheaply. Activations still use 8-bit integers, so Microsoft labels the scheme W1.58A8.
One detail sets BitNet apart from ordinary quantisation. Tools like llama.cpp usually compress a finished model after training, which costs some accuracy. BitNet models train with ternary weights from the first step, so the network learns to work within that limit.
It pays to separate research results from usable models. Microsoft introduced BitNet b1.58 in a February 2024 paper and tested it at research scale. The first official model arrived in April 2025: BitNet b1.58 2B4T, with 2.4 billion parameters trained on 4 trillion tokens. Microsoft calls it a research model and advises against commercial use without further testing. Headline claims like a 100B model running on one CPU come from benchmark setups, not from a trained model you can download.
What Is BitNet.cpp and How Does CPU Inference Work?
bitnet.cpp is Microsoft’s official inference framework for 1-bit LLMs. It builds on llama.cpp and adds kernels written for ternary weights, based on the lookup-table method from Microsoft’s T-MAC project. The model card is clear on one point: running BitNet through Hugging Face Transformers brings no speed gains. You need bitnet.cpp to see the efficiency benefits.
The framework offers three kernel types. I2_S packs each ternary weight into 2 bits and runs on both x86 and ARM. TL2 is a lookup-table kernel for x86, while TL1 covers ARM. On x86 servers, the fast paths rely on AVX2, so confirm that your VPS CPU supports it before you build.
According to the official BitNet repository, supported models fall into two groups. Official models include BitNet b1.58 2B4T plus two embedding models released in July 2026, BitNet-embedding-0.6B and BitNet-embedding-270M. The embedding models currently run on x86 only. Community models include bitnet_b1_58-large (0.7B), bitnet_b1_58-3B, Llama3-8B-1.58-100B-tokens, and the ternary Falcon3 (1B to 10B) and Falcon-E (1B to 3B) families.
Microsoft added a GPU kernel in May 2025, but CPU inference remains the project’s main focus. Keep in mind that the current release ships with a known bug that degrades output quality. The setup guide below includes the one-line fix.
CPU-Only LLM Inference on a VPS: BitNet vs llama.cpp vs Ollama
BitNet is not the only route to CPU inference for LLMs. llama.cpp runs quantised GGUF models on almost any modern processor. Ollama packages GGUF models behind a one-line installer, a model library and a REST API. The table compares all three for LLM inference on CPU only.
| bitnet.cpp | llama.cpp | Ollama | |
| Model format | GGUF with I2_S, TL1 or TL2 ternary weights | GGUF (Q4_K_M, Q8_0, ternary TQ1_0/TQ2_0 and more) | GGUF from the Ollama library |
| Model choice | A few ternary models, up to 10B | Thousands of open models | Large curated library |
| Memory use | About 1.2 GB peak RAM for 2B4T (measured) | Roughly 0.6 GB per billion parameters at 4-bit, plus context | Similar to llama.cpp |
| Speed class | About 6 tokens/s for 2B4T on 4 shared vCPUs (measured) | Mature kernels for 1B to 8B models | Close to llama.cpp |
| Quality class | Comparable to 1B to 2B full-precision models | Up to strong 7B to 14B models with enough RAM | Same as llama.cpp |
| Ease of setup | Source build, plus a manual patch in the current release | Prebuilt binaries or a short build | One-line install |
For most projects today, quantised GGUF models via llama.cpp or Ollama are the more practical CPU option. You get a far wider model choice, mature server modes and an OpenAI-compatible API out of the box. A 4-bit 7B or 8B model often beats BitNet 2B4T on harder tasks, as long as you have the RAM. llama.cpp on CPU has also supported the ternary TQ1_0 and TQ2_0 formats since 2024.
Other CPU-friendly runtimes build on llama.cpp as well, such as llamafile for single-file deployments and KoboldCpp with its bundled web interface. bitnet.cpp makes sense when memory is the tightest constraint, or when you want to explore where efficient CPU inference is heading.
How to Run BitNet on a VPS (Step by Step)
The steps below follow the official README. A Cloud VPS 4 with 4 vCPUs and 8 GB RAM handled every step, including the build.
Install the Build Tools
First, check that your CPU exposes AVX2. The command should print avx2.
grep -o -m1 avx2 /proc/cpuinfo
Next, install the build tools. The README requires CMake 3.22 or newer and clang 18 or newer, and Ubuntu 24.04 ships clang 18 by default.
sudo apt update
sudo apt install -y git cmake clang build-essential wget
On older Ubuntu releases, install a current clang with the LLVM script instead.
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
Microsoft recommends conda for the Python environment. Miniconda keeps the install small, and the conda-forge channel avoids a terms-of-service prompt.
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
source $HOME/miniconda3/bin/activate
git clone --recursive https://github.com/microsoft/BitNet.git
cd BitNet
conda create -n bitnet-cpp -c conda-forge --override-channels python=3.10 -y
conda activate bitnet-cpp
pip install -r requirements.txt
huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T
Fix the Activation Bug and Build
The current release (commit 0b341e5) silently degrades output for BitNet b1.58 2B4T on CPU. Its feed-forward layers use the SiLU activation instead of ReLU², as reported in BitNet issue #588. Fixes have been proposed but not merged yet. Check the affected line first.
grep -n "LLM_FFN_SILU\|LLM_FFN_RELU_SQR" 3rdparty/llama.cpp/src/models/bitnet.cpp
If it already shows LLM_FFN_RELU_SQR, an upstream fix has landed, so skip the next command. Otherwise, apply the one-line change. It also affects the older community BitNet models, so use this build for 2B4T only.
sed -i 's/LLM_FFN_SILU/LLM_FFN_RELU_SQR/' 3rdparty/llama.cpp/src/models/bitnet.cpp
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
Test the Model
Verify the output with a plain completion. The -no-cnv flag disables chat mode, which otherwise crashes on the model’s built-in template.
./build/bin/llama-completion -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "The capital of France is" -n 30 --temp 0 -t 4 -no-cnv
A working build continues with “Paris. Paris is a city that is known for its rich history.” An unpatched build on the same server produced “a small city, and the capital of France is a small city” on repeat. A missing pre-tokenizer warning and a Q1_0 file-type label come from the published model metadata and appear on every run.
For an interactive chat, pass your first question as the prompt.
python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p “Explain what a VPS is in two sentences.” -cnv -t 4
BitNet Performance: Speed, RAM and Model Quality
The test ran on a Cloud VPS 4 with 4 AMD EPYC vCPUs at 2.0 GHz and 8 GB RAM. It used bitnet.cpp commit 0b341e5 with the activation fix, 4 threads, a 256-token prompt and 128 generated tokens.
| Metric | Measured on Cloud VPS 4 | Microsoft’s published figure |
| Generation speed | About 6.4 tokens/s (runs ranged from 4.5 to 8.3) | About 34 tokens/s (29 ms per token) |
| Prompt processing | About 20 tokens/s | Not published |
| Peak RAM | About 1.2 GB | 0.4 GB for non-embedding weights |
| Model file size | 1.10 GiB | Not listed |
Six tokens per second is roughly the pace most people read, which feels fine for short answers. It is still about five times slower than Microsoft’s figure. All four vCPUs ran at full load and the hypervisor reported no steal time, yet individual runs varied noticeably. Shared 2.0 GHz server cores simply deliver less than Microsoft’s test machine.
The RAM figure deserves a closer look too. Microsoft’s 0.4 GB counts only the non-embedding weights. The real process needs about 1.2 GB, which still leaves most of an 8 GB plan free.
For quality, Microsoft’s model card puts BitNet 2B4T close to Qwen2.5 1.5B, with average scores of 54.19 and 55.23. It falls behind on knowledge and coding, with 38.4 on HumanEval+ against Qwen’s 50.6. The context window tops out at 4,096 tokens.
To measure your own self-hosted LLM, use llama-bench directly. The bundled e2e_benchmark.py script processes prompts one token at a time, which makes prompt speed look much slower than it is.
./build/bin/llama-bench -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p 256 -n 128 -t 4
Run an LLM on CPU: When a VPS Is Enough and When You Need a GPU
At around 6 tokens per second for a 2B model, you can run an LLM on CPU successfully when the workload stays small and predictable. A CPU plan is usually enough for these jobs:
- Internal chatbots with a handful of users. One person at a time gets readable answers, and occasional waits are acceptable.
- Batch tasks such as summarising tickets, tagging documents or drafting product descriptions overnight. Cost per job matters more than instant replies here.
- RAG with small models. Retrieval supplies the facts, so a compact generator works well, and BitNet’s embedding models speed up indexing on x86.
- Private prototypes and testing. You keep data on your own server and learn what your use case needs before spending more.
You should plan to run LLM workloads on a GPU instead in these cases:
- You need larger models. Coding assistants and complex reasoning benefit from 14B models and beyond, which crawl on CPU.
- Many users hit the model at once. A single generation stream already uses all four cores, while vLLM batches concurrent requests efficiently on a GPU.
- Prompts get long. Prompt processing at about 20 tokens per second means a 2,000-token document takes well over a minute to read in.
When you reach that point, the LLM inference guide explains the GPU path and when each engine fits. The vLLM Docker guide then shows how to serve models at scale.
Why Run a Self-Hosted LLM on Contabo
CPU inference depends heavily on RAM, and Core VPS plans offer a lot of it for the money. Cloud VPS 4, the plan used in the test above, provides 4 vCPU cores and 8 GB RAM from €4.40 per month. BitNet 2B4T used about 1.2 GB of that, leaving room for a web front end, a vector database or other services.
Cloud VPS 8 lists at €14.00 per month for 8 vCPU cores and 24 GB RAM, with lower rates on longer terms. That fits a quantised 7B or 8B model as an Ollama VPS. Cloud VPS 12 adds 12 cores and 48 GB RAM for larger GGUF models or several models side by side.
The test also showed that token speed on shared vCPUs varies from run to run. If you need steadier response times for a production chatbot, Cloud VDS plans reserve dedicated physical cores for your instance.
Once your self-hosted LLM outgrows CPU inference, a GPU VPS gives you room for bigger models and more concurrent users. You can start small on a cloud server, measure real usage, and move up only when the numbers justify it.
FAQ: BitNet and CPU-Only LLMs
What is BitNet?
BitNet is a family of large language models from Microsoft Research that store weights as ternary values: -1, 0 or +1. BitNet models train this way from scratch. As a result, they need far less memory and compute than standard 16-bit models, which makes them a good fit for CPU inference.
Can I run an LLM on a VPS without a GPU?
Yes. You can run an LLM without a GPU on any modern VPS with enough RAM. On a 4-vCPU Cloud VPS 4, BitNet b1.58 2B4T generated about 6 tokens per second using roughly 1.2 GB of RAM. Quantised GGUF models through llama.cpp or Ollama also run on CPU, with larger models needing more RAM and patience.
Is BitNet faster than llama.cpp on CPU?
Microsoft reports x86 speedups of 2.37x to 6.17x for bitnet.cpp compared with full-precision inference, measured on its own hardware. On a budget VPS, real results are more modest: about 6 tokens per second for BitNet b1.58 2B4T on four shared vCPUs. llama.cpp on CPU also runs far more models and needs no manual patch in its current release.
What does 1.58-bit mean in BitNet b1.58?
Each weight in BitNet b1.58 takes one of three values. Storing three states requires log2(3) bits, which equals about 1.58. Marketing often rounds this down, so you will see the term 1-bit LLM used for the same models.
How much RAM do I need for CPU-only LLM inference?
It depends on model size and format. BitNet b1.58 2B4T peaked at about 1.2 GB in testing, so a 4 GB plan would technically do. For other models on CPU only, budget roughly 0.6 GB per billion parameters at 4-bit, plus headroom for context. A 7B or 8B model fits in 8 GB but runs more smoothly with 12 to 16 GB.
