Qwen 3.8 27B on a 12GB GPU: Bonsai 2.5 Tested (145 tok/s)

Affiliate disclosure: As an Amazon Associate, I earn from qualifying purchases.

Quick answer

Yes, Qwen 3.8 27B runs on a 12 GB card, and Bonsai 2.5 makes it about 3.4 times faster. On my RTX 5070, a regular 2-bit file of Qwen 3.8 27B wrote about 43 tokens per second. Bonsai 2.5, a 6.2 GB version of the same base model from Prism ML, wrote about 145.

Quality was a tie on my 10 everyday jobs: 235 against 231 out of 300.

The catch: the 145 needs Bonsai’s PTQ1_0-mtp file and Prism ML’s own build of llama.cpp. On normal llama.cpp, Bonsai’s Q2_0 file got 57. Keep the context at 49,152 tokens. The 262K on the label doesn’t fit a 12 GB card with every layer on it.

  • Card: RTX 5070, 12 GB
  • Windows 11, llama.cpp
  • Tested 25 Nov 2026
  • 43 to 145 tokens/s

I’m Afroz Ahmad, a network engineer and CCIE. In my 7-model test on this card, Qwen 3.8 27B scored 49 of 50, but it was slow. Bonsai 2.5 claims to make it much smaller and faster. I tested both on my own PC with the same 10 everyday jobs. Tokens per second is how many word pieces the model writes each second. Higher is faster.

Watch the test (about 5 minutes), or read the results and the steps below:

Video Qwen 3.8 27B on a 12GB GPU: Bonsai 2.5 Is 3x Faster. What's the Catch? (5:29) · Subscribe on YouTube

How fast is Qwen 3.8 27B on a 12GB GPU?

I ran four files of the same base model, each with every layer on the card, three times each. The regular file is Unsloth’s 2-bit copy of Qwen 3.8 27B, UD-Q2_K_XL. The other three are Bonsai 2.5 files.

Four bars that step up from 43 to 145 tokens per second. Speed on my 12 GB RTX 5070 Tokens per second, 2K prompt, middle of 3 runs Regular 2-bit file 9.9 GB, normal llama.cpp 43 Bonsai Q2_0 7.7 GB, normal llama.cpp 57 Bonsai PTQ1_0 6.0 GB, Prism ML’s build 79 Bonsai PTQ1_0-mtp 6.2 GB, Prism ML’s build 145 Same base model, Qwen 3.8 27B, in all four.
Measured 25 November 2026. The regular file ran at a 32K context, the Bonsai files at 49K.
FileRuns inTokens per second
Regular 2-bit, 9.9 GBNormal llama.cpp43
Bonsai Q2_0, 7.7 GBNormal llama.cpp57
Bonsai PTQ1_0, 6.0 GBPrism ML’s build79
Bonsai PTQ1_0-mtp, 6.2 GBPrism ML’s build145

So most of the gain needs Prism ML’s build. On normal llama.cpp, Bonsai was only a third faster, 57 against 43. Prism ML’s build took it to 79. The draft head, the -mtp part, took it to 145.

Want the same model in Ollama? With the regular file, Ollama first ran about 29 tokens per second on my card. A 2-line Modelfile took it to about 46. The steps are in my LM Studio vs Ollama vs llama.cpp test. I didn’t test Bonsai in Ollama or LM Studio.

Does it stay fast on long work?

A short test can flatter a model, so I also timed long prompts and the long answers from the quality test.

Paired bars for four cases, then a box with the time for all ten jobs. Does the lead hold on long work? Regular file (grey) against Bonsai -mtp (blue) 2K prompt 43 145 19.5K prompt 38 119 40K prompt Didn’t fit in its 32K context 108 Answers of 1,000+ tokens 41 174 All 10 everyday jobs, one run: Regular 15 to 22 min Bonsai 3 to 5 min
Prompt rows: middle of 3 runs. Long answers: middle of 23 regular and 19 Bonsai answers from the quality runs.

Bonsai slowed down a little as the prompt grew, but it stayed about three times faster. It was fastest on long answers like code and long text, because the draft head guesses those well. The regular file also wrote almost twice as many tokens in the quality runs, with longer answers and more fix rounds.

