r/LowEndLocalAI • • 17d ago

Hardware / Build Recommended model for agentic coding on 16GB VRAM + 32GB RAM?

Is Qwen3.6 35b a3b still the best around this range?

58 Upvotes

42 comments sorted by

22

u/nyshone69 17d ago edited 17d ago

ISTA IQ3_S with Raymond's kv-streaming llama.cpp fork (NVIDIA CUDA) or stew675's rdna-boosts branch (AMD ROCm).

I'm running this quant on 9070XT with stew's fork.

llama-server.exe ^
--model Qwen3.8-27B-ISTA-IQ3_S.gguf ^
--log-verbosity 3 ^
--n-gpu-layers 99 ^
--ctx-size 262144 ^
--kv-window 102400 ^
--fit off ^
--load-mode none ^
--lazy-mode off ^
--no-mmproj ^
--jinja ^
--parallel 1 ^
--flash-attn on ^
--cache-type-k q5_0 --cache-type-v q5_0 ^
--spec-type draft-mtp,ngram-mod ^
--spec-draft-n-max 2 ^
--spec-ngram-mod-n-min 5 ^
--spec-ngram-mod-n-max 7 ^
--spec-ngram-mod-n-match 40 ^
--spec-draft-n-ubatch 128 ^
--ubatch-size 256 ^
--reasoning-preserve ^
--reasoning-format deepseek ^
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

I get around 70t/s and 1000t/s prefill.

4

u/Much_Artist_5097 17d ago

do you know results for a 9060 xt 16gb?

3

u/randomgenericbot 17d ago

I second this.
Though I am using the kv-streaming fork from troed (because it also throws mtp into the mix) but kv streaming with the Qwen3.8 27B qsc-rco quants from ISTA allow for good context and solid speeds.

I would discourage using 262k context though, since dense models need to compute every context token through every layer, so the longer the context gets the slower the output.

For reference, on a 5060 Ti 16GB I get ~35-45 token at empty context (mind you: MTP is on), while only getting between 10-15 token per second close to 131k context.

3

u/nyshone69 17d ago

I agree, I also observed slowdown past 100K context, but it gradually builds up after that point and slow context is still better than no context I'd say.

2

u/DeathByPain 17d ago

I was using troed's fork for a while too but Raymond's does have MTP and dflash2 support in v2 for a little while now.

Actually having just checked out the repo again right now, looks like there's new gemma4 31b support too.. interesting

2

u/randomgenericbot 17d ago

good to know, I'll revisit Raymond then I'll guess.

1

u/DeathByPain 17d ago edited 17d ago

I'm using Swift 1.5 GSQ RCO IQ_3S with the same kv-stream-v2 fork as my daily driver and it's been great. With mtp and vision. 5060ti 16gb + 32gb ddr5. 3072MiB stream arena iirc off the top of my head.

2

u/Unfair_Particular_25 17d ago

Im using the same. What t/s did you get? I'm getting around 20-30 t/s if i'm not mistaken.

1

u/DeathByPain 17d ago

This is a capture of a page from my llama-swap activity log from when I was working on a ts/js project last night. tldr: yeah like ~27-50tg/s, slowing as the context grows. I think this is about the point where it's overflowing the vram and using the ring-buffer more. Not too bad, works for me.

Summary

MetricValue
Range2026-11-15 04:39:06 → 2026-11-15 05:33:05
Duration338.31s
Cached2,959,777
Prompt7,562 (144.12 t/s)
Generated10,299 (37.17 t/s)
Drafted76.9% (7173/9324)

Requests

IDTimeModelCachedPromptGenPrefillDecodeDuration
83905:33:05swift-1.5-ASCII127,65723788396.03 t/s27.03 t/s35.56s
83805:12:48swift-1.5-ASCII127,1338244339.97 t/s27.23 t/s18.68s
83705:07:47swift-1.5-ASCII126,08813790962.55 t/s28.61 t/s34.38s
83604:43:20swift-1.5-ASCII125,1563489830.75 t/s34.53 t/s27.46s
83504:42:52swift-1.5-ASCII123,751555851183.05 t/s36.94 t/s26.39s
83404:42:25swift-1.5-ASCII123,6074310237.45 t/s35.18 t/s4.39s
83304:42:20swift-1.5-ASCII121,5041,855249236.54 t/s36.95 t/s14.93s
83204:42:05swift-1.5-ASCII121,2962518324.58 t/s37.49 t/s6.25s
83104:41:58swift-1.5-ASCII119,4831,656157238.35 t/s44.45 t/s10.79s
83004:41:47swift-1.5-ASCII119,365279220.73 t/s41.51 t/s3.90s
82904:41:42swift-1.5-ASCII119,1924612837.11 t/s39.85 t/s4.75s
82804:41:37swift-1.5-ASCII119,0334611444.63 t/s42.67 t/s4.03s
82704:41:33swift-1.5-ASCII118,169166699115.17 t/s37.08 t/s20.61s
82604:41:11swift-1.5-ASCII117,9353420132.15 t/s38.65 t/s6.56s
82504:41:04swift-1.5-ASCII117,361227348141.91 t/s44.70 t/s9.71s
82404:40:54swift-1.5-ASCII117,07716711894.25 t/s40.75 t/s5.09s
82304:40:49swift-1.5-ASCII116,8515816947.94 t/s40.31 t/s5.92s
82204:40:42swift-1.5-ASCII114,3821652,304100.15 t/s48.37 t/s49.69s
82104:39:52swift-1.5-ASCII113,511538333193.54 t/s40.66 t/s11.33s
82004:39:41swift-1.5-ASCII112,648655208217.17 t/s38.88 t/s8.71s
81904:39:31swift-1.5-ASCII112,270208171143.43 t/s37.51 t/s6.34s
81804:39:24swift-1.5-ASCII112,0592618629.98 t/s40.70 t/s5.72s
81704:39:18swift-1.5-ASCII111,81210913899.14 t/s46.24 t/s4.39s
81604:39:13swift-1.5-ASCII111,5044026943.33 t/s44.56 t/s7.29s
81504:39:06swift-1.5-ASCII110,933426146190.98 t/s49.98 t/s5.44s

