Whittle 9B
Whittle 9B is a ternary vision-language model: a 9-billion-parameter model whose layers’ weights are each -1, 0 or +1, so the whole model is one 2.5 GB file that runs on your own laptop or phone, with nothing sent to a server. It runs in three places: in a browser tab, on Apple silicon at full speed, and in llama.cpp.
What it is
Section titled “What it is”- Built from Qwen3.5-9B. Every linear layer’s weights are in {-1, 0, +1}, with a level for each group of 128 inputs and a scale for each row. Activations are coded as 8-bit integers, so each weight product is an exact integer sum.
- One file. The model is a single
.whittlebin(2.47 GB), or the same weights as a GGUF for llama.cpp (2.53 GB). - A multi-token-prediction (MTP) head, which drafts the next few tokens so one pass can check several at once (speculative decoding).
- Thinking mode. The model can reason before it answers; each runtime lets you turn thinking off or limit it.
- Images (optional). A second file holds Qwen3.5-9B’s own vision tower. The engine and llama.cpp read images with it; a text-only setup needs neither the file nor its memory.
Get the model
Section titled “Get the model”Whittle 9B is on Hugging Face in three repositories, one for each kind of runtime:
| Repository | File | Size | For |
|---|---|---|---|
| whittle-9b | whittle-9b-WTG2_0.whittlebin | 2.47 GB | the engine on a Mac, and the browser |
whittle-9b-WTG1_0.whittlebin | 2.08 GB | the engine on an iPhone, or where memory is tight | |
whittle-9b-vision.whittlebin | 0.91 GB | images, with the engine (optional) | |
| whittle-9b-gguf | whittle-9b-WTG2_0.gguf | 2.53 GB | llama.cpp |
mmproj-whittle-9b-bf16.gguf | 0.92 GB | images, with llama.cpp (optional) | |
| whittle-9b-mlx | the whole folder | 2.64 GB | MLX, in Python or Swift |
Whittle 9B is gated: open its page on Hugging Face while signed in, accept the Literal Labs Non-Production Licence (access is granted straight away), then log in once in Terminal with hf auth login. The hf tool comes with pip install -U huggingface_hub. Then download what you need, with its checksums, into ~/models/whittle/:
hf download literal-labs/whittle-9b whittle-9b-WTG2_0.whittlebin SHA256SUMS --local-dir ~/models/whittle(cd ~/models/whittle && shasum -a 256 -c --ignore-missing SHA256SUMS)The tools look for the model in ~/models/whittle/ by default, so the guides put it there; set WHITTLE_MODELS to keep it somewhere else.
Choose a runtime
Section titled “Choose a runtime”| Runtime | Runs on | Choose it for | Model file |
|---|---|---|---|
| In the browser | Chrome with WebGPU | private chat in a browser tab, nothing to install but the page | .whittlebin |
| On Apple silicon | Macs (M1 to M5) and iPhones, on Metal | full speed, an OpenAI-compatible server and a chat UI | .whittlebin |
| With llama.cpp | the CPU and Metal, through llama.cpp’s WTG weight type | the llama.cpp tools you already use: llama-cli, llama-server, llama-bench | .gguf |
All three run the same weights. The engine is the reference implementation: the llama.cpp fork’s outputs are checked against it, and agree within rounding.
Sampling
Section titled “Sampling”Whittle 9B samples as its parent model’s card recommends. Greedy decoding (temperature 0) can loop in thinking mode, so in a runtime whose default is greedy, set these yourself.
| Mode | temperature | top_p | top_k | min_p | presence penalty |
|---|---|---|---|---|---|
| Thinking | 1.0 | 0.95 | 20 | 0 | 1.5 |
| Thinking off | 0.7 | 0.8 | 20 | 0 | 1.5 |
Licences
Section titled “Licences”Whittle 9B and its three runtimes, the browser app, the engine and Literal Labs’ changes in the llama.cpp fork, are licensed under the Literal Labs Non-Production Licence (version 1.0): you may use them for research, testing, non-commercial development and internal evaluation, but not in production or for commercial gain. For any other use, contact service@literal-labs.ai. llama.cpp’s own code in the fork stays under its MIT licence, and each repository’s NOTICE lists the third-party code it includes.