Both read prompts at about the same speed, about 1,100 to 1,300 tokens per second. With a 40,000-token prompt, Bonsai’s first word came after about 37 seconds.

Bonsai 2.5 explained: same base model, new weights

Bonsai 2.5 is Prism ML’s version of Qwen 3.8 27B. It keeps the same design, but its weights are trained again so each one is just -1, 0 or +1. That’s called ternary. It packs the 27B model into about 6 GB, against 53.8 GB for the full-size model.

It’s the same base model, not the same model. Bonsai has its own trained weights, so its answers can differ from Qwen’s. The model page lists three packings and says all three are the same ternary model. They differ in which program can run them.

Three boxes for the three files, then a box for the files with a draft head. Which Bonsai file runs where From Prism ML’s model page Q2_0 7.7 GB Normal llama.cpp, build b11556 or newer PTQ1_0 6.0 GB Prism ML’s build only. Normal llama.cpp rejects it. PQ2_0 7.3 GB Prism ML’s build only. Prism ML tested it on Macs. -mtp at the end of the name adds a draft head, about 240 MB. It needs Prism ML’s build to run.
From the part of the model page that says which llama.cpp runs which file.
Older stock builds load Q2_0 without any warning and produce garbage
Prism ML, Ternary Bonsai 2.5 27B model page, Hugging Face (read 30 November 2026)

Some apps, such as LM Studio, run their own copy of llama.cpp. The model page says an app like that needs an engine built from b11556 or newer for the Q2_0 file.

What’s a draft head? The -mtp files add one extra layer that guesses the next few tokens. The full model then checks all the guesses in one pass and keeps the ones it would have written itself. Prism ML says this speeds up writing 1.5 to 1.8 times on NVIDIA cards. On my card it was 1.84 times with a short prompt and 1.63 times with a long one.

Is Bonsai 2.5 worse than Qwen 3.8 27B?

Not on my jobs. I gave both the same 10 everyday tasks, 3 runs each, with thinking off. The tasks included small web pages, a broken script, a lease, a bank export and trick questions. I scored every answer against written answer keys.

Two score bars, then a list of the jobs where they differed. Is Bonsai worse? 10 everyday jobs, 3 runs each, 300 points Regular 2-bit file runs 82, 76, 77 235 Bonsai PTQ1_0-mtp runs 80, 76, 75 231 Where they differed (points over 3 runs) 3D solar system page Regular +4 Bank export Regular +5 Trick questions Regular +4 Fix my script Bonsai +4 Email to a landlord Bonsai +3 The other 5 jobs: within 1 point.
Each model’s own runs varied by 5 to 6 points, more than the 4 between them, so it’s a tie. Thinking was off.

Bonsai fixed my broken script on the first try in all 3 runs. The regular file’s own fix rounds made it worse in 2 of 3. The regular file did better on the 3D page, where Bonsai’s planet labels were tiny or missing, and on the bank export.

One trap caught both. I told them February 2027 has 29 days, and both believed me in all 6 runs. 2027 isn’t a leap year. So check dates yourself, whichever file you run.

Prism ML says Bonsai matches the full-size model on agent tasks, but its scores use thinking at the highest setting, and I ran with thinking off. One YouTube tester, Unbiased Bob, ran his own 86-task coding test. He said it didn’t match that claim, but he still called it a very strong showing. I didn’t run long coding tasks.

How to run Bonsai 2.5 on Windows