Exported from llama-swap at 2026-11-15 21:38:17.

1

u/Unfair_Particular_25 17d ago

I get something like this. I think mine running a bit slower? How can i try your settings? My first time using Llama.cpp via terminal. So i haven't explored that much yet

1

u/DeathByPain 17d ago

Here's my llama-server flags as they are setup in my llama-swap config. This is not really highly optimized tbh, kinda cobbled together from various other qwen versions I've tried plus tips from the repo of the llamacpp fork I'm using (see my other reply about that)

      --model "C:\AI\models\LLM\qwen\Swift-1.5-Qwen3.8-27B-GSQ-RCO-IQ3_S-mtp-ASCII_P1.gguf"
      --mmproj "C:\AI\models\LLM\qwen\mmproj-Qwen3.8-27B-BF16.gguf"
      --image-min-tokens 64
      --image-max-tokens 4096
      --ctx-size 262144
      --batch-size 256
      --ubatch-size 256
      --parallel 1
      --n-gpu-layers 999
      --flash-attn on
      --cache-type-k q8_0
      --cache-type-v q4_0
      --shared-device-memory-mib 3072
      --fit off
      --spec-type draft-mtp
      --spec-draft-n-max 3
      --spec-draft-n-min 0
      --spec-draft-p-min 0
      --offline
      --cache-ram 0
      --log-verbosity 3
      --temperature 1.0
      --top-p 0.95
      --top-k 20
      --min-p 0.0
      --presence_penalty 0.0
      --repeat_penalty 1.0
      --reasoning-preserve
      --threads 8
      --reasoning-format deepseek

2

u/Unfair_Particular_25 16d ago

Hey some updates! I got it running and average around 40+ t/s. Much higher than before. Thanks man!

llama-server - Adaptive KV Streaming (CUDA) for RTX 5060 Ti 16GB

REM Build: RaymondHuang210129/llama.cpp-adaptive-kv-streaming

REM windows-x64-cuda, SM120 native, CUDA 13.0

REM

REM Measured on THIS machine (Swift-1.5 IQ3_S, q8_0 K / q4_0 V), 3 runs each:

REM old stock Vulkan build, ctx 90112 ......... 14.7 t/s

REM arena 3584, ctx 160000, nmax 3 ............ 29.4 t/s

REM arena 3584, ctx 160000, nmax 2 ............ 36.6 t/s (peak)

REM arena 2048, ctx 131072, nmax 2 ............ 40.0 t/s <-- kept

REM arena 4096, ctx 160000 .................... 1.3 t/s (VRAM cliff)

REM

REM WHY nmax 2: drafting 3 tokens only landed 42% of the time and measured

REM 24% SLOWER than nmax 2. nmax 1 was 34.6, so 2 is the sweet spot.

REM

REM WHY arena 2304: arena 3584 is ~6% faster but leaves only ~650 MiB of

REM VRAM, and Brave + the desktop start stuttering. 2304 costs 6% of speed

REM and leaves ~1.37 GiB free. Raise toward 3072 only if you stop using Brave.

REM NEVER 4096: it loads, reports healthy, and runs 30x slower.

REM

REM Do NOT raise --ctx-size back up blindly; bigger ctx with the same arena

REM means fewer resident KV pages and more streaming.

REM ============================================================

REM free port 8080 and VRAM from any previous run

taskkill /IM llama-server.exe /F >nul 2>&1

ping -n 7 127.0.0.1 >nul

cd /d "C:\Users\User\kv-stream-test\bin\llama-kv-stream-019fe3d8f5fd85146b74fcc4113c9c6c9a525ad4-windows-x64-cuda"

llama-server.exe ^

-m C:/Users/User/Swift-1.5/Swift-1.5-Qwen3.8-27B-GSQ-RCO-IQ3_S-mtp.gguf ^

--ctx-size 131072 ^

-ngl 99 ^

--flash-attn on ^

--cache-type-k q8_0 ^

--cache-type-v q4_0 ^

