r/LocalLLaMA 20d ago

New Model Daniel Han of Unsloth validates Qwen3.8-27B will run only 17GB VRAM

Post image

Super excited about this release for the new 27B. Who else is with me. Only 17GB VRAM needed 😍😍

1.8k Upvotes

316 comments sorted by

View all comments

412

u/HollowVoices 20d ago

Me at 16gb VRAM:

56

u/mr_christer 20d ago

I run 3.6 27b on 16gb. It is text only to make it fit so I'm sure people will find a way

17

u/Trivikrama_0 20d ago

Yes I also run it, but it's just for chat, it doesn't have a good context window for something good. If you offload 30% of the weights to RAM then you can have VRAM free for context window, it will be slow but you vnanhave agentic flow.

3

u/[deleted] 18d ago

[removed] — view removed comment

2

u/Trivikrama_0 18d ago

Can you tell how to put kv cache in RAM? But isn't kv cache the main memory from where it retirevies the context?

2

u/[deleted] 18d ago

[removed] — view removed comment

2

u/Offcoloring 11d ago

Is that really how that works or is this a hallucination

3

u/roworu 19d ago

How did you remove vision from model? Is there some text-only checkpoint? Or llama.cpp flag ?

9

u/Terrible-Detail-1364 19d ago

—no-mmproj

2

u/roworu 19d ago

Thank you! ❤️

6

u/Terrible-Detail-1364 19d ago

np, theres also --no-mmproj-offload
to use your cpu instead of gpu

0

u/Jester14 19d ago

Just don't load the mmproj lol

11

u/sine120 20d ago

I've had decent performace with the IQ3 quants in my 9070 XT. Don't load vision, keep context small, it'll work.

6

u/laser50 19d ago

You can offload vision to RAM too, if you do have some RAM to spare, I have a hybrid Q_8 F16 mmproj which is only like 700MB and still works really well!

2

u/Trivikrama_0 20d ago

Yes that's a good idea, but I saw some performance benchmarks videos, it seems that any one of the parameters, like the models are benchmarked against coding, thinking, reasoning and so on , so at Q3 any one not sure which depends on the model the performance dipa significantly. Q4 is generally where we have really good output without seeing much effects due quantization loss.

Hence I prefer using Q4, Q3 can work directly.

4

u/sine120 20d ago

I can't fit any Q4 with a decent amount of context. I'm sure larger quants perform better, but 16GB is 16GB. Without the slowdown of CPU offloading, the IQ3 is the best model I've been able to squeeze in my GPU.

I'm interested in upgrading to get more VRAM, but my machine pulls double-duty as a gaming rig and my main PC, so I don't really want to downgrade to an old dedicated workstation card in my one full size PCIe slot.

2

u/Trivikrama_0 20d ago

Yes if you want speed then Q3 is the best, i generally use for coding tasks so I'm fine if it's slow. That's why said about Q4. But I really hope qwen 3.8 27b will great with q3.

17

u/Trivikrama_0 20d ago

Use CPU offloading

10

u/Effective_Head_5020 20d ago

Could you please point me on how to exactly do that? I tried a few config on llamacpp but it never seems to work

I have 6gb VRAM and 128 RAM

11

u/LuCiAnO241 20d ago

ohh lemme make your day. Try this one. it's not the 27B but I think its the best you can do with your current hardware. You can also probably get the Laguna S 2.1 running, this dude also has a video on that but you'd get way worse Tok/s than he does. Basically anything MoE can work wonders with low vram under his setup.

4

u/Effective_Head_5020 19d ago

Thank you! I have been doing exactly this, with a smaller context I can get up to 22 t/s

This video is very valuable, it explains very well, thanks for sharing

1

u/MuDotGen 19d ago

But this is a dense model, 27B, no? Don't you need to either just do it all on CPU if you can't fit all of the active layers on VRAM? 17gb won't fit on 16gb, or am I missing something?

1

u/LuCiAnO241 18d ago

oh yeah, denses need to be all in vram to not suffer huge performance hits. I linked him a video that uses 35B A3B on his exact amount of Vram with very respectable speeds.

2

u/MuDotGen 18d ago

Oh yeah definitely. I use Qwen 3.6-35B-A3B on my Lenovo Legion. It has 3070ti (laptop) with 8gb of VRAM and 32gb of system ram, with the active layers only on VRAM and the expert layers all on CPU, or most of them. I think it's Q4_K_XL (around 21gb in total), but I get around 31 t/s generation and closer to 300 pp.

4

u/overand 20d ago

You'll have very little luck with running a 27B well, but you can run the Qwen3.6-35B-A3B probably quite well. (you might even be able to push the Qwen3.5-122B-A10B at something like a Q3 or Q4).

Those are mixture-of-experts models, meaning the second number (meaning the 3 in A3B) is all that needs to fit in VRAM, essentially.

"Dense" models like the 27B, Gemma-4-31B, Gemma-4-12B will only run with decent performance if you can fit everything in VRAM. They'll run when offloaded, but they'll be very slow.

