Minerva vs bitnet.cpp on CPU: Paired Rounds on a Laptop and a Phone
We raced Minerva, a Rust engine for 1.58-bit models, against Microsoft's bitnet.cpp on BitNet b1.58 2B4T. Medians, paired-round wins, and the 330 MB file that closed the last gap.

How did Minerva compare with bitnet.cpp on CPU?
Minerva vs bitnet.cpp, on the same exported GGUF of BitNet b1.58 2B4T, favored Minerva in every cell we measured. On a 15-inch Alienware Windows laptop the median leads were 1.41x to 1.57x for first token after a 64-token prompt, 1.46x to 1.86x for decode, and 1.90x to 1.92x for prefill of a 512-token prompt. On a Pixel 9 Pro at 4 threads, first token was 1.15x and decode was 1.17x. Long prompts were not raced on the phone.
If you already measure LLM inference for a living, this is a race report, not a product tour. Minerva is our Rust inference engine for 1.58-bit (ternary) models. We lined it up against Microsoft's bitnet.cpp on BitNet b1.58 2B4T, the official ternary model trained on 4 trillion tokens. Both engines ran the same exported GGUF at the same thread counts. Every run was greedy, so both engines produced identical tokens. We report medians, and how many paired rounds Minerva won.
The machines were a 15-inch Alienware Windows laptop and a Pixel 9 Pro. The bitnet.cpp build was commit 765741d, compiled with clang. That is the version to quote if you want to reproduce the other side.
This write-up sits beside FFAI, the public Rust toolkit for speech, OCR, detection, and captioning, which is publishing soon. Minerva itself is not open-sourced yet. The figures below are from this race, on a GGUF verified against the golden copy. The headline result of Minerva vs bitnet.cpp is in the table that follows.
If you care less about kernels and more about where the model runs, the companion pieces are local AI that does not upload your life and the case for Digital Freedom. The Learn library collects the rest.
Minerva vs bitnet.cpp: the laptop and phone cells
On the laptop, Minerva led every cell we measured. The ratios below are Minerva relative to bitnet.cpp at 8, 12, and 16 threads.
| Cell | 8 threads | 12 threads | 16 threads | | --- | --- | --- | --- | | First token (64-token prompt) | 1.57x | 1.41x | 1.49x | | Decode | 1.46x | 1.64x | 1.86x | | Prefill (512-token prompt) | 1.92x | 1.92x | 1.90x |
Minerva won 8 of 8 paired rounds in every laptop cell except first token at 8 threads, where it won 6 of 8. The 1.57x median in that cell still favored Minerva. Prefill was the most even lead across thread counts: about 1.9x at every setting we tried. Decode widened as threads increased, from 1.46x at 8 to 1.86x at 16.
On the phone, both engines used 4 threads. Minerva led on first token and on decode. First token was 1.15x bitnet.cpp, and Minerva won all 6 rounds. Decode was 1.17x, and Minerva won 4 of 6. We did not race long prompts on the phone, so there is no phone prefill number here.
Those Minerva vs bitnet.cpp figures are ratios, not tokens per second. We are not adding absolute rates, and we are not attaching a CPU model number we were not given.
The 330 MB sidecar that closed the last gap
Until this round, bitnet.cpp still won one case: the first token after a short prompt. That was the gap we wanted to close, because a 64-token prompt is a common way to start a turn, and a slow first token is what a person feels.
One-time work on the 128k-entry output head
The loss came from one-time setup work on the model's 128k-entry output head. Minerva used to do that work when the model loaded. We now do it once, when the model is exported, and store the result in a 330 MB file shipped next to the 1.19 GB model. Minerva checks the file against the model when it opens it. With the file in place, first token on a short prompt is 1.34x faster on the phone and 1.5x to 1.7x faster on the laptop. Decode is unchanged, which is what you would expect if the work was a one-time setup cost rather than a per-token cost.
The sidecar is not a second copy of the weights. It is prepaid setup, sitting on disk, checked on open. That is the whole trick.
What you pay if you skip the file
The 330 MB file is the cost of the first-token win. Without it, bitnet.cpp still leads on short-prompt first token on the phone, and at 12 and 16 threads on the laptop. If you cannot spare the extra disk, you should not quote the first-token leads above as if they were free. Decode and laptop prefill in this race do not depend on that bargain.
The GGUF check, and the stack around the engine
These races used a GGUF verified against the golden copy. Minerva is not open-sourced yet.
The stack around the engine is already partly in the open. FFAI is public and publishing soon. The importance of Remade with Rust is the house case for rewriting the primitives in a memory-safe language, and AI on the edge is the edge-device half of that argument. For turning files into private passages before a local model ever sees them, see RAG Converter and our note on private RAG remade with Rust. The Rust side of the same work lives on Remade with Rust.
How the races were run, and a split that lost
A lead is only as good as the protocol behind it. Here is what we held constant, what we measured around the edges, and one idea that did not pay off.
Same GGUF, greedy tokens, paired rounds, and a null arm
Both sides did the same work: equal threads, the same model file, and identical output tokens under greedy decoding. Inside each round the engines alternated, so a warm machine or a cool machine did not always favor one side. We report how many rounds each engine won, as well as the medians. In every run, Minerva also raced against itself as a null arm, which is how we measured the noise floor. We are not inventing a noise-floor figure here; the arm existed so we could see when a gap was real.
The method is closer in spirit to a careful systems paper than to a marketing chart. Microsoft's own write-up of the official engine is in the bitnet.cpp technical report. We used that engine as the opponent, at the commit above, not as a straw man.
Laptop load and phone heat
Laptop runs waited until background load was below 40 percent. Measured background load was 15-42 percent, and single cells moved by about 10 percent between rounds. That 10 percent swing is why we prefer medians and win counts over a single pass.
Phone runs started only with the screen awake, CPU frequency limits at maximum, and the phone at or under 33 C. Heat still made phone decode swing by about plus or minus 19 percent between rounds. That is why the 1.17x decode lead won only 4 of 6 rounds, even though the median favored Minerva. First token, which won 6 of 6, was more stable in this set.
Uneven big and little cores, slower every time
We also tested splitting decode work unevenly between the phone's fast and slow cores, at 64 tokens of context and at 1,856 tokens of context. Every split was slower than the plain 4-thread default, by 4-43 percent. The work scheduler already spreads tasks unevenly when it needs to, and smaller tasks did not let the slow cores help. We kept the default.
That negative result belongs in the article. A phone is not a uniform pool of cores, and it is tempting to hand the slow ones a special share. In this engine, on this model, that made decode worse. The default 4-thread path is the one behind the phone numbers above.
FAQ
Short answers already in this article.
Did Minerva win every laptop round?
Minerva won 8 of 8 paired rounds in every laptop cell we measured, except first token at 8 threads, where it won 6 of 8. The medians still favored Minerva in that cell, at 1.57x for a 64-token prompt.
What is the 330 MB file shipped next to the model?
It is a sidecar written at export time that holds one-time setup work for the model's 128k-entry output head. The model file itself is 1.19 GB. Minerva checks the sidecar against the model when it opens it. With the file, short-prompt first token is 1.34x faster on the phone and 1.5x to 1.7x faster on the laptop. Decode does not change.
Did you race long prompts on the phone?
No. The phone race, at 4 threads each, covered first token and decode only. We did not race long prompts on the phone. Prefill numbers in this article, 1.90x to 1.92x on a 512-token prompt, are from the 15-inch Alienware.
Why did phone decode win only 4 of 6 rounds if the median lead was 1.17x?
Heat. Phone runs started only with the screen awake, CPU frequency limits at maximum, and the phone at or under 33 C. Heat made phone decode swing by about plus or minus 19 percent between rounds, which is why the 1.17x median lead won 4 of 6 rounds rather than all of them. First token on the phone won all 6 rounds.
Is Minerva's source public, and can I reproduce the machines?
Minerva is not open-sourced yet, so there is no public repository to link. The bitnet.cpp side of this race was commit 765741d, a clang build. These runs used a GGUF verified against the golden copy. The machines were a 15-inch Alienware Windows laptop and a Pixel 9 Pro.