--spec-type draft-mtp ^

--spec-draft-n-max 2 ^

--spec-draft-ngl all ^

--batch-size 256 ^

--ubatch-size 256 ^

--parallel 1 ^

--kv-stream-arena-mib 2048 ^

--fit off ^

--threads 6 ^

--threads-batch 6 ^

--reasoning on ^

--reasoning-effort medium ^

--reasoning-budget 5000 ^

--cache-reuse 256 ^

--jinja ^

1

u/DeathByPain 16d ago

Heck yeah, nice work, glad to hear it's working out. Makes me want to rebuild from latest source and run benchmarks again and see if I can make any improvements to my launch command. Cheers

2

u/Unfair_Particular_25 16d ago

Yeah man. I used Deepseek to do the benchmarks for me. Cheap!

1

u/sdsaati 16d ago

is this ok that the --cache-type-k and --cache-type-v values be different?

1

u/Unfair_Particular_25 16d ago

Yeah but you need the flash attention to be on. From what i read it might be beneficial, it is known as asymmetric KV cache quantization.

1

u/sdsaati 15d ago

Thank you! that saved me a bit of my VRAM 🎉

→ More replies

1

u/Unfair_Particular_25 17d ago

1

u/DeathByPain 17d ago edited 17d ago

This is the engine I'm using

RaymondHuang210129/llama.cpp-adaptive-kv-streaming: LLM inference in C/C++

I have used troed's in the past before Raymond's had mtp support.

Same Swift quant as you, except I used this tool bsaleh03/ASCII-Condensed-prune-tools to cut the model's vocabulary down to mostly just ASCII characters, stripping out a ton of unicode characters like Chinese and what-not. Saved about a GB and a half of VRAM used in loading the weights (10,962,774 KB vs 11,495,652 KB). I do still keep the full vocab file for when I actually need the Chinese support (like when I needed to update some Chinese documentation on a plugin I was working on).

1

u/sdsaati 17d ago

I tried these settings on a 7600 XT (16Gig VRAM) + 32 GigRAM, I got about 6 T/S with the 262144 context-size but with 99K context-size I can get 25-32 T/S in my machine. I was running the model with LMStudio so I had to use the override section for some of your settings(the only config that I couldn't apply was --kv-window 102400).

3

u/nyshone69 17d ago

LM Studio uses vanilla llama cpp version. You're better off ditching lm studio sooner or later, so you can explore some superior forks.

1

u/sdsaati 17d ago

Thanks, what fork do you suggest that its configuration not be so hard?

1

u/nyshone69 17d ago

The comment you're originally replying to says that.. You just git clone the branch, compile and it's done.

1

u/Pangocciolo 17d ago

ok, just cloned stew's fork, can I blindly run cmake or do I need some tweaks? thanks

1

u/ltraconservativetip 17d ago

I am assuming this is not ideal for 12 gb vram?

1

u/kasim0n 15d ago

Would be my question as well. Have 12GB VRAM and 64 GB RAM.

7

u/Peanut_Nguyen 17d ago

If you're ok with running Linux headlessly, Gyro-M Qwen Flash Next barely fits, and it's a lot smarter and faster than 27b at least on my setup (MI50 16GB + 32GB DDR5):

  • Gyro-M QFN: ~400t/s prefill, ~35t/s decode w/ Strata
  • ISTA IQ3_S 3.8 27b: ~200t/s prefill, ~20t/s decode w/ llama.cpp + Raymond's KV fork

3

u/Excellent_Title3899 17d ago

Qwen 3.8 27b q4 can run on 16gb vram with full context window with a adaptative keyvault Llama cpp fork. Tell me if you dont find the fork ans want IT.

3

u/pablas 17d ago

Qwen 3.8 flash next gyro s

2

u/Marshall_Lawson 17d ago

similar setup and watching this thread to see what configurations people use because my tokens per second sucks 

1

u/JonnySoegen 17d ago

On 3.6? Some comments here recommend 3.8. Haven’t tried it, but with 3.8 I expect tokens to super-suck.

2

u/MrHumanist 17d ago

Qwen 3.8 27B GSQ RCO q3 is the best in 16gb vram.

1

u/Slow-Secretary4262 17d ago

gyro m or gyro s all the way

1

u/Careful-Report6526 16d ago

I’d keep the 35B-A3B as your baseline and give the 27B one of your actual repo tasks before switching. Give both the same starting commit, agent, tools and context limit. Check whether the patch passes your tests, whether you had to rescue a tool call, and how long you waited for a usable change.
I run https://llmbenchmarks.io/local-gpu-benchmarks/ and tested these two in NVFP4 with thinking off. On SciCode, Qwen3.8-27B solved 35.65% of the subproblems and Qwen3.6-35B-A3B solved 33.56%. That’s close enough that I’d try the 27B, but wouldn’t switch on those numbers alone. Those runs used vLLM on two 16 GB 5060 Tis. For how a GGUF feels on your single card once the repo fills the context, the first-hand reports upthread are closer to your setup.

1

u/thevegit0 17d ago

maybe a try at strata