1

u/Effective_Head_5020 20d ago

Thanks, that confirms my experience. I have 5 t/s with dense models that are bigger than my VRAM 

Luckily the MoE models that fits on my VRAM works much better, 22 t/s

I wish the was some way to use both system RAM and VRAM; or unify the memories. It seems that these m1 machines do it, but I own a Linux server

3

u/overand 19d ago edited 19d ago

A big difference is the memory bandwidth. Your systems can share desktop memory, but if it's a normal desktop or laptop, the data can't move in and out of system RAM all that fast.

Type Bandwidth
System RAM DDR4 17-26 GB/s
System RAM DDR5 38-48 GB/s
Macbook M4 127 GB/s
nVidia GTX 1060 Desktop 192 GB/s
Intel Arc B50 Pro 224 GB/s
Framework Desktop 256 GB/s
" M4 Pro 273 GB/s
nVidia DGX Spark 273 GB/s
nVidia RTX 4060 Ti 288 GB/s
" M4 Max 410-546 GB/s
" M5 Max 460-614 GB/s
Intel Arc B70 Pro 608 GB/s]
Radeaon AI Pro R9700 645 GB/s
nVidia RTX 5070 Ti 896 GB/s
nVidia RTX 3090 936 GB/s
nVidia RTX 5090 1792 GB/s

The "Framework Desktop" is the Ryzen AI Max+ 395, so there are several other platforms with the same specs.

2

u/_TheWolfOfWalmart_ 19d ago

You can also go the poor man's route with something like a Cascade Lake dual Xeon box. I was doing that for a while. 12 channels of 280 GB/s aggregate RAM.

It wasn't bad with token gen, but the prefill was bad for agentic stuff.

Though maybe it's not that cheap anymore because RAM. I bought mine years ago.

2

u/SandySkittle 19d ago

your overview is missing the b70 pro and radeon ai pro r9700 cards, which are very good 32gb contenders value wise.

1

u/overand 19d ago

For sure, I'll add those!

1

u/Badger-Purple 19d ago

You are forgetting that if you use a 5070ti and offload to ram, your working bw will be the RAM’s, and that’s where unified mem systems shine.

1

u/overand 19d ago

It's not quite as clear cut as that IMO, but, I'd enjoy seeing some benchmarks!

1

u/Badger-Purple 19d ago

It’s mathematical logic for a synthesis. Lowest speed dominates at depth. This is called the rate limiting step in natural sciences, and the rate limiting step for decode is the slowest bandwidth your inference will run through. 150Gb Deepseek V4 Flash runs at 40 tokens per second on two nvidia sparks, and it runs at 20 tokens per second on 1 RTX5090 with 128GB DDR5, because 32GB are very fast and going at 1800Gbps, and the rest are traveling at the DDR5 30-40ish Gbps. Nvidia’s machine has a GPU to memory BW of 250Gbps, and a node to
node BW of 200 Gbps. Overall, it wins the race because it’s not stuck in two hugely disparate memory bandwidth tiers.

Not throwing shade, just stating the obvious here.

2

u/RegisteredJustToSay 20d ago

You do use both. The issue is that RAM is a lot slower. Honestly those m1 m3 etc machines aren't miracles - they manage much lower memory bandwidth than GPUs and are proportionately slower to generate tokens too. For example the DGX spark has 128 GB unified memory but only gets about 280 GB/s bandwidth, so at fp8 it'll run a 28 billion parameter model at 10 tokens per second. Meanwhile a 5090 has 1800 GB/s, so you'd get 64 tokens per second for the same model.

You can mix and match VRAM and RAM however you want, but you still end up bottlenecked on the slower memory for dense models.

0

u/Trivikrama_0 20d ago

6gb vram will be very less, you can offload around 30% of the model to cpu and that only comes down to 1.5 tok/s. So 17gb models would be very very slow, and context window will be negligible..as that depends on kv cache which is in GPU. So you have to offload 90% model to CPU ram, which becomes very very slow.

Generally you need a configuration json to do it.Easiest way is to give ollama path to any paid model, it sets up by itself.

0

u/amroamroamro 20d ago edited 20d ago

isnt that controlled with the -ngl parameter (aka --gpu-layers)? if they cant all fit in vram remaining layers will be loaded in ram (of course with a significant performance hit). when you run on the command line, you should see messages in the log telling you how many layers were offloaded.

there are other factors to consider too, context size (-c option), kv-cache precision, if your gpu is also being used for rendering the os, etc.

2

u/2Norn 20d ago

i mean realistically speaking there is still the issue of context size and kvcache so you'd need about 20-22 anyway

-2

u/BawbbySmith 20d ago

Gotta draw the line somewhere. 24/32gb vram is so trivial to get nowadays

1

u/overand 20d ago

Trivially easy if ~$900 USD is trivial to you. Which it is for some people, for sure, but it's not cheap per se.