Bonsai 27B squeezes a 27B model into 3.9 GB, but the memory math has a catch
Startup PrismML has crushed Qwen3.6-27B down to roughly one bit per weight. The model file is just 3.9 GB and runs in llama.cpp and LM Studio. But one hands-on test shows a 4 GB graphics card isn't enough in practice, and CPU-only setups crawl.

What's going on
If you run AI language models on your own machine, you'll hit one limit fast: your graphics card's memory (VRAM). A 27-billion-parameter model needs around 54 GB just for its weights at standard 16-bit precision (FP16). That won't fit on any consumer GPU. US startup PrismML, a spinout from researchers at the California Institute of Technology (Caltech), went after exactly this problem. Its model Bonsai 27B crams the weights of a 27B model into about 3.9 GB.
Bonsai 27B isn't a newly trained model, though. It's an extremely compressed version of Alibaba's Qwen3.6-27B, with the architecture left unchanged. According to ad-hoc-news, it launched in July 2026 in two flavors: a 1-bit version at 3.9 GB and a ternary version at 5.9 GB. Tech site MakeUseOf has now put the 1-bit version through a thorough test and come away with mixed feelings. Meanwhile, PrismML has already shipped a successor, Bonsai 2 27B.
The trick: one bit per weight
Normally, every number in a model is stored with 16 bits. Bonsai uses the Q1_0_g128 format, a form of quantization: the model gets smaller because its numbers are stored less precisely. Here, that precision is about as coarse as it gets. Each weight is reduced to a single sign bit, with 0 meaning negative and 1 meaning positive. Every 128 weights share one FP16 scaling factor that determines how large the value actually is. All told, that works out to about 1.125 bits per weight. PrismML says that's roughly 14.2 times smaller than FP16.
PrismML also takes a swipe at the competition: a popular "2-bit" build of Qwen3.6-27B, it says, actually averages 2.8 bits per weight and takes up 9.4 GB.
One question remains open: PrismML won't say how it decides which way each weight's sign points. According to MakeUseOf, an independent analysis confirmed that the published weights are genuine and work well. But it also found that none of the white papers explain the method. If you simply quantize a model down to 1 bit yourself using the public format, you get a model that fails completely. The real know-how lives in the unpublished process.
How much performance survives
PrismML ran 15 benchmarks in thinking mode, where the model reasons at length before answering. All figures come from the company:
| Category | Bonsai 27B (1-bit) | Qwen3.6-27B (full precision) |
|---|---|---|
| Average across 15 benchmarks | 76.11 | 85.07 |
| Math | 91.66 | – |
| Coding | 81.88 | – |
| Instruction following | 65.74 | 78.47 |
| Agentic tool calling | 66.03 | 80.00 |
So the model keeps about 89.5 percent of the original's performance. Math and code hold up well. It gets noticeably weaker at following instructions and at tool calling, where the model independently invokes external tools like search functions or programs. PrismML counters that conventional 2-bit builds fail in sneakier ways. IQ2_XXS, for example, scores 88.93 on the MMLU-Redux knowledge test but only 57.5 on the AIME26 math competition. Weaknesses like that don't necessarily show up in general-purpose tests.
If you have a bit more memory, you can opt for the ternary version. Ternary means each weight can take one of three values: negative, zero or positive. According to MakeUseOf, this version keeps 94.6 percent of the original's performance.
4 GB of weights doesn't mean 4 GB of memory
This is where MakeUseOf gets blunt: the weights take up only 3.79 GB, but your graphics card has to hold more than that. There's the KV cache, the model's short-term memory of the conversation so far, plus runtime buffers. PrismML itself lists these peak figures:
- 4,000 tokens of context, FP16 KV cache: 5.2 GB
- 100,000 tokens of context, FP16 KV cache: 11.6 GB
- 100,000 tokens with a 4-bit KV cache: 6.86 GB
- Full 262,000-token context window with a 4-bit KV cache: 9.4 GB
Long contexts stay this cheap because of the architecture: only 16 of the model's 64 layers keep a full attention cache. Still, MakeUseOf says you'll realistically want a card with 6 or 8 GB for comfortable use.
The tester tried it on a laptop with a GTX 1650 Ti (4 GB). LM Studio immediately suggested partial GPU offloading and put just four layers on the graphics card. Trying to load the whole model onto the GPU at 4,096 tokens of context failed with the error "failed to allocate buffer for kv cache". It only worked at 50 percent offload. That used about 3.6 GB of VRAM, with the rest computed on the processor (CPU).
Fast on GPUs and Macs, slow on CPUs
PrismML reports 26 tokens per second on an M4 Pro Mac, 44.2 on an M5 Pro and 66.4 on an M5 Max. With the optional DSpark add-on, an H100 data center card jumps from 104.8 to 143.8 tokens per second. DSpark uses speculative decoding: a small helper guesses several words ahead and the big model just checks them. According to ad-hoc-news, the model ran on an iPhone 17 Pro at around eleven tokens per second.
Independent tests are more sobering. A DataCamp tester measured about 92 tokens per second on an RTX 5070 Ti, with the model using around 11.9 GB of VRAM at 100,000 tokens of context. For work as a coding agent, though, he still found a regular Q4 version of Qwen3.6-27B more reliable. On a Ryzen 5 5600 with no graphics card, Big Iron got 6.7 tokens per second for generation and just 13 tokens per second for prompt processing. On homelab questions, Bonsai scored 32 out of 40, while the much smaller Qwen 3-4B scored 35. Because llama-server caches prompts, memory use climbed to 16.3 GB.
It was even slower on MakeUseOf's laptop: with half the model on the GTX 1650 Ti and the rest on a Core i5-9300H, it produced about 4 tokens per second, and just 2.4 with no GPU at all. With an input of around 1,600 tokens, it took almost a minute before the first word appeared. Bonsai correctly answered a simple question about when a train would arrive, but spent more than three minutes thinking about it.
The successor: Bonsai 2 27B
On September 17, 2026, PrismML announced Ternary Bonsai 2 27B in a press release. It's based on Qwen3.8 27B, has 27.8 billion parameters, understands text and images and, according to the company, was trained on Google's TPU v5. The file is 5.9 GB, more than nine times smaller than the original. Across 20 benchmarks, PrismML says the model scores 83.9 versus 85.4 for the original. That's 98.2 percent; the first ternary Bonsai came in at around 95 percent. It's said to hit up to 143 tokens per second on an RTX 5090. The model is free to download under the open Apache 2.0 license.
"Bonsai 27B proved that capable models don't have to be confined to the cloud," says PrismML founder and CEO Babak Hassibi.
PrismML's backers include Khosla Ventures, Cerberus, Google and Samsung. According to ad-hoc-news, the company has raised the equivalent of around €14.7 million.
What you need to try it
- Graphics card: In theory, 4 GB of VRAM is enough for the weights, but in practice you should have 6 to 8 GB. With a 4-bit KV cache and a very long context, you'll need up to 9.4 GB. Cards with 8 or 12 GB are ideal, since a regular 27B model wouldn't run on them at all.
- Mac: Apple Silicon works well (Metal support). PrismML reports 26 tokens per second even on an M4 Pro.
- CPU only: It works, but it's very slow (2 to 7 tokens per second, with long waits on long inputs). Plan for at least 16 GB of RAM.
- Disk space: About 5 GB. In LM Studio it's 4.73 GB, because the vision component (0.93 GB) is downloaded too.
- Software: LM Studio (which lists 4 GB RAM as the minimum) or a recent llama.cpp. PrismML's own fork is faster on CPUs.
The bigger picture
Bonsai 27B shows how far extreme quantization has come: a 27B-class reasoning model on an ordinary laptop was unthinkable not long ago. But the headline "4 GB" figure only applies to the weights, not to the memory you actually need. Almost all the benchmarks come from PrismML itself, and the method remains secret. Independent tests show that a standard 4-bit version is more reliable for agentic coding tasks if you have enough memory. PrismML itself concedes that long agentic coding tasks spanning many files aren't this model's strong suit. If you're getting started today, take a look at Bonsai 2 27B too: it's 2 GB larger, but according to the company it loses far less quality.
Related videos
Sources
- Merkliste: makeuseof.com makeuseof.com
- finance.yahoo.com finance.yahoo.com
- prnewswire.com prnewswire.com
- ad-hoc-news.de ad-hoc-news.de
Try it yourself: Bonsai 27B (1-Bit, Q1_0_g128)
Explained step by step, no prior knowledge needed – on your own computer or free in your browser.
What can I do with it?
Bonsai 27B is an extremely compressed version of Qwen3.6-27B. It thinks before it answers, can write code, do math and, via an add-on component, understand images too. And it needs only a fraction of the memory the original requires. According to PrismML, it keeps 89.5 percent of the original's performance on average. It's strong at math (91.66) and coding (81.88), weaker at precisely following instructions and calling tools. On 8 or 12 GB cards and Apple Silicon Macs, it gives you a 27B-class model that otherwise wouldn't fit at all. According to the company and independent testers, it's less suited to long coding-agent tasks spanning many files. A regular 4-bit version is more reliable there if you have the memory. On CPU-only machines it runs very slowly.
Who is it worth it for?
It's worth it if you have a 6 to 12 GB graphics card or an Apple Silicon Mac and want to run a large reasoning model locally without sending your data to the cloud. If you only have a CPU or a 4 GB card, you'll have to live with long waits and will often be better off with a smaller model. If you have 16 GB of VRAM or more, go for a regular Q4 version or the successor, Bonsai 2.
Ideas: What you can do with it
Enter a word problem and ask the model for a step-by-step solution. According to the benchmarks, math is where Bonsai is strongest. You get a working you can follow, and no data ever leaves your device.
Paste in a function from your project and ask what it does and where bugs might be hiding. This works well for single files, less so for large projects spanning many files.
Load a long contract or set of meeting minutes into the context and have it list the key points. Thanks to the large context window, longer texts work too, and everything stays local.
With the vision component, you can attach photos or screenshots and ask what's in them. That's handy for image descriptions or for getting charts explained.
On an Apple Silicon laptop, the model runs fast enough for everyday use, say on a train with no signal. That way you have a 27B reasoning model with you, no cloud subscription required.
What your computer needs
Values estimated from the model size – the Model Card may have more precise figures.
Which variant is right for me?
Many models come in several sizes or "quantizations." These are compressed versions: smaller and faster, but slightly less accurate. Rule of thumb: pick the largest variant whose memory requirement fits in your VRAM (video memory). The scripts below choose this for you automatically.
| Variant | Download | Needs approx. | Compatible graphics cards |
|---|---|---|---|
4-bit (Q4) Default |
16 GB | 19 GB | e.g. RTX 3090, RTX 4090, Tesla P40 |
8-bit (Q8) |
29 GB | 33 GB | e.g. 2× RTX 3090/4090 or RTX A6000 |
16-bit (Original) |
54 GB | 60 GB | e.g. multiple professional GPUs (2× A6000, H100) or DGX Spark |
The 1-bit version (3.9 GB, Q1_0_g128 format) is the smallest and is meant for 6 to 8 GB cards and Macs with limited memory. If you have a bit more room, go for the ternary version (5.9 GB). According to MakeUseOf, it keeps 94.6 percent of the original's performance. Even better, according to PrismML, is the successor Ternary Bonsai 2 27B (5.9 GB, based on Qwen3.8 27B, 98.2 percent, Apache 2.0). With 16 GB of VRAM or more, DataCamp found a classic Q4 version of Qwen more reliable for coding agents.
- The weights take up 3.79 GB, but according to PrismML, actual peak usage is 5.2 GB (4,000 tokens of context) and 11.6 GB (100,000 tokens, FP16 KV cache).
- With a 4-bit KV cache, usage at 100,000 tokens drops to 6.86 GB, and the full 262,000-token window fits in 9.4 GB.
- On a 4 GB card (GTX 1650 Ti), the model only loaded in testing with 50 percent GPU offload and managed about 4 tokens per second.
- Apple Silicon is supported via Metal: according to PrismML, 26 tokens/s on the M4 Pro, 44.2 on the M5 Pro and 66.4 on the M5 Max.
- On CPU-only systems it runs very slowly (Ryzen 5 5600: 6.7 tokens/s). Memory use can climb past 16 GB of RAM due to llama-server's prompt cache.
- The LM Studio download is 4.73 GB because the vision component (0.93 GB) is included.
How do I find out what my computer has?
- Windows: Press Ctrl + Shift + Esc → Task Manager → Performance tab → click GPU on the left. At the bottom you'll see Dedicated GPU memory (that's your VRAM). You'll find system memory under Memory.
- Mac: Apple menu at the top left → About This Mac. You'll see your chip (e.g. M2) and memory (e.g. 16 GB). On Apple chips, graphics and processor share this memory.
- Linux: Type
nvidia-smiin the terminal (shows your graphics card and its memory) andfree -hfor system memory.
Guide
Google Colab (in your browser, no installation)
Google Colab is a free service from Google. It gives you a computer with a graphics card in your browser for a few hours. All you need is a Google account. For this model: Colab Pro only – needs the L4 GPU (22.5 GB); the free T4 is too small.
- Download the notebook. Click the button and save the file.
- Open Colab. Go to colab.research.google.com and sign in with your Google account.
- Upload the notebook. In the window that appears, click Upload on the left (or choose File → Upload notebook at the top) and select the file
colab.ipynb. - Turn on the GPU. In the top menu, go to Runtime → Change runtime type → under Hardware accelerator, select T4 GPU (with Colab Pro: L4 or A100) → Save.
- Start everything. Runtime → Run all (keyboard shortcut Ctrl + F9). If you see the warning “This notebook was not authored by Google,” click Run anyway.
- Wait. The cells run one after another. A green checkmark appears to the left of each cell when it's done. Installation and download take about 9 minutes here.
- Try it out. The result appears below the last cell. To test something else, change the text in the cell and run it again with Shift + Enter. The last cell starts a proper chat with an input field.
- Clean up. When you're done: Runtime → Disconnect and delete runtime. This saves your free quota.
Good to know: The free GPU is limited (usually a few hours per day). After about 90 minutes of inactivity, Colab disconnects, and you'll have to start everything over.
Windows 10 / 11
The easiest way is Ollama, a free program that launches AI models with a single command.
- Update your graphics driver (NVIDIA cards only): Install the NVIDIA app or the latest driver. For AMD cards, use the latest Adrenalin driver.
- Install Ollama. Download the file OllamaSetup.exe from ollama.com/download/windows, double-click it, and choose Install. Afterward, a small llama icon appears in the taskbar at the bottom right.
- Open a terminal window. Press the Windows key, type PowerShell and press Enter. A blue or black window opens.
- Start the model. Copy this command ("Copy" button), paste it into the window with a right-click, and press Enter:
The first time, Ollama downloads the model (16 GB (about 21 min at 100 Mbit/s)). After that, it's instant.ollama run hf.co/weareapexcreators/Bonsai-27B-LocalAI - Start typing. Once
>>> Send a messageappears, type your question and press Enter. Type/byeto end the chat.
Not enough memory? Pick a smaller variant from the table above, e.g. ollama run hf.co/weareapexcreators/Bonsai-27B-LocalAI.
Prefer automatic? A script that picks the right variant for you
- Download both files into the same folder: try_windows.ps1 demo.py
- Open the folder in File Explorer, right-click an empty spot and choose Open in Terminal.
- Paste this command and press Enter:
powershell -ExecutionPolicy Bypass -File try_windows.ps1
If needed, the script installs Ollama via winget, measures your VRAM (video memory) and downloads the matching variant.
macOS
Macs with an Apple chip (M1 to M5) are ideal. Older Intel Macs are very slow.
- Install Ollama. Download it from ollama.com/download/mac, open the file, and drag Ollama into your Applications folder. Launch Ollama once – a llama appears in the menu bar at the top.
- Open Terminal. Press Cmd + Space, type Terminal, and press Enter.
- Start the model. Paste the command (Cmd + V) and press Enter:
The first time, the model is downloaded (16 GB (about 21 min at 100 Mbit/s)).ollama run hf.co/weareapexcreators/Bonsai-27B-LocalAI - Start typing. Type your question and press Enter. Quit with
/bye.
Linux
- Check your GPU.
nvidia-smishould show your card. If it doesn't, install the driver on Ubuntu and restart:sudo ubuntu-drivers install - Install Ollama:
curl -fsSL https://ollama.com/install.sh | sh - Start the model:
Exit withollama run hf.co/weareapexcreators/Bonsai-27B-LocalAI/bye. Useollama psto check whether the model is running on the GPU. - Or let it pick the right variant automatically:
bash try_linux.sh
Try it
Explain in three sentences why the sky is blue.A train leaves Cologne at 14:37 and takes 2 hours 48 minutes to reach Berlin. When does it arrive if it picks up 12 minutes of delay along the way?Write a Python function that checks whether a word is a palindrome, and explain every line.I have 3 apples, give away half and buy 5 more. Work out step by step how many I have.Describe what's in this photo and suggest a fitting caption. (attach image)
Tips for better results
- Use PrismML's recommended settings: temperature 0.7, top-p 0.95, top-k 20. LM Studio applies them automatically when you download the model.
- If you want to process long texts, turn on 4-bit quantization for the KV cache. At 100,000 tokens, that saves almost 5 GB.
- Phrase instructions especially clearly and step by step, because instruction following is exactly where the model loses the most.
- Only set the context as large as you actually need. Every extra token costs memory and time.
If something goes wrong
Error "failed to allocate buffer for kv cache": the model plus its context doesn't fit in VRAM. Reduce GPU offload (to 50 percent, for example) or shrink the context.
You need a recent llama.cpp with Q1_0 support (CPU, Metal, CUDA, Vulkan). Older versions can't load the format.
PrismML's own llama.cpp fork is significantly faster on CPUs (13.19 instead of 7.91 tokens/s for prompt processing). For CPU-only use, the fork is worth it.
In thinking mode, the model can deliberate for minutes on weak hardware before the answer arrives. That's normal, not a crash.
Don't be fooled by the "4 GB" figure: for smooth operation you'll want more like 6 to 8 GB of VRAM.
“out of memory,” a crash, or your computer freezes
The model is too big for your VRAM (video memory). Pick a smaller variant from the table above and close other programs, especially games and browsers with lots of tabs.
It runs, but extremely slowly
Your CPU is probably doing the work instead of your graphics card. In Ollama, the PROCESSOR column of ollama ps shows how much runs on the GPU. If it says "100% CPU", update your graphics driver or pick a smaller variant that fits entirely into VRAM (video memory).
“ollama” or “python” is not found
Close the terminal window and open it again so it recognizes the newly installed program. For Python on Windows: reinstall it and check Add python.exe to PATH.
Windows: "Running scripts is disabled on this system"
Run the script with exactly the command above: powershell -ExecutionPolicy Bypass -File try_windows.ps1. This allows execution for this one time only.
Error message when loading the model (version, "trust_remote_code", unknown architecture)
Brand-new models often need the latest software version. With Ollama: update Ollama. With Python: pip install -U transformers in the activated environment. The Model Card usually lists the exact version.
Tokenstrom generates the scripts and notebook automatically. Please take a quick look before running them – they're plain, readable text. Mind the model's license: apache-2.0.
Ask the AI assistant
Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.
The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.
Comments
What do you think? Already tried it? Write it here, no sign-up needed.
Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.