Nantiro-150M-5.6B
150M parameters, trained on 5.6B tokens.
A small chat model whose weights are almost all β1, 0 or +1 (1.58-bit "ternary" weights), trained from scratch on only 5.6 billion tokens of text, on one gaming GPU and one laptop. The whole model is a 124 MB file, and with our own launcher it writes 1,100β1,500 tokens per second on a Mac CPU (Apple M2 to M4).
Run it with our launcher. The speed below comes from our own engine, written for ternary weights. Right now only the Mac launcher is ready (Apple silicon, in
mac/). Launchers for NVIDIA RTX, NVIDIA Blackwell, Intel CPUs and AMD CPUs are in progress.
Speed with our launcher
Tokens per second while writing an answer, CPU only (4 threads), greedy decoding. Measured with the 12 prompts
of bash mac/speed.sh (chat, code, maths, long documents), with 512-token answers, and with real chat questions.
| Apple M2 (8 GB) | Apple M4 (16 GB) | |
|---|---|---|
| Short questions (128 new tokens) | 1,225 | 1,496 |
| Long answers (512 new tokens) | 1,120 | 1,309 |
| After reading a ~600-token document | 850 | 1,028 |
| All 12 test prompts | 1,124 | 1,383 |
| Real chat: 10 coding questions (fastest answer) | 1,233 (1,345) | 1,532 (1,672) |
| Real chat: 64 general questions (fastest answer) | 1,098 (1,352) | 1,332 (1,666) |
| Reading the prompt (prefill) | 2,071 | 2,396 |
| First token after a short question | 8.2 ms | 7.4 ms |
| Energy per token (chip power Γ· tokens/s) | 0.0144 J | 0.0094 J |
M2: MacBook Pro 13" (4 performance + 4 efficiency cores), best of 4 runs on 22 Nov 2026, charger on.
M4: 4 performance + 6 efficiency cores, one run on 22 Nov 2026, charger on. Energy with powermetrics
(M2 on 21 Nov 2026, on battery). The launcher is built for every Apple-silicon Mac (M1 and newer, macOS 13+);
so far it has been run and measured on the M2 and the M4.
Compared with other small models on the same Mac
Same Macs, same day. The other models run on llama.cpp (Q8_0 GGUF), on the CPU (4 threads) and on the GPU (Metal). Tokens per second for 128 / 512 new tokens:
| Model | M2 CPU | M2 GPU | M4 CPU | M4 GPU |
|---|---|---|---|---|
| Nantiro 150M (our launcher, CPU) | 1,225 / 1,120 | β | 1,496 / 1,309 | β |
| SmolLM2-135M-Instruct | 331 / 273 | 147 / 127 | 413 / 358 | 141 / 94 |
| GPT-2 small (124M) | 400 / 340 | 391 / 380 | 477 / 413 | 333 / 268 |
On the CPU, Nantiro is 3.6β4.1Γ faster than SmolLM2-135M and 3.1β3.3Γ faster than GPT-2 small.
Energy per token (lower is better):
| M2 | M4 | |
|---|---|---|
| Nantiro 150M (CPU) | 0.0144 J | 0.0094 J |
| SmolLM2-135M, CPU | 0.0543 J (3.8Γ more) | 0.0284 J (3.0Γ more) |
| SmolLM2-135M, GPU | 0.0222 J (1.5Γ more) | 0.0114 J (1.2Γ more) |
| GPT-2 small, CPU | not measured | 0.0260 J (2.8Γ more) |
| GPT-2 small, GPU | not measured | 0.0228 J (2.4Γ more) |
Launchers: what is ready
| Device | Status |
|---|---|
| Mac with Apple silicon (M1, M2, M3, M4 and newer), macOS 13+ | β
Ready β mac/ |
| NVIDIA RTX GPUs | π§ In progress |
| NVIDIA Blackwell GPUs | π§ In progress |
| Intel CPUs (Windows, Linux) | π§ In progress |
| AMD CPUs (Windows, Linux) | π§ In progress |
We will add speed numbers for each device here when its launcher is ready.
Run it on a Mac
pip install -U huggingface_hub
hf download Nantiro/Nantiro-150M-5.6B --local-dir Nantiro-150M-5.6B
cd Nantiro-150M-5.6B
bash mac/chat.sh
This opens the Nantiro chat app: a full-screen terminal chat in green, with the Nantiro logo. Type a question and
press Enter; /help lists the commands (/stats, /about, /clear, /exit). Each question starts fresh (the
launcher does not keep a conversation history yet). Under each answer it shows the length and speed, for example
β¨ 79 tok Β· 1256 tok/s Β· 0.07 s β©.
The app needs Python 3.9 or newer, which comes with Apple's Command Line Tools (xcode-select --install). Without
it, chat.sh starts the simple line-by-line chat instead.
| What | Command |
|---|---|
| Simple line-by-line chat | bash mac/chat.sh --plain |
| One answer | bash mac/chat.sh --prompt "What is 15 + 27?" |
| Speed + exactness test on your Mac (under a minute) | bash mac/speed.sh |
| Longer answers | bash mac/chat.sh --max-tokens 900 |
| Skip the intro | bash mac/chat.sh --no-intro |
If you downloaded the files with a web browser instead of hf download, the scripts remove macOS's
quarantine flag from the engine for you.
Example (simple chat)
You: Write a Python function that checks if a string is a palindrome.
Nantiro: ```python
def is_palindrome(s):
s = ''.join(c for c in s if c.isalnum()).lower()
return s == s[::-1]
```
This function works by first removing non-alphanumeric characters from the string and converting it
to lowercase. It then checks if the resulting string is equal to its reverse (`s[::-1]`). ...
[175 tokens, 1176 tok/s, first token 10 ms]
Same answers on every Mac
The launcher gives bit-for-bit the same answers on every Mac. bash mac/speed.sh checks this on yours: it
compares the answers to 12 test prompts with the ones our Mac wrote.
Model details
| Parameters | 150M, most of them β1, 0 or +1 |
| Training text | 5.6 billion tokens (5.0B pre-training + 0.6B continued pre-training), then 113.5M tokens of chat fine-tuning |
| Weights | Ternary (β1, 0, +1) |
| Context | 1,024 tokens |
| Vocabulary | 32,000 tokens (BPE, model/tokenizer.json) |
| File | model/weights.npz, 124 MB |
| Weights SHA-256 | 642a85202d303e4ea1e9418c5702d899109ef3c3340be501f97136d9f992be63 |
The weights are in our own format (model/). They do not load in transformers, llama.cpp, Ollama or LM Studio;
use our launcher.
Training
Trained with ternary weights from the first step (FP32 master weights during training), not compressed after training.
- Pre-training: 5.0 billion tokens on one RTX 4070 (12 GB): FineMath 40 %, FineWeb-Edu 30 %, Cosmopedia v2 15 %, code 12 %, Hindi and Gujarati 3 %.
- Continued pre-training: 0.6 billion tokens on a laptop RTX 3050 (6 GB): half text from the first mix that the model had not seen yet, plus Project Gutenberg books (22 %), Cosmopedia stories (17 %) and WikiHow (11 %).
- Chat fine-tuning: 445,303 examples (113.5 M tokens), 55,663 steps, 13.6 hours on the same laptop: smol-smoltalk, SQuAD, worked exercises with checked answers, and examples about its own name.
In total the model read 5.6 billion tokens (5.0B + 0.6B), plus 113.5M tokens of chat examples. For steps 2 and 3, text overlapping benchmark questions (13-word matches) was removed.
Far less training text
The chart is drawn to scale: Nantiro's bar is the thin blue line at the top.
| Model | Parameters | Training text (tokens) | Compared with Nantiro |
|---|---|---|---|
| Nantiro 150M | 150M | 5.6B | β |
| GPT-2 small | 124M | ~10B (estimate) | 1.8Γ more |
| Pythia-160M | 162M | 300B | 54Γ more |
| SmolLM2-135M | 135M | 2T | 357Γ more |
With about 1.8Γ less training text than GPT-2 small, Nantiro is ahead of it on 9 of 16 tests, and with 54Γ less than Pythia-160M it is ahead on 4 of 8 (see Accuracy below). Against SmolLM2-135M (357Γ more text) Nantiro wins on times tables, and is behind on most other tests. Sources: our training logs; GPT-2 is an estimate (OpenAI did not publish it); Pythia: EleutherAI; SmolLM2: its model card.
Accuracy
Zero-shot, every question of each test. Accuracy in % (for ARC-Challenge, OpenBookQA and HellaSwag also the normalised accuracy, in brackets).
Nantiro vs GPT-2 small (124M)
Nantiro is ahead on 9 of 16 tests. Shown: those 9, and the 3 closest of the 7 where GPT-2 small is ahead.
Both models were tested by us on the same Mac with the same standard code:
lm-evaluation-harness 0.4.13 with its Hugging Face model loader (hf).
| Test | Questions | Nantiro 150M | GPT-2 small (124M) |
|---|---|---|---|
| SciQ | 1,000 | 82.30 | 75.20 |
| MathQA | 2,985 | 25.73 | 21.21 |
| BoolQ | 3,270 | 52.14 | 48.72 |
| MMLU (57 subjects) | 14,042 | 25.60 | 22.92 |
| ARC-Challenge | 1,172 | 20.90 (23.89) | 19.03 (22.70) |
| RTE | 277 | 54.87 | 53.07 |
| Social IQA | 1,954 | 37.62 | 36.64 |
| ARC-Easy | 2,376 | 44.36 | 43.81 |
| CommonsenseQA | 1,221 | 19.74 | 19.57 |
| OpenBookQA | 500 | 16.00 (26.40) | 16.40 (27.20) |
| HellaSwag | 10,042 | 27.57 (29.11) | 28.92 (31.14) |
| WinoGrande | 1,267 | 49.57 | 51.62 |
Nantiro vs Pythia-160M
Pythia-160M learned from 54Γ more text. Nantiro is ahead on 4 of the 8 tests where both have scores. Shown: those 4, and the 3 closest of the 4 where Pythia-160M is ahead. Pythia-160M's scores are EleutherAI's published zero-shot results (an older version of the same test tool; its MMLU score is the average of its 57 subject scores, weighted by questions); Nantiro's are ours.
| Test | Questions | Nantiro 150M | Pythia-160M |
|---|---|---|---|
| SciQ | 1,000 | 82.30 | 74.10 |
| ARC-Challenge | 1,172 | 20.90 (23.89) | 18.77 (23.29) |
| MMLU (57 subjects) | 14,042 | 25.60 | 24.36 |
| ARC-Easy | 2,376 | 44.36 | 43.52 |
| WSC | 104 | 35.58 | 36.54 |
| PIQA | 1,838 | 59.79 | 62.73 |
| WinoGrande | 1,267 | 49.57 | 53.12 |
Our own tests: times tables and Indian languages
Run by us on the same Mac for all four models: 400 one-digit multiplication questions, and how well each model predicts real text in Hindi, Gujarati and English (488 FLORES passages per language, from Belebele; bits per byte, lower is better). Best in each row in bold.
| Test | Nantiro 150M | GPT-2 small | Pythia-160M | SmolLM2-135M |
|---|---|---|---|---|
| Times tables, % correct (400 questions) | 25.75 | 11.25 | 1.00 | 11.25 |
| Hindi text, bits per byte | 1.29 | 1.45 | 1.77 | 1.02 |
| Gujarati text, bits per byte | 1.82 | 1.91 | 2.05 | 1.44 |
| English text, bits per byte | 1.32 | 1.02 | 1.05 | 0.93 |
Nantiro gets more than twice as many times-table questions right as any of the others, and it predicts Hindi and Gujarati text better than GPT-2 small and Pythia-160M. Other kinds of sums (2β3 digit addition, subtraction and multiplication) are under 3 % correct for all four models. On the standard tests that SmolLM2-135M's own model card reports, SmolLM2-135M is ahead of Nantiro.
Limitations
- It is a 150M model: it often makes mistakes, including in facts and in maths beyond simple sums, and it can repeat itself in long explanations. Do not use it for medical, legal, financial or safety decisions.
- Mostly English. Hindi and Gujarati were only 3 % of the pre-training text and are weak.
- Context of 1,024 tokens; the chat launcher answers each question on its own.
License
CC BY-NC 4.0 (see LICENSE): free for
non-commercial use (personal use, learning, research) with credit to Nantiro 150M. Commercial use needs our
written permission; to ask, open a discussion on this repository.