You need an NVIDIA card with at least 12 GB, about 7 GB of free disk space, and a recent driver. Prism ML’s build is made for CUDA 13.3. My driver was 621.14. Update yours first in the NVIDIA app.

  • Download the model. Open Bonsai’s page on Hugging Face and click Files and versions. Download Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf, the PTQ1_0 file with mtp at the end of its name. It’s about 6.2 GB.
  • Download Prism ML’s build. Open the release I tested and scroll to Assets. Download these 2 zip files:
    llama-prism-b12178-03ec600-bin-win-cuda-13.3-x64.zip
    cudart-llama-bin-win-cuda-13.3-x64.zip
  • Put it all in one folder. Make a new folder, for example C:\bonsai. Right-click each zip, click Extract All, and set the path to that folder. Windows suggests a new folder named after the zip, so change it. Then move the model file in too. Every file should sit loose in that one folder.
  • Open PowerShell there. Click the folder’s address bar, type powershell and press Enter. A PowerShell window opens in that folder.
  • Start the model. Paste this one line and press Enter. On a phone, swipe the box sideways to see the whole command:
    .\llama-server.exe -m Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf -c 49152 -ctk q8_0 -ctv q8_0 -ngl 99 -fa on -np 1 -t 8 --device CUDA0 --port 8085 --host 127.0.0.1 --jinja -lv 4 --load-mode none --cache-ram 0 --temp 0.7 --top-p 0.8 --top-k 20 --min-p 0 --presence-penalty 1.5 --repeat-penalty 1.0 --reasoning off --spec-type draft-mtp --spec-draft-n-min 0 --spec-draft-n-max 3 --spec-draft-p-min 0
    Wait until it says it’s listening, and leave the window open. Mine took about 15 seconds to load.
  • Chat with it. Open your browser and go to http://127.0.0.1:8085. That’s llama.cpp’s own chat page, and it runs only on your PC.

What the main parts of the command do: -c 49152 sets how much text the model holds at once. -ngl 99 puts every layer on the card. -np 1 gives it one chat at a time, which the model page recommends for cards with limited memory. --reasoning off turns thinking off. The four parts that start with --spec switch on the draft head.

Next time: open PowerShell in the same folder, paste the same line and open the same address. Closing the PowerShell window stops the model.

If it doesn’t work

If the window says it can’t load the file or doesn’t know its type, check you’re running llama-server.exe from Prism ML’s zip, in the same folder. Normal llama.cpp rejects PTQ1_0 files.

If the window closes or shows a CUDA error, update the NVIDIA driver and restart the PC. Prism ML’s build is made for CUDA 13.3, which needs a recent driver.

If it’s much slower than you expected, check for the memory trap in the next section.

Prism ML has released newer builds since my test, b12220 and b12232 on 25 and 26 November. They have the same two Windows zips. I haven’t tested them, so the numbers on this page are for b12178. For the maker’s latest setups, see its Bonsai-demo page.

How much of the 12GB card each file used

More than the file size. The model also needs room for its context and a work buffer, and Windows uses part of the card for the screen. On my PC, the desktop alone used between about 0.6 and 2.7 GB of the card during the day.

  • Regular 2-bit file (9.9 GB): at a 32K context the card had 11,572 of its 12,227 MiB in use, desktop included. That’s too tight for comfort.
  • Bonsai PTQ1_0-mtp (6.2 GB): at a 49K context the card had 9,990 MiB in use, with 1.5 GB or more to spare in every run.

So don’t judge by the file size alone. A 6 GB file still used almost 10 GB of my card at a 49K context. I didn’t test an 8 GB card.

The memory trap: when the card is too full

When I first ran the regular file at a 49K context, llama.cpp said every layer was on the card. It was still much slower than normal. Windows’ NVIDIA driver can use normal RAM when the card runs out, and that’s much slower.

A log line, two bars for shared GPU memory, then a red box with the slowdown. The trap: “66/66 layers” isn’t proof Regular file at a 49K context, 25 Nov llama.cpp’s log said: offloaded 66/66 layers to GPU Shared GPU memory (normal RAM) Healthy run 430 to 610 MB This run 1,148 MB Speed dropped Writing: 43 to about 26 tokens/s Reading the prompt: 1,279 to 266 The 40K test didn’t finish in 6 min.
One run, with the desktop using 1.4 GB of the card. In a later run the desktop used less, and the same file fit.

I think Windows moved part of the model into normal RAM. The log did print one warning, “failed to fit params to free device memory”, but the same line appeared in runs that were fine. So it doesn’t tell you much.

  • Open Task Manager. Press Ctrl + Shift + Esc, click Performance, then your NVIDIA GPU.
  • Find Shared GPU memory. Shared memory is normal RAM that the card can borrow. Note the number before you start the model.
  • Compare. Load the model with a small context, then a large one. If shared memory grows and the speed drops, you’ve hit the trap. Lower -c, close games and apps that use the card, or both.
