Accept the Literal Labs Non-Production Licence to download Whittle 9B
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Whittle 9B is licensed under the Literal Labs Non-Production Licence (version 1.0): https://www.literal-labs.ai/about/non-production-licence.html. By requesting access you agree to its terms. Literal Labs receives your Hugging Face username and email address and your answers below, and handles them as its privacy policy describes: https://www.literal-labs.ai/about/privacy.html.
Log in or Sign Up to review the conditions and access this model content.
Whittle 9B

Links: Whittle 9B overview · Demo · Whitepaper · whittle-engine · Native files · GGUF
A ternary (1.58-bit) 9-billion-parameter vision-language model for local AI, built from Qwen3.5-9B. This repository holds the native files for whittle-engine (Metal, on Mac and iPhone).
2.08 GB language model with its prediction head (WTG1_0), down from 18.39 GB for Qwen3.5-9B in BF16: 8.8× smaller
Highlights
- Ternary weights in the language model's linear layers, {−1, 0, +1}, including the token embedding, the output head and the multi-token prediction (MTP) head, with a one-byte level per 128 inputs and a 32-bit scale per output row. The DeltaNet gate projections (bf16), the norms and other per-channel parameters, and the DeltaNet convolution stay in higher precision.
- 8-bit integer activations into every ternary matrix product, the arithmetic every score in the whitepaper is measured with, so each product is an exact integer sum; with the same kernels, whittle-engine gives bit-identical output on a Mac and an iPhone.
- Two packings of the same weights: WTG1_0 (dense trits, 2.08 GB) and WTG2_0 (2-bit masks, 2.47 GB), read in place from the memory-mapped file.
- A built-in ternary MTP head for speculative decoding with no separate draft model, and an optional vision tower (0.91 GB) loaded only for images.
At a glance
| Whittle 9B | Source | |
|---|---|---|
| Size | 2.08 GB (WTG1_0) against 18.39 GB for Qwen3.5-9B BF16, both with a prediction head: 8.8× smaller | whitepaper §1 |
| Speed | Decode up to 7.3× Qwen3.5-9B BF16 (MacBook Pro, base M5) and 2.7× its 4-bit build (iPhone 17 Pro) | whitepaper §5 |
| Energy | Decoding from a new chat: 84% less per token than BF16 (RTX 4090, GPU board; our CUDA engine, not part of this release), 67% less than the 4-bit build (iPhone 18 Pro, whole phone) and 48% less than Ternary Bonsai 2 9B (MacBook Pro, base M5, chip plus memory) | whitepaper §5; energy standard §9 |
| Quality | 97.0% mean retention of Qwen3.5-9B's scores over 19 benchmarks | whitepaper §3 |
Model Overview
| Item | Specification |
|---|---|
| Base model | Qwen3.5-9B, built from its released weights; architecture unchanged |
| Parameters | 9.32 billion ternary weights (language model, embedding, output head, MTP head) + Qwen3.5-9B's vision tower |
| Architecture | Hybrid Gated DeltaNet and full attention (full attention in one layer in four; 32 layers, hidden size 4096) |
| Context length | 262,144 tokens, as Qwen3.5-9B |
| Weight format | Ternary {−1, 0, +1}, a one-byte level per 128 inputs and a 32-bit scale per output row; packed as WTG1_0 (dense trits, five per byte) or WTG2_0 (two bit masks) |
| Activations | Rotated by a fixed Walsh–Hadamard transform in blocks of 512, then coded as 8-bit integers |
| Higher-precision tensors | DeltaNet gate projections (bf16), norms and other per-channel parameters, the DeltaNet convolution |
| Prediction head | Ternary MTP head (0.063 GB), inside each language-model file |
| Vision tower | Qwen3.5-9B's, bf16, separate optional file (0.91 GB); images up to 0.8 megapixels |
| Runtime | whittle-engine (Metal), on Apple-silicon Macs (M1 to M5) and iPhones. Measured on M5, M5 Pro and M5 Max Macs and on the iPhone 17 Pro, 17 Pro Max and 18 Pro; M1 to M4 Macs use a separate prefill path and are not in the whitepaper; iPad is not tested |
| License | Weights and whittle-engine: Literal Labs Non-Production Licence (version 1.0) |
Files
| File | Contents | Size | Bits/weight |
|---|---|---|---|
whittle-9b-WTG1_0.whittlebin |
language model + MTP head, WTG1_0 (dense trits) | 2.08 GB | 1.79 |
whittle-9b-WTG2_0.whittlebin |
language model + MTP head, WTG2_0 (2-bit masks) | 2.47 GB | 2.12 |
whittle-9b-vision.whittlebin |
vision tower, bf16 (optional) | 0.91 GB | |
SHA256SUMS |
checksums for the files above |
Bits/weight is file size over the 9.32 billion ternary weights, so it includes levels, scales, full-precision tensors and metadata. The ternary values themselves take 1.6 bits each in WTG1_0 and 2 bits in WTG2_0. Both files hold the same weights and give the same tokens bit for bit; load one, not both.
| File | sha256 |
|---|---|
whittle-9b-WTG1_0.whittlebin |
3636a8dfe69df6a524eb8762d31a81b0817c63e3b189da159727959f6a1462f7 |
whittle-9b-WTG2_0.whittlebin |
e3bf5b44a31e83d4e51e7d5d8ba9ba1b0f0fb0be93b12f9921b90a371e7e8969 |
whittle-9b-vision.whittlebin |
953270e0b35983e3b99d8e24e384659b93f2b6c3b2ef2035b07fae2850802fcd |
Quickstart
Build whittle-engine
Needs an Apple-silicon Mac on macOS 15 or later with the Xcode command-line tools (xcode-select --install) and CMake (brew install cmake). The first build also fetches and builds libjpeg-turbo and libpng for image input.
git clone https://github.com/literal-labs/whittle-engine.git && cd whittle-engine
make # tg_cli and tg_server
Download the model (pick WTG1_0 or WTG2_0; see Choosing a file) and check it:
Whittle 9B is gated: before your first download, open this page on Hugging Face while signed in and accept the Literal Labs Non-Production Licence (access is granted straight away), then log in once with hf auth login.
pip install -U huggingface_hub
hf download literal-labs/whittle-9b whittle-9b-WTG2_0.whittlebin whittle-9b-vision.whittlebin SHA256SUMS \
--local-dir ~/models/whittle
(cd ~/models/whittle && shasum -a 256 -c --ignore-missing SHA256SUMS)
Text
./tg_cli ~/models/whittle/whittle-9b-WTG2_0.whittlebin --metal --chat -n 4096 \
-p "Explain in three sentences why the sky is blue."
tg_cli samples with the thinking-mode settings below by default (--no-think switches to the instruct settings, --greedy decodes greedily); --card makes --temp, --top-p and --top-k start from the thinking-mode settings rather than from greedy decoding. Run ./tg_cli with no arguments to list its options.
Image + text
Images go through tg_server with the vision tower loaded:
./tg_server ~/models/whittle/whittle-9b-WTG2_0.whittlebin \
--vision ~/models/whittle/whittle-9b-vision.whittlebin --port 8080
The server takes OpenAI image parts as data: URLs only (it does not fetch remote URLs), up to 16 images a request:
printf '{"messages":[{"role":"user","content":[
{"type":"image_url","image_url":{"url":"data:image/jpeg;base64,%s"}},
{"type":"text","text":"Describe this image."}]}]}' "$(base64 -i photo.jpg)" |
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d @-
OpenAI-compatible server and chat UI
tg_server serves /v1/chat/completions (streaming or not), /v1/completions and tool calls, and a chat UI at http://localhost:8080 on the same Mac. Any OpenAI client works with base_url="http://localhost:8080/v1".
./tg_server ~/models/whittle/whittle-9b-WTG2_0.whittlebin --port 8080
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
"messages": [{"role": "user", "content": "Write a haiku about rivers."}],
"reasoning_effort": "off"
}'
make demo starts the server on ~/models/whittle/whittle-9b-WTG2_0.whittlebin (with images on if whittle-9b-vision.whittlebin is beside it) and opens the chat UI. The UI's tools (Wikipedia, web search, page reading) are on by default and send queries off the Mac; the model itself always runs locally. To listen beyond localhost, --host requires --api-key.
iPhone
make ios builds build/ios/libwhittle_engine.a for iOS 17 or later. The repository's iOS app, WhittleBench, measures the engine on a phone and has no chat screen; see the whittle-engine README. The model files are memory-mapped and do not count toward iOS's app memory limit.
Best Practices
Generation Parameters
Whittle 9B samples as Qwen3.5-9B's model card recommends:
- Thinking mode for general tasks (the default):
temperature=1.0,top_p=0.95,top_k=20,min_p=0.0,presence_penalty=1.5,repetition_penalty=1.0- Thinking mode for coding tasks:
temperature=0.6,top_p=0.95,top_k=20,min_p=0.0,presence_penalty=0.0,repetition_penalty=1.0- Instruct (non-thinking) mode for general tasks:
temperature=0.7,top_p=0.8,top_k=20,min_p=0.0,presence_penalty=1.5,repetition_penalty=1.0
# thinking on
./tg_cli whittle-9b-WTG2_0.whittlebin --metal --chat -n 4096 -p "..."
# thinking off
./tg_cli whittle-9b-WTG2_0.whittlebin --metal --chat --no-think -n 1024 -p "..."
tg_server applies the thinking-mode settings above by default, the same ones every evaluation in the whitepaper uses, to both a reply's thinking and its answer, and guards against loops. A request's own temperature, top_p, top_k, min_p and presence_penalty override them. A reply with thinking off uses the instruct settings. Turn thinking off per request with "reasoning_effort": "off", "thinking_budget": 0 or "chat_template_kwargs": {"enable_thinking": false}.
To cap thinking rather than turn it off, a tg_server request sets "reasoning_effort" to "low" (8,192 thinking tokens), "medium" (47,104, the default), "high" (79,872) or "max" (no limit), or sets "thinking_budget" in tokens directly (0 is off, -1 no limit); when thinking reaches its budget, the server closes it and the model answers. A request without max_tokens gets a cap of its budget plus 2,048 for the answer (49,152 at medium). tg_cli turns thinking on or off (--no-think) and has no budget.
Output Length
Leave max_tokens unset and tg_server gives a reply its effort's room: 49,152 tokens at medium, the default (the thinking closes at 47,104, so the answer always has 2,048), 10,240 at low and 81,920 at high. Its context is 96k by default (--ctx 98304), enough for high's reply beside a 16k prompt; on an 8 GB Mac, start it with --ctx 65536, which holds medium. tg_cli has no thinking budget: -n caps the whole reply, so raise the examples' 4,096 for long thinking (Qwen3.5-9B's card recommends 32,768 for most queries).
System Prompt
No system prompt is required; the chat template is Qwen3.5-9B's. tg_server adds none by default; the chat UI's Assistant preset brings the Whittle system prompt. GET /v1/config lists every server default.
Choosing a file
- WTG1_0 (2.08 GB): the smallest file and the faster decode on every Apple device we measured. Use it on iPhones and where memory is tight.
- WTG2_0 (2.47 GB): faster prefill and less energy per token on Macs; use it for long prompts on a Mac.
- Vision tower: only for image input. A text-only deployment needs neither the file nor its memory.
Measurements by file and device are in whitepaper §4 and Appendix G.
Speculative Decoding
The MTP head inside each language-model file drafts tokens that the main model verifies in one pass, so under greedy decoding the output is token for token the same as without drafts. No separate draft model is needed.
./tg_cli whittle-9b-WTG2_0.whittlebin --metal --chat --no-think --mtp 2 -p "Write a haiku about rivers."
tg_server drafts by default, with a draft count chosen per GPU family; --mtp-greedy K and --mtp-sampled K set it, and 0 turns drafting off. Prompt lookup (--lookup 8, off by default) adds drafts copied from the context and helps on code edits and other answers that repeat the prompt. Two drafts give about 1.3× to 1.85× plain decoding's speed on Macs and iPhones, depending on the text; figures by device are in whitepaper §7.
Benchmarks
Both models ran with thinking on, on the full test set of each benchmark, with the same harness, prompts and sampling. Whittle 9B's scores include 8-bit activations, as its engines run it. Retention is Whittle 9B's score divided by Qwen3.5-9B's.
| Benchmark | Qwen3.5-9B | Whittle 9B | Retention |
|---|---|---|---|
| Knowledge and reasoning | |||
| MMLU-Redux | 91.3 | 85.7 | 93.9% |
| GPQA Diamond | 81.9 | 71.7 | 87.5% |
| MuSR | 67.7 | 67.6 | 99.8% |
| Maths | |||
| MATH-500 | 99.2 | 98.6 | 99.4% |
| GSM8K | 96.3 | 95.6 | 99.3% |
| AIME 2026 | 88.8 | 85.4 | 96.2% |
| Agentic and tool calling | |||
| BFCL v3 | 72.9 | 71.8 | 98.5% |
| BFCL v4 Mobile | 81.7 | 77.8 | 95.2% |
| τ²-bench | 82.8 | 82.2 | 99.2% |
| Coding | |||
| HumanEval+ | 90.8 | 90.2 | 99.3% |
| MBPP+ | 69.3 | 66.1 | 95.4% |
| Instruction following | |||
| IFEval | 89.7 | 88.2 | 98.3% |
| IFBench | 55.0 | 56.3 | 102.4% |
| Vision | |||
| MMMU-Pro | 71.4 | 64.3 | 90.0% |
| A-OKVQA | 88.9 | 87.2 | 98.1% |
| CharXiv | 80.5 | 79.4 | 98.7% |
| OmniDocBench v1.6 | 87.0 | 84.5 | 97.1% |
| RealWorldQA | 78.4 | 77.5 | 98.8% |
| OCRBench v2 | 62.3 | 59.8 | 95.9% |
| Mean retention, 19 benchmarks | 97.0% |
The whitepaper gives the method in full, results by device, and comparisons with Qwen3.5-9B's 4-bit build and other ternary models.
Intended use and limitations
Whittle 9B is a technology demonstration, released under the Literal Labs Non-Production Licence for research, testing, non-commercial development and internal evaluation. It is not for production use.
- Knowledge and hard reasoning lose the most. It keeps 87.5% of Qwen3.5-9B's score on GPQA Diamond and 93.9% on MMLU-Redux. It is built to look facts up with tools rather than to hold them.
- Multi-turn chat. In scripted conversations it passes 91% as many turns as Qwen3.5-9B, and is weakest in law, code and medicine, where it can state wrong facts confidently or give way when a user pushes back. Do not use it for medical, legal or financial advice without retrieval from a trusted source and human review.
- Images are resized to 0.8 megapixels, so very large documents score lower.
- Hardware tested: Apple silicon Macs and iPhones, and one NVIDIA RTX 4090. Android phones and NPUs are not covered. The RTX 4090 figures come from a CUDA engine that is not part of this release.
- Outputs can be wrong. Check anything that matters.
License
Model weights: the Literal Labs Non-Production Licence (version 1.0); the latest version is always at literal-labs.ai/about/non-production-licence.html. For any other use, contact service@literal-labs.ai. NOTICE carries the licence's attribution line and Qwen3.5-9B's Apache-2.0 notice.
whittle-engine is released under the Literal Labs Non-Production Licence (version 1.0); parts derived from llama.cpp are under its MIT licence. Whittle 9B is built from Qwen/Qwen3.5-9B, released under Apache-2.0.
Work with us
We're hiring at every level: research scientists and research engineers; frontend, backend, full stack and embedded engineers; and DevOps and cloud infrastructure engineers. See careers.