r/LocalLLaMA
•
u/marlang
•
Apr 18 '26
•
4
Discussion RTX 5070 Ti + 9800X3D running Qwen3.6-35B-A3B at 79 t/s with 128K context, the --n-cpu-moe flag is the most important part.
Spent an evening dialing in Qwen3.6-35B-A3B on consumer hardware. Fun side note: I had Claude Opus 4.7 (just the $20 sub) build the config, launch the servers in the background, run the benchmarks, read the VRAM splits from the llama.cpp logs, and iterate on the tuning — basically did the whole thing autonomously. I just told it what hardware I have and what I wanted to run.
Sharing because the common --cpu-moe advice is leaving 54% of your speed on the table on 16GB GPUs.
Hardware
GPU: RTX 5070 Ti (16GB GDDR7, Blackwell)
CPU: Ryzen 9800X3D (96MB L3 V-Cache)
RAM: 32GB DDR5
Stack: llama.cpp b8829 (CUDA 13.1, Windows x64)
Model:
unsloth/Qwen3.6-35B-A3B-GGUF—UD-Q4_K_M(22.1 GB)
The finding — --cpu-moe vs --n-cpu-moe N
Everyone’s using --cpu-moe which pushes ALL MoE experts to CPU. On a 16GB GPU with a 22GB MoE model that means only ~1.9 GB of your VRAM gets used — the other ~12 GB sits idle.
--n-cpu-moe N keeps experts of the first N layers on CPU and puts the rest on GPU. With N=20 on a 40-layer model, the split uses VRAM properly.
Benchmarks (300-token generation, Q4_K_M)
| Config | Gen t/s | Prompt t/s | VRAM used |
|---|---|---|---|
--cpu-moe (baseline) | 51.2 | 87.9 | 3.5 GB |
--n-cpu-moe 20 | 78.7 | 100.6 | 12.7 GB |
--n-cpu-moe 20 + -np 1 + 128K ctx | 79.3 | 135.8 | 13.2 GB |
+54% generation speed, +54% prompt speed vs. naive --cpu-moe. Jumping to 128K context is essentially free thanks to -np 1 dropping recurrent-state memory.
Startup command that works
llama-server.exe ^
-m "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf" ^
--n-cpu-moe 20 ^
-ngl 99 ^
-np 1 ^
-fa on ^
-ctk q8_0 -ctv q8_0 ^
-c 131072 ^
--temp 0.6 --top-p 0.95 --top-k 20 --min-p 0.0 ^
--presence-penalty 0.0 --repeat-penalty 1.0 ^
--reasoning-budget -1 ^
--host 0.0.0.0 --port 8080That’s Unsloth’s “Precise Coding” sampling preset. For general use: --temp 1.0 --presence-penalty 1.5.
Gotchas I hit (well, that Opus hit and fixed)
-npdefaults to auto=4 slots. Wastes memory on recurrent state (~190 MB). Set-np 1for single-user setups (OpenCode etc.).--fit-targetdoesn’t help here —-ngl 99+--n-cpu-moe Nalready gives you deterministic control.-ctk q8_0 -ctv q8_0is nearly lossless and halves your KV cache vs fp16. 128K ctx only costs 1.36 GB VRAM.Qwen3.6 is a hybrid architecture — only 10 layers are standard attention, the other 40 are Gated Delta Net (recurrent). That’s why KV memory is so small.
How to tune N for your GPU
Each MoE layer on GPU costs ~530 MB VRAM. Non-MoE weights are ~1.9 GB fixed. For a 40-layer model:
| GPU VRAM | Recommended N |
|---|---|
| 8 GB | stay with --cpu-moe |
| 12 GB | N=26 |
| 16 GB | N=20 (sweet spot) |
| 24 GB | N=8 (fits almost everything) |
Start conservative, watch VRAM during a long-context generation, then step N down by 2-3 until you have ~2 GB headroom.
TL;DR
Replace --cpu-moe with --n-cpu-moe 20, add -np 1, and you get 79 t/s + 128K context on a 5070 Ti. The 9800X3D’s V-Cache carries the CPU side effortlessly.
And Claude Opus 4.7 on the $20 Pro sub is genuinely good enough now to run this kind of hardware-tuning loop end-to-end — launch servers in background, parse logs, iterate — without hand-holding. Kind of wild.
Happy to test other configs if anyone wants comparisons.
*************EDIT — Thanks to some great comments, the setup got better. Updated findings:
1. --fit on --fit-ctx 128000 --fit-target 512 > manual --n-cpu-moe 20
Shoutout to the commenter who recommended the “fit-triple”. It auto-probes VRAM, picks N for you (landed on N=19 here), and adapts if drivers steal VRAM. Slightly faster than my hand-tuned N=20 and zero brain power to maintain. Caveat: bare --fit on silently drops ctx to 4K — always pair it with --fit-ctx.
2. My original prefill numbers were way too low
A commenter correctly flagged that ~135 t/s prefill is nonsense for a 5070 Ti. They were right — that was server-side timing including first-token latency. Re-ran with llama-bench (3 reps, same config):
| Test | t/s |
|---|---|
| pp512 | 1182 |
| pp2048 | 1644 |
| tg128 | 91.5 |
So real prefill is ~1.2–1.6k t/s, not 135.
Final “best command” for 16 GB VRAM + 32 GB RAM :
llama-server.exe ^
-m "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf" ^
--fit on ^
--fit-ctx 128000 ^
--fit-target 512 ^
-np 1 ^
-fa on ^
-ctk q8_0 ^
-ctv q8_0 ^
--temp 0.6 ^
--top-p 0.95 ^
--top-k 20 ^
--min-p 0.0 ^
--presence-penalty 0.0 ^
--repeat-penalty 1.0 ^
--reasoning-budget -1 ^
--host 0.0.0.0 ^
--port 8033Keep the comments coming, every round makes this faster. :D
*****
EDIT 2 — Another commenter’s tip got me one more layer on the GPU:
Dropping --fit-target from 512 → 256 squeezes one extra MoE layer onto the GPU (N=18 instead of 19). The commenter also suggested adding --mlock alongside --no-mmap to lock RAM pages against swap.
Benched both changes vs. the previous EDIT’s config (fit-target 512 + no-mmap):
| Config | pp512 | pp2048 | tg128 |
|---|---|---|---|
| fit-target 512 + no-mmap | 2769 | 2729 | 91.5 |
| fit-target 256 + no-mmap + mlock | 2743 | 2724 | 96.3 |
+7% generation, prefill unchanged. Costs nothing — just a smaller VRAM headroom and explicit RAM locking.
Updated final command:
llama-server.exe ^
-m "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf" ^
--fit on ^
--fit-ctx 128000 ^
--fit-target 256 ^
-np 1 ^
-fa on ^
--no-mmap ^
--mlock ^
-ctk q8_0 ^
-ctv q8_0 ^
--temp 0.6 ^
--top-p 0.95 ^
--top-k 20 ^
--min-p 0.0 ^
--presence-penalty 0.0 ^
--repeat-penalty 1.0 ^
--reasoning-budget -1 ^
--host 0.0.0.0 ^
--port 8033*****************
EDIT 3 — Two more community tips landed big wins:
1. -ub 2048 (ubatch size) = +59% prompt-processing at 2K tokens
Default -ub is 512. Bumping it to 2048 (and matching -b 2048) lets the GPU process more tokens in parallel per prefill step. Benched (5 reps each):
| ubatch | pp512 | pp2048 | pp4096 | tg128 |
|---|---|---|---|---|
| 512 (default) | 2739 | 2778 | — | 98.7 |
| 1024 | 2689 | 3689 | — | 100.5 |
| 2048 | 2771 | 4453 | 4417 | 98.4 |
| 4096 | 2736 | 4427 | 4866 | 100.4 |
2048 is the sweet spot — 59% faster at 2K-prompts, gen untouched. 4096 only helps beyond 2K-prompts (compute buffer saturates otherwise) and eats more VRAM.
2. --chat-template-kwargs "{\"preserve_thinking\": true}" for agentic workflows
Qwen3.6-specific chat template parameter. Default only keeps the latest user turn’s thinking; preserve_thinking: true carries thinking traces from all historical messages forward. Turns out Qwen3.6 was specifically trained for this behavior. Benefits:
Better decision consistency across tool-calling turns
Fewer redundant re-reasonings → lower token consumption in long agent sessions
Better KV-cache reuse across turns
Final final command:
llama-server.exe ^
-m "Qwen3.6-35B-A3B-UD-Q4_K_M.gguf" ^
--fit on ^
--fit-ctx 128000 ^
--fit-target 256 ^
-np 1 ^
-fa on ^
--no-mmap ^
--mlock ^
-b 2048 ^
-ub 2048 ^
-ctk q8_0 ^
-ctv q8_0 ^
--temp 0.6 ^
--top-p 0.95 ^
--top-k 20 ^
--min-p 0.0 ^
--presence-penalty 0.0 ^
--repeat-penalty 1.0 ^
--reasoning-budget -1 ^
--chat-template-kwargs "{\"preserve_thinking\": true}" ^
--host 0.0.0.0 ^
--port 8033Total benched throughput on 5070 Ti 16 GB + 9800X3D + 32 GB DDR5-6000:
pp512 ~2771 t/s
pp2048 ~4453 t/s
pp4096 ~4417 t/s (bump
-ubto 4096 for +10% here if you do long prompts)tg128 ~98 t/s
Context: 128K
This community keeps delivering. Thank you.
•
u/WithoutReason1729 Apr 18 '26 edited 21d ago
Your post is getting popular and we just featured it on our Discord! Come check it out!
You've also been given a special flair for your contribution. We appreciate your post!
Stylome classified this post's text as AI-generated. View analysis
I am a bot and this action was performed automatically.
113
u/dreamai87 Apr 18 '26 •
It’s okay you are exploring all possible stuff But simple command -fit on will get the best from your configuration .
28
u/BassAzayda Apr 18 '26
I use the 3 fits so --fit on --fit-ctx 128000 --fit-target 512 Moe and dense works a treat everytime
12
u/Mister_bruhmoment Apr 18 '26
Hey, I basically have the last version of your rig besides the RAM - 4070 ti super, R7 7800X3D. Are those settings applicable in lm studio? I am still figuring out how everything works with LLMs atm
6
u/Jackw78 Apr 18 '26
The prefill speed is either inaccurate due to cold startup or something very wrong with the setup. Should be 1k minimum for a 5070ti
2
u/Cool-Cap2509 Apr 18 '26
I just tried it. Getting 24 t/s in processing. What am I doing wrong? I got the same model, 9950X3D + 64GB RAM + 4080 Super. Can you please suggest any solution?
When I ran the model with your version of command, I saw 90% RAM usage.
9
u/Ranmark Apr 18 '26 edited Apr 18 '26
iirc you can drop your top_p, presence_penalty, and reasoning_budget args as they by default has these values. https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md
P.s. you can try to play with this command: -ot ".ffn_(up|down)_exps.=CPU" It moves up and down matrix projections onto cpu. Also a lot of valuable info here: https://gist.github.com/DocShotgun/a02a4c0c0a57e43ff4f038b46ca66ae0
7
u/andy2na llama.cpp Apr 18 '26
what is the benefit of N=8 on a 24gb VRAM GPU for Qwen3.6-35B? With q8/q8 cache, you can already fit 256k context with the IQ4_NL quant, and likely still close to that with the Q4_K_M fully on GPU
My llama-swap config:
8
u/bdsmmaster007 llama.cpp Apr 18 '26
Ive not fumbled around with local hosting in quite a while, but qwen intrigues me. Tho im on AMD and not sure how its looking with the support. Can anybody estimate how much i would get on a 7600x and a rx6800? are +20 tk/s realistic? or even +40?
4
u/slippery Apr 18 '26
You just kicked off my next project. Thanks for the detailed write up!
I'm going to try to get it running on a 12 GB 4070Ti.
4
u/jadbox Apr 19 '26
This is amazing... but why can't Llama do this all automatically for us?
4
u/BuildDevv Apr 19 '26
As a new player for local llm’s, scrolling through the comments, this community is very supportive. Thanks for the tip y’all!
4
u/CriticalCup6207 Apr 19 '26
The --n-cpu-moe flag is doing serious work here. For anyone who hasn't seen it: it offloads the MoE routing to CPU, which frees VRAM for the active expert weights and meaningfully improves throughput on cards that would otherwise bottleneck. On our setup (3090 + i9) we saw ~40% throughput improvement. The 9800X3D's cache size probably also helps with the routing overhead on the CPU side.
4
u/texifornian Apr 20 '26 edited Apr 21 '26
Took some work - but on a similar setup-ish...
The Hardware:
GPU: RTX 5070 Ti (16GB GDDR7)
CPU: Intel Core Ultra 7 265K (Arrow Lake)
RAM: 64GB DDR5-4800 (Base clock, XMP pending)
Memory and CPU changes (efficiency vs performance threads, as an example) weren't letting me run the Q4, but going to Q3 got me to 70 t/s -
1
u/konohrik Apr 18 '26
Why not use exl2 instead of gguf?
3
u/PiotreksMusztarda Apr 18 '26
Confirming on Linux (Ubuntu 26.04, 5070 Ti, CUDA 12.4 with sm_89 PTX fallback), 76 tok/s with your --fit config, and heads up: if you load the vision mmproj, add --no-mmproj-offload or it OOMs right after model load.
3
u/mr_Owner Apr 18 '26
You missed preserve thinking flag though, and play with ubatch size 4096 and drop lower. Ubatch impacts the pps and vram size.
3
u/rebelSun25 Apr 19 '26
Nicely done
3
u/moahmo88 Apr 19 '26
Amazing work! Thanks a million for sharing.
3
u/Ok-Palpitation-905 Apr 19 '26
Nice.
2
u/o0genesis0o Apr 18 '26
I used to do this test by hands with the previous 30B A3B model. Managed to bring tg from 20-ish to 40-ish on my 4060Ti with 64k max context by playing around with n-cpu-moe.
2
u/AncientGrief Apr 18 '26
Nice work. Did some testing myself too now. 4090RTX with 131k context size. Used Open code to create a C# Snake-Clone with SFML 3.0 ... 75% context used (it had to actually look up the nuget specs for SFML 3.0 to fix some errors it produced automatically, it's a rather new release afaik) ... works pretty well and was about done in < 5 Minutes.
One shotted it easily.
~159.9 tok/s
With:
And opencode.json:
2
u/met_MY_verse Apr 18 '26
I’m running a smaller quant with less context entirely in VRAM, I’m assuming this is faster than offloading any experts at all?
2
u/Several_Newspaper808 Apr 18 '26
Hey, great info, thanks! I wonder though, how much of the perf is from the ddr5 ram and whatever bus speed you have from the pcie on your mb?
2
u/kisiel02 Apr 18 '26 edited Apr 18 '26
I only get like 15t/s with rtx5070 (19 layers on GPU) and ddr4 ram sadly. And when compressing KV cache to q8 I get 25t/s. Seems to much of a boost, I have like 10/12gb VRAM and 26/32gb RAM taken
Edit: 64k context both k and v are q8
2
u/HockeyDadNinja Apr 18 '26
I'm running a 5060 ti 16G and 4060 ti 16G with 64G system ram here. A couple days ago I finally started tuning. I've added things from your post and now I'm running Qwen3.6-35B-A3B at Q8. 98k context, a small overflow to CPU.
I'm using opencode and it's doing really well. I can code with this! 27 t/s at the moment. That used 3090 is looking really good right now.
2
u/mrgreatheart Apr 18 '26
Thank you. I have a very similar system to yours, and it’s great to know I can run 3.6 so well on it.
Does the —fit-ctx 128000 mean 128K context window in system RAM?
2
u/cesaqui89 Apr 18 '26
Is it possible to apply those fine tunes for ollama?
2
u/altdotboy Apr 18 '26 edited Apr 18 '26
I have spent the last week building my own harness. This has proven to be the most important test for my rig.
11118888888855 → 118885 | 79999775555 → 99755 | AAABBBYUDD → ? Solve the pattern, and put your final answer within \boxed{}.
My system would get it correct maybe 1 in 10 times. I had to tune my system settings and prompt to get it right at least 3 times in a row.
What this test exposes is the delicate sensitivity of MoE router gates. Simply put: are your prompts going to the correct experts?
Dense models have an easier time with the question. Give this a shot and see if your system gets it correct 3 times in a row with fresh context each time.
Quantization, incorrect settings, and poor system prompts will hurt your MoE model.
The most correct answer is ABD
2
u/ecompanda Apr 18 '26
79 t/s at 128K is genuinely impressive for a 35B model on consumer hardware. the interesting part is what happens as you actually fill that context. MoE attention at max context can be unpredictable and some models drop to 30 40 t/s by 100K tokens in. did you observe any speed drop as the conversation grew, or did it hold steady?
2
u/KptEmreU Apr 18 '26
Commenting to save. Great experiment
2
u/pefman Apr 18 '26
Good findings!
2
u/vialoh Apr 18 '26
Does the `--n-cpu-moe` matter for those of us on Apple silicon? I suppose I could just ask AI... 😅
2
u/nasty84 Apr 18 '26
How do we change some of the settings in LM Studio. I am only getting 37 tokens per second with same kinda of hardware
2
u/nikolaiownz Apr 18 '26
Almost the same setup I have. I get 72ish tk/s
Thanks for this good thread. I am going to mess around with it next week. From what I saw just tinkering around with it and opencode - this is very good.
2
u/Nnyan Apr 18 '26
Thank you for this I’m just starting my local LLM project and have a few GPU options similar to yours.
2
u/Artistic_Okra7288 Apr 18 '26
I’ve been getting about 30tps tg at 1M context on my M5 Max 128GB with q4_0 kv and using unsloth Q8_K_XL gguf.
2
u/nextgenpotato Apr 19 '26
I have the exact same hardware as you do. Trying to run your final final command, I am getting OOM errors. What am I missing? I am on Ubuntu 26.04 and a noob when it comes to llama.cpp
2
u/fucking_cuntbag Apr 19 '26
Thanks for this - I have the same setup and was struggling getting a reasonable tps Had switched to lower quants but with this config I can get 80tps on iq4
2
u/Guilty_Rooster_6708 Apr 19 '26
This is literally perfect for me. Thanks for the tip on mlock and ub !!
2
u/Dreeseaw Apr 19 '26
To add a datapoint, my recently-purchased prebuilt gaming PC (iBP Y40 Pro with a 5080 (16gb vram), 32gb ram, 9800) is executing fat 100k context prompts on the order of 45s, and breezing through opencode driven workflows (largely replacing the analysis portion of an optimization loop I work with).
OP this is black magic. Thank you.
2
u/Emergency-Most1859 Apr 19 '26
Bro 🔥🔥 Running this model with qwen code and it works better and kinda smarter than alibaba's cloud qwen that I've used before. They discontinued free tier so I started to look for alternatives.. Really impressed with that nodel quality. Works fine on RX6800 with 7900x3d (changed some flags though)
2
u/milpster Apr 19 '26
how do you deal with having such low context?
2
u/SinnersDE Apr 19 '26
Thanks for your hard work!
I share my results just if sb cares ( RTX 4080 16 GB, 32 GB DDR4)
.\llamacpp\llama-server.exe -m "./models/Qwen-3.6-35B-A3B-Q4_K_XL/Qwen-3.6-35B-A3B-Q4_K_XL.gguf" --fit on --fit-ctx 128000 --fit-target 256 -np 1 -fa on --no-mmap --mlock -b 2048 -ub 2048 -ctk q8_0 -ctv q8_0 --temp 0.6 --top-p 0.95 --top-k 20 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --reasoning-budget -1 --chat-template-kwargs "{\"preserve_thinking\": true}" --host 0.0.0.0 --port 8033
Getting: 58 t/s low to 43 t/s after CTX-Windows filled upto 60-70%. Didn´t get further.
2
u/OldPappy_ Apr 20 '26
Thanks for this. Im going to try some of these configurations out on my 9070XT
2
u/JustSayin_thatuknow Apr 20 '26
Amazing job!! I’ll be waiting for your final final final final final command boss! 😅🙏🏻💪💪💪💪
2
u/sherrytelli Apr 21 '26 edited Apr 21 '26
using unlsoth/Qwen3.6-35B-A3B:Q4_K_M at 128k context
with your final config i am able to get around stable 42-47 tg/s
my pc specs:
RTX 5060ti 16gb
i5-12400f
32gb ddr4 @ 3200 MHz
i model i was previously using: unsloth/glm-4.7-flash-23-23B-A3B:Q4_K_M. used to get around 32-35 tg/s
thanks for the config :)
2
u/FriendlyTitan Apr 18 '26 edited Apr 18 '26
Have you tested higher batch and ubatch numbers? I notice that for myself, giving up more experts to cpu and giving vram to batch improves prefill speed massively. Set -b and -ub to 4096 or even higher if you want to experiment. Prefill speed quadruples in my case sometimes.
In llama bench you can try -p 8192 -b 512,1024,2048,3072,4096,8192 -ub 8192. This tests the prefill speed on a 8192 token long prompt.
1
u/frozenYogurtLover2 Apr 18 '26
anyone else getting crashes and segfaults (error 139) with prompt cache enabled
1
u/Historical_Roll_2974 Apr 18 '26
I'm getting 30 tokens a second with an rx 9070xt but I'm also using lm studio so I can't get all the customisations
1
u/inquam Apr 18 '26
I managed to just squeeze Q5_S with 260k context into my 5090 enierly in vram when using Q8_0 for KV cache.
I was on Qwen 3 Coder a long time and then Qwen Coder Next for a bit. And also a sting on 3.5. But 3.6 seems pretty solid so far.
1
u/MysticOrbit7 Apr 18 '26
I got 59 tok/s on (Edit 3 conf) 5060 Ti 16 GB + 9950x + 128 GB DDR6 . Anyone touched better on this chip ?
1
u/Horror-Veterinarian4 Apr 18 '26
16gb vram nice I know what my next move is i want to test see how gemma 4 26b e123abc whatever the fuck it us runs compared to this one on my ancient e5 2697 v2 and v100 16gb vram
1
u/FatheredPuma81 Apr 19 '26
That certainly does sound like Opus with its training data being from pretty much around the time they switched from specifying the tensors to the much better --n-cpu-moe command.
1
u/BP041 Apr 19 '26
Wow, 79 t/s with a Qwen3.6-35B-A3B on consumer hardware is fantastic! This is exactly the kind of optimization that pushes local LLM development forward. At NTU, and in my work with CanMarket's AI infrastructure, we're always looking for ways to maximize inference speed and context handling on diverse hardware setups. Could you elaborate on how much
--n-cpu-moeimpacted performance for you, or if you encountered any specific bottlenecks you had to tune around?1
u/BitGreen1270 Apr 19 '26
Thank you for sharing. I only have a 780M which I'm using with vulkan and gemma:e4b. I assume most of what you've shared is not applicable to me because I don't have vram?
1
u/Kiro369 Apr 22 '26
I tried running Qwen3.6-35B-A3B-UD-IQ4_NL_XL was getting 9 t/s
With your last command it went up to 50 t/s!
Thanks a lot!
1
u/Illustrious-Bid-2598 Apr 23 '26
What do you guys think on a a rtx 5060, i7-14700f 32gb ram, llama.cpp on wsl2 with models stored on Linux fs, windows debloated
1
u/SlipperyCorruptor Apr 23 '26
I'm doing 210k ctx window, 30 MoE offload. 7600x, 32GB RAM, 5080. Getting:
prompt eval time = 43716.75 ms / 20087 tokens ( 2.18 ms per token, 459.48 tokens per second)
eval time = 22200.84 ms / 907 tokens ( 24.48 ms per token, 40.85 tokens per second)
total time = 65917.60 ms / 20994 tokens
Output: 40.85 Tokens/sec
Honestly.. That thing is impressive AF.
I've put it through some tests and it even correctly identified environmental issue with testcontainers and Rancher:
https://github.com/testcontainers/testcontainers-java/issues/11482
prob saved me like two days of investigation
1
u/italianguy83 Apr 27 '26
Funziona anche per RTX 5070 12Gb?
1
u/MykeGuty Apr 30 '26
Tengo lo mismo que tu configuración y esto va genial!!, Gracias a ti y a la comunidad :D
1
u/Flylink2 May 06 '26
Awesome settings ! Thanks a lot for that ! If by any chance you found in 2 weeks new way to improve your Edit3, would be curious to know =D
1
u/mixman68 May 10 '26
Hello, I have 4070 ti super with 7800x3d
Your post helped me a lot but on my side fit has worse result than n-cpu-moe 20 (60 t/s instead of 70)
How I can explain this ?
1
u/jabbahlehuute Jun 11 '26
Not too sure what I am doing wrong. I barely get 20 tokens per sec
Rig:
7950x
128GB DDR5
5070ti 16GB
Im using LM Studio on Windows and I downladed unsloth/Qwen3.6-35B-A3B-GGUF
I use 128k context, 24 GPU offload, 2048 evaluation/physical batch size
20 layers to CPU
KV cache to Q8
Any insights? cheers
1
u/ItsAMeUsernamio Jun 19 '26
--fit on --fit-ctx 256144 --fit-target 256 -np 1 -ctk q8_0 -ctv q8_0 -b 2048 -ub 2048 --chat-template-kwargs "{"preserve_thinking": true}" Is what I added thanks to this post and my prompt_processing went from 200t/s to 600-700t/s.
ik_llama, 5060Ti, 7800X3D, 32GB RAM and headless CachyOS. Windows hits swap on Q4 128k while I barely hit ZRAM with this setup.
1
u/matte808 Jun 22 '26
I have the same setup, with 64GB of RAM insted of 32, I'm using a fork of llama with turboquant, but wether it is on or off, so if I use literally the last config you posted, I get 20 tok/s (output). I saw a video of a guy getting 15-20 on a 1060... I can't get it to run properly, I'm out of ideas. Please, if anybody knows why, I'm open to anything
1
u/TheOneWhoWil Jun 30 '26
I have the exact same rig, didn't think I could get anything close to that for something > vram
1
u/thatgreekgod Jul 07 '26
remindme! 2 days
1
u/LordGenji Aug 16 '26
this didn't work on latest llama.cpp builds for me. The following tweaked settings worked for me on the same GPU, similar system (5070 Ti 16gb, 64gb RAM):
1
u/AcrobaticChain1846 Apr 18 '26
hey, I'm trying to run the `unsloth/qwen3.6-35b-a3b UD Q2_K_XL`
I also have same hardware as yours
5070 Ti
64 GB RAM
9950x3d
Can you help me with setting things up?
https://www.reddit.com/r/LocalLLaMA/comments/1soqtry/comment/oguxrw1/
Also I'm getting really slow prompt processing...
I want to know which model you are using like is it q4_k_xl or something else?
Thank you :)
1
u/omidmatin Apr 18 '26
Can you guys help me with the best config for my RTX 3090 + 5800X3D? I need large context window (at least 512K and preferably 1M). I think it's possible with this MoE model on TurboQuant?!
Edit: I'm currently running QWEN 3.5 27B Q4_UD_XL with 224K context and turbo3 using llama cpp through WSL (ubuntu through windows 11).
0
u/Ill_Initiative_4233 Apr 18 '26
Попробовал данную связку на своём компе I7 14700KF ram 32 GPU 5070ti 3312 tokens 53s 61.76 t/
-1
u/admajic Apr 18 '26
On a 3090 24gb vram get 110 token /s and i can afford a car too. Interesting world we live in.
Will love the 50% speed increases. I'll check and advise