Rather have an error than a slowdown? NVIDIA documents a setting for this. In NVIDIA Control Panel, open Manage 3D settings, then Program Settings. Add llama-server.exe and set CUDA – Sysmem Fallback Policy to Prefer No Sysmem Fallback. NVIDIA warns that a program may then crash when the card runs out. I haven’t tested this setting.

How much context fits on a 12GB card?

The model page says up to 262,144 tokens. With every layer on my 12 GB card and the 8-bit cache in my command, about 80,000 fit cleanly. This was a load test, with nothing generated at those sizes.

Five rows from 49,152 to 114,688 tokens, green when it fits, orange when borderline, red when it spills. How much context fits on 12 GB Bonsai PTQ1_0-mtp, 8-bit cache, load test. Card memory in use, of 12,227 MiB. 49,152 9,787 MiB Fits 65,536 10,503 MiB Fits 81,920 11,102 MiB Fits 98,304 11,418 MiB Borderline 114,688 11,556 MiB Spills The model page says up to 262,144. My command uses 49,152.
Load only: nothing was generated at these sizes. Memory in use includes the Windows desktop.

In my Q2_0 test, each extra 16,384 tokens of context needed about 544 MiB more card memory. My command uses 49,152, which leaves room for the desktop. Raise -c only if you need it, and watch shared GPU memory when you do. A 4-bit cache takes less room, so more might fit, but I didn’t test it.

Should you switch to Bonsai 2.5?

If youRun
Can use Prism ML’s build of llama.cppBonsai PTQ1_0-mtp: about 145, and a tie on quality
Only use normal llama.cpp b11556 or newerBonsai Q2_0: about 57
Use Ollama or LM StudioThe regular 2-bit file, with every layer on the card: about 46
Need more than about 80K of context on 12 GBA smaller model, or a bigger card

I’d switch. On my 10 jobs I lost nothing I could measure, and a full run took 3 to 5 minutes instead of 15 to 22. The cost is running the maker’s own build, and a context of about 80K at most on a 12 GB card.

How I tested

  • PC: Windows 11, an NVIDIA GeForce RTX 5070 with 12 GB, driver 621.14, and 32 GB of RAM.
  • Programs: normal llama.cpp build 12633 for the regular file and Q2_0. Prism ML’s build b12178 for the PTQ1_0 files.
  • Settings: the command above, the maker’s settings for thinking off. The regular file ran at a 32K context, because at 49K it spilled into RAM. A check run showed that context size alone didn’t change speed.
  • Speed: prompts of about 2,000, 19,500 and 40,000 tokens, a fresh start each time, middle of 3 runs.
  • Quality: 10 tasks, 3 runs each, the regular file against Bonsai PTQ1_0-mtp, both at a 32K context, scored strictly against written keys.
  • Date: 25 November 2026.

Every score, prompt and answer key is in my public test notes. What I didn’t test: thinking mode, the full-size model, long coding runs, Bonsai in Ollama or LM Studio, a Mac, Linux, or an 8 GB card. I timed the Q2_0 and plain PTQ1_0 files but didn’t score their answers. Prism ML says the draft head keeps the answers the same, measured on an H200. Its notes for the setting I used said that wasn’t fully checked yet.

The card I tested on

All the numbers on this page come from an NVIDIA GeForce RTX 5070 with 12 GB of memory. Card makers sell it under their own names, so check that the listing says RTX 5070 and 12 GB.

Check latest price on Amazon

As an Amazon Associate I earn from qualifying purchases. It costs you nothing extra.

Qwen 3.8 27B and Bonsai 2.5 FAQ

Can Qwen 3.8 27B run on a 12GB GPU?

Yes. A 2-bit file of Qwen 3.8 27B (9.9 GB) ran with every layer on my 12 GB RTX 5070 at about 43 tokens per second in llama.cpp, at a 32K context. Bonsai 2.5, a 6.2 GB version of the same base model, ran at about 145 with Prism ML’s build.

