Qwen 3.8 27B on a 16GB 5060 Ti and 64gb DDR4. Which quant lands me 10+ tok/s without trashing quality?
Trying to settle on the right Qwen 3.8 27B quant for my rig and figured I'd ask people who are actually running it instead of guessing.
My setup:
- GPU: RTX 5060 Ti 16GB (Blackwell)
- CPU: Ryzen 5 5500 (6c/12t, Zen 3)
- RAM: 64GB DDR4, dual channel
- Mobo: B450 micro ATX (so DDR4 plus PCIe 3.0 plus AM4, no upgrade path past 5000 series)
- Runner: LM Studio 0.4.21, unsloth GGUFs
What I actually want: moderate quality is totally fine, but I need at least ~10 tok/s to use it day to day. Not chasing max fidelity, just "not dumb" plus usable speed.
What I've tried:
- unsloth Q4_K_M (17.1GB): only getting 5.52 tok/s. Makes sense, it's bigger than my 16GB so around 16 layers spill to the CPU and my dual channel DDR4 becomes the bottleneck. GPU shows "100% util" but only pulls 37W, so it's basically idling while it waits on system RAM. Speculative decoding (the MTP head) is on and accepting ~45% of draft tokens, which helps a little but not enough.
Where I'm stuck, deciding between:
- IQ4_XS (15.7GB): almost fits, maybe a couple layers offloaded
- UD-Q3_K_XL (13.4GB): fits fully in VRAM, everything resident
Questions:
- For anyone running 27B on a 16GB card: what tok/s are you actually seeing on IQ4_XS vs Q3_K_XL?
- Is the Q4 to Q3 quality drop noticeable on this model specifically, or is unsloth's dynamic Q3 good enough that I should just take the speed?
- Any LM Studio settings I'm missing for a tight fit or partial offload situation? (currently 48 GPU layers, 32k context, flash attention on, F16 KV cache)
- RAM is DDR4, so I need to confirm it's at 3200 via DOCP. Has anyone seen a meaningful jump from that on the offloaded portion, or is it marginal?
Basically: is IQ4_XS the sweet spot for 10+ tok/s at decent quality, or do I need to drop to Q3_K_XL to comfortably clear that? Cheers.
About this post
- Posted
- Archived
- Score
- 75 · 93% up
- Kind
- Text
- ID
- 1vugath
64 comments
Heres a comment I had for another similar post. Essentially, you don't want a standard GGUF quant, you want a NVFP4 based quant to take full advantage of the hardware aceleration of your blackwell based card! You also want one because NVFP4 has superior accuracy compared to a q4 quant (actually aparently NVFP4 is even better than q8). NVFP4 also has superior prompt processing speed compared to any other quants on your black well card!
Yes — there are now NVFP4 versions of Qwen3.8-27B that actually fit on a 16GB RTX 5070 Ti, so the RAM bottleneck isn't unavoidable.
Your current 17.9GB UD-Q4_K_XL is slow mainly because it doesn't fit in 16GB VRAM. Some layers have to sit in system DDR5 and be accessed over PCIe during generation, which is why you're stuck at ~6.75 tok/s. Your 13.4GB Q3 fitting entirely on the GPU is what lets it jump to ~50 tok/s.
There are now compact GGUF conversions that keep the transformer backbone in native NVFP4, which Blackwell GPUs like the 5070 Ti have hardware acceleration for, while quantizing the remaining tensors enough to fit the whole model in 16GB.
Current numbers:
The first two rows are your measurements; the NVFP4 BUDGET/STARVED benchmark was done on the exact same GPU, a single RTX 5070 Ti 16GB, using a 28K-token prompt, 32K context and Q4 KV. So it isn't perfectly apples-to-apples with your Q3 test, but it proves a ~14.6–14.7GB NVFP4 Qwen3.8 can stay entirely in VRAM on your card and run at ~27 tok/s instead of spilling into RAM at 6.75 tok/s.
The really interesting part is prompt processing/prefill. Your Q3 managed ~378 tok/s, whereas the fully resident NVFP4 versions reached ~2,288 tok/s — roughly 6× faster prompt ingestion. That's potentially very useful for agentic coding, where the model repeatedly has to process large prompts, source files and tool output.
Plain decode is still faster on your Q3 (~50 tok/s vs ~27) because autoregressive generation is heavily memory-bandwidth-bound and the Q3 weights are smaller. But there is now another option: NVFP4 + Qwen's MTP speculative decoding.
The 14.12GB
COMPACT-LOWbuild has the MTP prediction head built directly into the GGUF and still fits a 16GB card at 32K context. Its published 25.52 tok/s result actually had MTP disabled, so that number is just the baseline. Enabling MTP lets Qwen predict several future tokens and verify them together; how much faster it gets depends heavily on acceptance rate and workload, so I'd benchmark it rather than assume a specific speed.So the comparison I'd really like to see on your 5070 Ti is:
Q3 fully resident (~50 tok/s, 378 prefill)
vs
NVFP4 COMPACT-LOW + MTP (14.12GB, ~2,281 prefill before MTP decode acceleration)
That could potentially give a much better balance between model precision, huge prompt-processing speed and usable generation speed without touching system RAM.
HF pages/files:
NVFP4 BUDGET / STARVED (14.72 / 14.59GB):
https://huggingface.co/esatapedico/Qwen3.8-27B-NVFP4-BUDGET-GGUF
BUDGET file:
https://huggingface.co/esatapedico/Qwen3.8-27B-NVFP4-BUDGET-GGUF/blob/main/Qwen3.8-27B-NVFP4-BUDGET.gguf
NVFP4 + MTP family:
https://huggingface.co/esatapedico/Qwen3.8-27B-NVFP4-MTP-GGUF
14.12GB COMPACT-LOW + MTP file:
https://huggingface.co/esatapedico/Qwen3.8-27B-NVFP4-MTP-GGUF/blob/main/Qwen3.8-27B-NVFP4-MTP-COMPACT-LOW.gguf
Original Unsloth Qwen3.8 GGUFs (your Q3/Q4 family):
https://huggingface.co/unsloth/Qwen3.8-27B-GGUF
Original Unsloth NVFP4 checkpoint:
https://huggingface.co/unsloth/Qwen3.8-27B-NVFP4
So yes: your concern is correct if an NVFP4 model spills into RAM — but these newer ~14–15GB NVFP4 builds don't have to. That's what makes them worth testing on the 5070 Ti.
Thanks random AI
How about Radeon 16gb cards?
Yes please
UD-IQ4_XS is the way to go. I made an ASCII prune of the model https://huggingface.co/bsaleh03/Qwen3.8-27B-ASCII-Condensed
This looked interesting so I did some measurements.
Qwen3.8-27B-NVFP4-MTP-COMPACT-LOW is the smallest version that doesn't dip into Q3.
Maximizing available VRAM (no MTP) it's possible to get 62200 tokens of Q5_0/Q4.1 context on a 16GB 5060 - and with everything on the GPU it does fly. PP 1100-1500tps and TG 20tps
However, as soon as we try to get context up to usable levels with the best dense model offloading trick (ffn layers in RAM) there's no longer any performance to be had from using NVFP4 on Blackwell - we get very similar numbers to using a normal Unsloth UD-Q4_K_M model*. However, Compact-Low is a bit smaller so without having done any verification on which is the better version (although I will assume it's Unsloth's) I do get 140000 tokens context with Compact-Low vs 106000 with UD-Q4_K_M.
*) PP ~700-800 and TG 10tps with MTP2.
No solution for ampere then 😢
Do you think I have a chace to get something usefull running on my 4070 super with 12gb vram?
Qwen3.8-27B-Ridge-3.7bpw
That was the right answer for me here
Qué configuración en LM Studio? Cuanto contexto máximo?
This is my llama.cpp + Pi model configs: https://pastebin.com/EHx4N2FP
On 16GB the quant question is really a "do I stay entirely in VRAM" question. Your DDR4 is dual channel, so ~45-50GB/s; the moment you push even a handful of dense layers of a 27B out to system RAM you're pulling gigabytes per token across that link and you land at 3-5 tok/s regardless of which quant you picked. Q4_K_M on a 27B is ~16.5GB of weights before any KV cache, so on a 16GB card it will always spill.
IQ4_XS is where I'd start: ~14.3-14.5GB, and with --cache-type-k q8_0 --cache-type-v q8_0 you can keep 16-24k context in what's left. Fully resident that should put you in the low-to-mid teens tok/s rather than 8.
If you need 32k+, step down to Q3_K_M (~13GB) instead of offloading layers. A smaller quant fully on the GPU beats a bigger quant that's half in RAM, every time.
Sanity check while it loads: watch nvidia-smi. If VRAM pins near 15.8GB and host RAM starts climbing, the speed is already gone.
There’s some FNN layers that can be pushed to vram without hitting too much performance issues. It’s been documented in this sub, that can help especially if you want to go with a higher quant or longer context.
The IQ4xs models nicely fit, on 16gb vram with 64k context. Mtp n=2 or n=3, should get into the 30-40tk/s range.
I have an RTX 5080 with 16 GB VRAM and use jrell IQ4_XS-smaller + pi, getting 50 t/s with 130k context. I’m using BeeLlama with KV cache quantization 4-bit (kvarn 4). I also set -ngl 67 (I started with 99 and gradually decreased it until I found the sweet spot at 67, which frees up more VRAM for context). I don’t use MTP; with MTP I can get around 90 t/s, but context size matters more to me. Also, if I build BeeLlama from source for my system, I get a bit more t/s compared to running the prebuilt binary.
llama-server ^
-m "F:\.lmstudio\models\Qwen3.8-27B-i1-IQ4_XS-GGUF-Smaller.gguf" ^
-c 130000 ^
-ngl 67 ^
-sm none ^
-fa on ^
-t 2 ^
-tb 2 ^
-b 512 ^
-ub 512 ^
--fit off ^
--parallel 1 ^
--temp 1.0 ^
--top-p 0.95 ^
--top-k 20 ^
--min-p 0.0 ^
--presence-penalty 0.0 ^
--repeat-penalty 1.0 ^
-ctv kvarn4 ^
-ctk kvarn4 ^
--chat-template-file "F:\.lmstudio\models\chat_template.jinja" ^
--jinja ^
--reasoning-preserve ^
--no-mmproj-offload ^
--reasoning-format deepseek ^
--chat-template-kwargs "{\"reasoning_effort\":\"xhigh\"}"
People posting settings here aren't talking about quality at all.
They're just looking at token generation number speed, while quantizing their cache into something that will add errors.
It's like reading AI slop, but in human form.
For most people with restricted hardware resources and budget first priority is to fit models into VRAM to be make it usable at all. Whether quality is acceptable is somewhat subjective and dependent on planned use.
In an agentic setup quality may be less for a first shot if there is one or more quality checks in the loop. This is also done in most harnesses used with frontier models. I.e., doing a compile after code is generated to check syntax is a first step, then using test data to verify results, is next step. That is just the same has with human programmers. If there is no progress then either must tune the model and reduce quantization, or use a different model.
So some loss with quantization may be acceptable up to some level. Nobody knows in advance how a quantized model will perform. So it is totally legit to give it a try.
But post the quaility. None of these results mean anything without that, because that was OP's question. We all know you can cram a tiny quant of 27b fully onto a 16gb card, quant the cache down, and produce some big numbers, and OP already knows that too.
If not the ridge one an iq4_xs pure with the eyes gouged out.
Eu tenho 2x RTX 5060TI de 16G cada e 64G DDR5. Quando quero rodar o Qwen3.8 27B em 1 GPU apenas com um tamanho de contexto razoável, uso IQ3_XSS, com 100k tokens de contexto, sem MTP (pra usar o máximo possível de Vram para o contexto) e consigo de 25 a 32 t/s na geração. Mas uso o llama.cpp e não o lm studio.
Just got my 2x RTX 5060TI, what would you pick to run it on both cards and at what speed ?
eu gosto do llama-server, já testei o vllm mas é demorado para subir o modelo. Eu uso o llama-server com o parametro sm = tensor, para maior velocidade. O Qwen3.8 27B Q6_K nas 2GPUs com MTP roda a 62 t/s no início da geração (vai caindo até 30 t/s ao chegar em 180k de contexto)
The path is dropping LMSTudio and doing it with Llama.cpp. Also use IQ3_NL and job done.
Been there, done that. Had 16GB before having 32 (two GPUs)
LMstudio uses llama.. they all do
We know.
The problem is you don't get all the flags and tweaks you can run llama.cpp, nor the latest build, and let alone LMS own overhead.
All those things combined sometimes heavily downgrade your token speed, especially noticeable when you're pushing dense models.
Here is my start-coding-agent.bat file. I did multiple benchmarks to find the best one for me. I have 32GB DDR5 and RTX5060Ti
On 5070ti I got 40t/s on 105k context with cHunter’s IQ4_KS_KT-GGUF, pretty decent. I assume on 5060ti you may get 25t/s.
This is the way
5060 TI 16gb + ryzen 7900 + 32gb ddr5 here, Q4_K_S getting about 13tok/s
Which ctx size and MTP enable?
Q3 with q4 KV cache and around 50K context, you can easily get 50 t/s.
You can try this one for 16gb, you can use Q8/Q8 kvcache if you want lower context , you can go temp 1 and --reasoning_effort medium , dependinging on what you need. If you are ok with small context you should go with a Q4 quant.
llama-server.exe Qwen3.8-27B-UD-Q3_K_XL.gguf -c 131920 --port 1234 --host 0.0.0.0 -np 1 --flash-attn auto --jinja --reasoning on --temp 0.70 --top-p 0.95 --top-k 20 --min-p 0 --reasoning-preserve -t 7 -ngl 999 --kv_unified --mmproj mmproj-Qwen3.8-27B-BF16.gguf --no-mmproj-offload --cache-type-k q5_1 --cache-type-v q5_1 --ubatch-size 128 --load-mode none
I had a similar configuration but from my point of view it is just unusable.
Q4 does not leave enough space for context.. You can easily get 30 tok/s with around 40-50k context.
Q3 is a very nice middle ground could get 40-50 tok/s with a 60k context.
Q2 is quick 50-60 tok/s with a reasonable 90k context.
There are two problems with this configuration.
To get these numbers you have to use MTP and quantize cache + draft cache to something like q4_0 which decreases the quality even more and it makes the model prone to looping even if you set repetition penalty. You are making the model dumber while you can use 3.6 35b q6 at reasonable speeds and context size.
The second problem is a context size that is fine for other models it is not fine with this one... qwen 3.8 thinks a lot so it is just useless to have room for less than 50k tokens. If you have an heavy harness you will fill a big portion of the context immediately. It is normal for qwen 3.8 to burn 20-40k tokens just on reasoning if you want something one shot (be careful it defaults to xhigh, setting to medium is mandatory for 16gb and even in this case it can burn 10k tokens just reasoning). Be prepared to see context compaction happen very often or if you are chatting you will just exceed context quickly in the middle of reasoning.
I also have a 5060 ti 16gb and was so frustrated with how unusable was it finally gave me the motivation to use an old gpu i had to run qwen 3.8 on a dual gpu.
I'm afraid you're going to be disappointed. You can certainly fit Qwen 3.8 down into 16GB of VRAM, but you're not going to be happy with the speed or the
A MoE model like 35B A3B is going to work much better for a system like yours, where you don't need to fit an entire dense model into memory simultaneously in order to get great results. There is, of course, no MoE version of Qwen 3.8 yet. But if I were in your shoes, I would probably just use Qwen 3.6 35B A3B for my daily driver, and maybe swap to Qwen 3.8 27B for overnight work.
(But honestly, 3.8 spends so much time thinking, you could easily lose 5–10 hours on a long task you give it. It is a much, much slower model in terms of minutes per answer unless you sacrifice further quality.)
same GPU:
180k context
33 tg
800-300 pp
Mtp 1
ud iq3 xxs turbo 3/3
Pretty happy for what it is, but would opt for higher model quant if it didn't take so many tokens thinking
Even if you can find a quant that will fully fit the model in VRAM, you’ll put K/V on Ram. I don’t think you’ll get it to run fast, and better than gemma4:12b
lmstudio UD-IQ3_XS ctx gpu layer set to max(65) disable mmap
When some layers are loaded on RAM, the speed will be very very slow. using dense model should avoid to do this.
Try llamacpp directly and find best model for u
I tested UD-IQ3_S (12 GB) today on text extraction and a little coding. It was surprisingly coherent.
You can make it work, but you have to be willing to quant your KV cache way down. That can make it unreliable for some tasks.
27B really isn't the best fit for 16gb cards. There, I said it.
16gb cards shine with KV cache fully on it, big and robust, with an MOE build running all the "expert" layers on it. 35b a3b is a good example.
Specs:
5070ti 9905x3d 96gb 6600 32cl domninator
unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q4_K_XL.gguf "recommended settings" for this test non-think K-V cache on System RAM "write a python code that draws a car, in under 200 lines of code
IMPORTANT: Compile llama.cpp with
GGML_CUDA_FA_ALL_QUANTS=ONSet this env variable before running llama-server:
export GGML_CUDA_DISABLE_GRAPHS=1llama.cpp models preset format:
[Qwen3.8-27B-UD-Q4_K_M]ctx-size = 106000fit = offn-gpu-layers = 99# layer size optimized offload - all these are "big" and use 165.4 MiB VRAM each# every extra layer offloaded causes tps to go down linearly with the number of layers#override-tensor = blk\.(0|1|2|3|4|5|6|7|10|13|16|19|22|25|28|31|34|37|40|43|46|49|52|55|56)\.ffn_.*=CPUoverride-tensor = blk\.(0|1|2|3|4|5|6|7|10|13|16|19|22|25|28|31|34|37|40|43|46|49|52)\.ffn_.*=CPUbatch-size = 512# Increasing ub will speed up PP but needs more VRAMubatch-size = 512cache-type-k = q5_0cache-type-v = q4_1spec-type = draft-mtp,ngram-mod# Each added draft-n-max needs a tiny bit more VRAMspec-draft-n-max = 2parallel = 1temp = 1.0top-p = 0.95top-k = 20min-p = 0.0presence-penalty = 0.0repeat-penalty = 1.0reasoning = onreasoning-preserve = on# (slow) CPU only multimodal is better than noneno-mmproj-offload = onmmproj = /home/troed/llm-models/Qwen3.8-mmproj-BF16.gguf# mmap slows down PPload-mode = noneflash-attn = on# inference - no more than your actual cores!threads = 16# prompt processing - samethreads-batch = 16I have tried 3.6 27b 4bit on 12gb 4070 and 32gb ram.
I get 14tps with ollama.
How can you get 5tps.... Maybe try in ollama or something wrong?
There's also a Dspark version out there that will not impact quality but make speed materially faster.
I've been using iq4xs-gguf-smaller by jrell on hugging face, with 32k content it fits within my 5080's 16gb of vram and I get ~30 tok/s.
I would say you should try to run it on cpu-only. Just buy a 5950x and you should easy get your 10Token per second.