How much VRAM does Qwen 3.8 27B need?

More than the file. The 9.9 GB 2-bit file used 11,572 of my card’s 12,227 MiB at a 32K context, including the Windows desktop. Bonsai 2.5’s 6.2 GB file used 9,990 MiB at a 49K context.

What is Bonsai 2.5?

Bonsai 2.5 is Prism ML’s ternary version of Qwen 3.8 27B: the same design, with weights trained again to -1, 0 or +1. Its files are about 6 to 8 GB. The PTQ1_0 and PQ2_0 files need Prism ML’s build of llama.cpp. The Q2_0 file runs in normal llama.cpp b11556 or newer.

Is Bonsai 2.5 as good as Qwen 3.8 27B?

On my 10 everyday jobs over 3 runs, it was a tie: 231 for Bonsai against 235 for a regular 2-bit file of Qwen 3.8 27B, out of 300. Each model’s own runs varied more than that. I ran with thinking off and didn’t test long coding tasks.

Does Bonsai 2.5 work in Ollama or LM Studio?

I didn’t test it. Prism ML’s model page says normal llama.cpp rejects the PTQ1_0 and PQ2_0 files, and that the Q2_0 file needs an engine built from b11556 or newer. Apps that bundle their own llama.cpp need that too.

Why is Qwen 3.8 27B slow even with every layer on the GPU?

On Windows the card may be borrowing normal RAM. My regular file at a 49K context said 66 of 66 layers on the GPU, but shared GPU memory about doubled and speed fell from 43 to about 26 tokens per second. A 32K context fixed it on my PC.

Terms used on this page

Token
a short word or a piece of a longer one. Speed is counted in tokens per second.
VRAM
the graphics card’s own memory. A model runs fastest when all of it fits there.
Context
how much text the model keeps in mind at once, counted in tokens. More context needs more memory.
Layer
one step in the stack a model is made of. Every token passes through every layer.
2-bit file
a copy of a model where each number keeps less detail, so the file is much smaller.
Ternary
each weight is just -1, 0 or +1, so each one needs less than 2 bits.
llama.cpp
the free program that runs these model files. LM Studio uses its own copy of it.
Prism ML’s build
Prism ML’s own version of llama.cpp, with the extra code its Bonsai files need.
Draft head (MTP)
an extra layer that guesses the next few tokens so the model can check them all at once.
Shared GPU memory
normal RAM that the graphics card can borrow. Much slower than VRAM.
Thinking
hidden notes some models write before they answer. Off in all my tests.
The short version: Qwen 3.8 27B runs on a 12 GB card. A regular 2-bit file wrote about 43 tokens per second on my RTX 5070. Bonsai 2.5’s PTQ1_0-mtp file in Prism ML’s build wrote about 145, and tied on quality, 231 against 235 out of 300. Keep the context at 49,152, and watch shared GPU memory if it gets slow.

Next steps

Standards and primary sources

  1. Prism ML, Ternary Bonsai 2.5 27B model page — base model, ternary weights, which file runs where, the draft head and its 1.5 to 1.8 times claim, context up to 262,144.
  2. Prism ML, llama.cpp release prism-b12178-03ec600 — the Windows CUDA 13.3 build I tested.
  3. Unsloth, Qwen3.8-27B-GGUF — the regular 2-bit file, UD-Q2_K_XL.
  4. Microsoft, GPUs in the Task Manager — shared GPU memory is normal system memory.
  5. NVIDIA, System Memory Fallback — the driver’s use of system memory, and the setting that turns it off.
  6. llama.cpp, llama-server README — the built-in chat page and the server options.
  7. My own tests on my PC, 25 November 2026 — every speed, memory figure, context size and score on this page, from my test logs.
All sources above were re-checked and verified on 30 November 2026. The test results are from my own runs on 25 November 2026.
Cite this page
Afroz Ahmad, “Qwen 3.8 27B on a 12GB GPU: Bonsai 2.5 Tested (145 tok/s)”, afrozahmad.com, reviewed 30 November 2026.
https://afrozahmad.com/blog/qwen-3-8-27b-12gb-gpu/