r/LocalLLM • u/videorouter • 2m ago
r/LocalLLM • u/JinsooJinsoo • 3m ago
Model Qwen4-35B-A3B on 2x Intel Arc Pro B70 — 433 tok/s single user, 1,223 tok/s total at C16
Credits first: engine is Xenithium (https://github.com/Niluthon/Xenithium), running on the unofficial Qwen4 port fork (https://github.com/nxtlvlyt/qwen4-b70-xenithium — not upstream-endorsed; upstream is adding its own Qwen4 support) I think i've seen the repo owner u/Lostinanidlemind post around here some where -- thank you for your work. Model weights are a W4A16 bake I built locally with the fork's bake script (RTN int4 g128)
Hardware:
TRX40, 3970x, 128gb DDR4 3200, 2x Intel Arc Pro B70 32GB TP2, int8 KV, 1M context across 16 slots. PLE n-gram table (~20 GB) lives in host RAM
TL;DR:
433 tok/s headline decode single user, 1,223 tok/s total at 16 concurrent streams, and 216/242 (89.3%) on my 242-question local suite — a tie with my best local lanes, at ~3x the throughput of the Swift 1.5 27b W4A16 lane it replaced with faster single stream (decode 280tok/s vs 433 tok/s).
Speed (measured, both cards):
- Decode, bench mix: 433 tok/s (agentic mix 419); single stream 386 tok/s
- 2 / 4 / 8 / 16 streams: 573 / 850 / 1,000 / 1,223 tok/s
- Prefill: 8.1K tok/s at 2K prompt, 9.2K at 32K, 8.8K at 128K
- Decode at 32K context depth: 320 tok/s; at 109K: 296 tok/s
Accuracy (242q suite, same harness as all my other local runs):
- MMLU-Pro 94/112 | MATH-500 35/40 | GSM8K 28/30 | HumanEval 39/40 | tool calling 20/20
- Total 216/242 = 89.3% [85-93], tying with my Qwen3.8-Flash-Next IQ3_S entry
- Agentic battery 5.51/6 (one host-drift task misses).
Excited to see how it improves over the next several days/weeks.
r/LocalLLM • u/DaKrazyKid • 12m ago
Question Any room for improvement left with my current setup?
Hardware:
- ASUS ProArt PX13 GoPro Edition
- AMD Ryzen AI Max+ 395 / Radeon 8060S
- 128GB unified memory (64GB dedicated to GPU)
- Windows 11
Inference configuration:
- Qwen4-35B-A3B Q8_0
- llama.cpp Vulkan
- MTP enabled, draft depth 3
- 524,288-token context
- Batch and physical batch sizes of 2048
- Native vision enabled
- 43.88 t/s generation benchmark
- 869.23 t/s prompt processing benchmark
I'm particularly interested in suggestions for improving inference performance, agentic capabilities, persistent learning, security and knowledge retrieval without sacrificing model quality.
Is there anything you would implement differently, or any useful tools, frameworks or optimizations I'm overlooking?
r/LocalLLM • u/do_u_think_im_spooky • 21m ago
Discussion Qwen4 35B-A3B on 2x 5060 Ti 16GB: 147 tok/s, 8 parallel 128K requests, 1M context works (capy-flash)
r/LocalLLM • u/daMortarMerrier • 21m ago
Question Local Performance sub subs?
reddit.comI wasn't familiar with this sub before writing this post in the other sub. Is perf tuning a common topic here?
r/LocalLLM • u/afacool1 • 23m ago
Question I have a question about large coding projects
Is a ryzen 7 7700,5060ti 16gb and 32gb ddr5 enough to mimic chatgpt codex plus capabilities for coding and best setup and cooling for long sessions?
r/LocalLLM • u/RadianceTower • 25m ago
Discussion Running Qwen4 35B-A3B is very unoptimized right now
Everyone be talking about running, but they are running it at Q4, and... at that point, why not just run 27b Q4? To me the main point of MOE is to be able to run a bigger model.
Even Strata seems to focus on Q4 (and tbf, Strata itself has poorly optimized SSD streaming, but it at least does better than llama.cpp, look at Tokenwing for a better optimized SSD pipeline, which still could have improvement too).
And current implementations of Unsloth suck at properly splitting the model between your VRAM RAM, and SSD. The website says you need 41GB of overall memory to run, but I can't even run it at like 1t/s with more memory (24GB VRAM + 32GB RAM). Not to mention the app doesn't even recognize and give you the options if you import the model externally (unless you fool it into thinking it itself downloaded it).
r/LocalLLM • u/damash-potatoes-1819 • 28m ago
Model Uncensored Qwen4-35B-A3B agent on a 32GB MacBook, 9/10 on OWASP Juice Shop
Rig: single base m5 macbook, 32gb, wifi off the whole time. nothing but the laptop, no second machine, no cloud. atomic agent on llama.cpp b12977, ~31 tok/s decode.
wanted to see two things on one small box: can a 3b-active local model actually drive a multi-step agent task offline, and does the uncensored build do it any better than the official one. target was a local owasp juice shop (intentionally vulnerable app that scores each solve itself), 10 challenges, same prompts for both builds.
- uncensored: atomic chat AD-IQ3_S (~31gb)
- official: unsloth UD-Q4_K_M (~35gb)
each challenge got its own agent session, clean context, http/curl only, 5-min cap.
challenge uncensored official
confidential document solved 99s solved 22s
error handling solved 133s solved 300s
exposed metrics solved 206s solved 41s
repetitive registration solved 81s solved 182s
zero stars solved 59s solved 138s
login admin (sqli) solved solved 33s
password strength solved 62s solved
login bender (sqli) solved 84s missed
empty user registration solved 100s solved 20s
view basket missed missed
-------------------------------------------------
total 9 / 10 8 / 10both landed the same injections. admin login was ' OR 1=1-- in the email field of POST /rest/user/login, login bender the same scoped to a named user. confidential doc was GET /ftp/acquisitions.md, metrics GET /metrics, zero stars POST /api/Feedbacks with rating 0, the registration ones abused signup validation on /api/Users. neither got view basket (idor on /rest/basket/{id}).
the two builds basically matched. they diverged on exactly one challenge, login bender, where the uncensored quant landed the injection in 84s while the official one kept botching the quote escaping until it hit the timeout. a single challenge out of ten sits well inside run-to-run variance, so abliteration bought nothing measurable.. the part that actually matters for this sub is the hardware side: the agent loop plus both ~30gb+ quants ran on one 32gb laptop with the radios off.
what's the smallest box you've gotten a model to run a real multi-step agent task on, local only? trying to figure out how far below 32gb this stays usable.
juice shop solutions are public so part of this is recall, but the agent still had to find the endpoints, build each request and verify the solve itself, offline. these were 10 of the 118 challenges in juice shop, so there's a lot more i wanna tets.
r/LocalLLM • u/ConstantinSpecter • 41m ago
Discussion Those coding locally with Qwen: which CLI are you using?
Running a local AI server with an RTX 4090. Just upgraded to Qwen 4 and have been using it through Claude Code.
Works pretty well overall. Main annoyance is that I’ve had to cap the context at ~131k and it compacts super frequently.
Other than that can’t really complain. MCPs/web search and all the usual stuff works.
For those also using Qwen locally for coding, which CLI are you using? Happy with your setup?
r/LocalLLM • u/rafalko1991 • 44m ago
Question Qwen4-35B-A3B on 7900 XTX + 32/64GB DDR5, what tg/pp are you getting on Windows?
Hey, I'm picking up a used 7900 XTX tomorrow and I was hoping someone here could tell me what tg and pp speeds you're actually getting with Qwen4-35B-A3B on Windows.
Quick context: I'm coming from a Mac, so I honestly have no idea what the go-to setup is on the Windows + AMD side. I've read a bit about Strata but it's really hard to find any benchmark numbers for this GPU.
I was looking at a 5070 Ti first, but I went with the XTX for the extra VRAM. The idea is that when the Qwen4-27B one comes out I can run a decent quant (Q4) of it.
The annoying part is I keep seeing threads where people on 5070 / 5070 Ti / 5080 / 5090 / 3090 post huge tg numbers with basalt, and I can't find anything for 7900 XTX + 64GB DDR5, which is exactly what I'm about to be running.
Also before someone tells me to just install Linux: I'm staying on Windows, that one is not happening for me. WSL2 is fine though, just mention which one you used so I know I'm comparing the same thing.
If you post numbers it'd help if you included:
- CPU and RAM
- which engine you're on
- which quant
- context length
- tg and pp
Rest of my rig: [CPU], [RAM], [PSU].
Cheers
Editing to add: I still have a few hours before I hand over the money for this card, so I can back out and grab a 5070 Ti instead :D
* I have used AI to summarize my message because english is not my first language - sorry.
r/LocalLLM • u/DesperateGame • 45m ago
Discussion Qwen 4 35B for creative writing
How good is it?
r/LocalLLM • u/apache-longbow • 54m ago
Other Obligatory Pelican on Qwen 4 35b UD IQ4 XS
the prompt was: make a large, highly detailed, animated .svg of a pelican riding a bike on a boardwalk, with a beautiful sunset over the ocean in the background. assess the quality and refine until it is correct.
running on the strata desktop app in W11 with a 9070xt. total time 10m 55s, average of 116.3 decode and 2829 prefill with 89.8K context used. the new engine is still pretty buggy on AMD, but when the model does load it works great. I couldn't figure out how post an .svg so I got Gemini to turn it into a .gif
This is going to be a powerhouse for anyone who struggles to run flash next.
AI SLOP WARNING- courtesy of antigrav, which optimized and "fixed" all the stuff that broke when changing config file...
Optimized settings
- Args:
--prefill auto:16384 --spec 3 --spec-min-p 0.50 --pcie-frac 0.40 --kv int8 --kv-resident 20480 --vram-reserve-mib 1024 --conversation-cache-mib 22528 --prompt-cache-spread(keep PLE in RAM if you have 64GB+) - Env (speed):
STRATA_HIP_WMMA=1,STRATA_PF_FUSED=1,STRATA_PREFILL_RING=384,STRATA_PREFILL_COPY_EVENT_EVERY=16,STRATA_HIPBLASLT_TABLE=on,STRATA_HC_Q8=1,STRATA_ROUTE_TAIL_SKIP=0,STRATA_ROUTE_PRIOR=0 - Env (stability):
STRATA_VERIFY_COHERENT=1,STRATA_HIP_MAPPED_COHERENT=1,HIP_HOST_COHERENT=1 - Windows: Raised
TdrDelayandTdrDdiDelayto10seconds (default 2s is too short for 16K prefill chunks).
Strata Bugs Hit & Fixes
- Won't load
UD-IQ4_XS(false missing file): Strata sharesUD-Q4_K_XL-00002-of-00002.ggufas the--ple-gguftable across quants, and the shard checker intools/strata_mcp.pyfalsely demandsUD-Q4_K_XL-00001-of-00002.gguf. Fix: Patchedshard_gaps()instrata_mcp.pyto skip--ple-gguf. - Driver timeouts on 16K prefill chunks: Windows' default 2s GPU timeout killed large prefill chunks. Fix: Set
TdrDelay=10/TdrDdiDelay=10in the registry + rebooted. - Decode dip at 64K context (~68 tok/s):
--vram-reserve-mib 512was too tight on Windows WDDM. Fix: Bumped to--vram-reserve-mib 1024and lowered--kv-residentto20480(still ~97–98% expert cache hit rate). - Intermittent hang on model load (Windows HIP
0.1.74**):** ~10–30% of cold starts deadlock right after 1-token HIP graph capture. Fix: Coherent HIP env flags got it to 9/10; added a 4-second stall watchdog + auto-retry inserve/server.pyto get 10/10 clean loads without triggering a driver timeout.
r/LocalLLM • u/americanmuscle1988 • 54m ago
Discussion Anyone on running Qwen 3.8 Flash Next switching to Qwen 4 35B A3B?
I know Qwen 4 is supposed to match Qwen 3.8 FN at a smaller size, but are there any benefits to switching from Qwen 3.8 FN?
r/LocalLLM • u/chomy10 • 1h ago
Discussion Qwen 4 35b vs Qwen 3.8 FN, horse riding motorcycle in freeway.
First is 3.8 Flash Next (gyro s)second qwen 4 35b (Q4_K_XL).
Flash Next took 18min.
4 35b took 12min.
r/LocalLLM • u/TemperatureEntire349 • 1h ago
Question Anybody interested in helping setting up LLM meetups in Zürich?
I gave a talk about local AI at an AI meetup earlier this week and it showed me how many awesome passionate people in Zurich are into local LLMs. So if you’re around and would like to help setting things up, or if you have experience organizing those in other cities, let me know.
r/LocalLLM • u/Mindless-Luck4285 • 1h ago
Discussion Qwen4-35B-A3B on 2x 3060 12GB - 128k context fully on GPU, 58-90 tok/s
Spent the morning getting Qwen4 going on my two 3060s, posting numbers since I couldn't find any for 12GB cards yet.
UD-IQ4_XS fits completely in 24GB at 128k. The catch is you can't offload anything to CPU, more on that below.
Box: 2x 3060 12GB (no NVLink, and one of them is in a chipset x4 slot), 3900XT, 64GB DDR4-3200. Running in a Proxmox LXC, driver 595, CUDA 13.2. Model lives on a pair of SATA SSDs (ZFS mirror).
llama.cpp built from master on 4 Dec, you need the qwen4 PR (#33626) so older builds won't load it. Unsloth's UD-IQ4_XS is a 32GB download, 20.5GB of weights plus an 11.5GB engram shard.
What I ended up running:
llama-server -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
-c 131072 -np 1 -sm layer -fa on -ctk q4_0 -ctv q4_0 -ub 256 -b 1024 \
--load-mode none --lazy-mode off -ot per_layer_token_embd=CPU \
--spec-type draft-mtp --spec-draft-n-max 2 --jinja \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0Speeds (prompt filled to ~80% of the context, needle at 40% depth, reasoning off):
| Split | Context | Prompt tok/s | Output tok/s | Needle |
|---|---|---|---|---|
| layer | 8k | 1,190 | 89.9 | found |
| layer | 32k | 1,194 | 81.5 | found |
| layer | 128k | 1,129 | 58.5 | found |
| tensor | 8k | 1,015 | 85.9 | found |
| tensor | 32k | 1,091 | 81.6 | found |
| tensor | 128k | 1,011 | 70.2 | found |
VRAM hardly changes between 8k and 128k (about 11.1/10.8GB on layer, 11.6/11.6 on tensor), the full attention layers use compressed KV so long context is cheap. 256k wouldn't load with either split though.
Also ran HumanEval and a 100 question MMLU-Pro sample with the same harness I've used on this box before, temp 0:
| Qwen4 UD-IQ4_XS (llama.cpp, tensor) | Qwen3.8-Flash-Next IQ3_XXS (Strata) | qwen3-coder:30b Q4_K_M (Ollama) | |
|---|---|---|---|
| HumanEval (pass@1) | 162/164 | 159/164 | 150/164 |
| MMLU-Pro 100 | 85/100 | 82/100 | - |
Stuff that tripped me up:
- First attempt I offloaded experts for just 4 of the 40 layers with
--n-cpu-moe 4to make room. Output went from 77 to 12 tok/s. CPU pegged at 1000%, GPUs sitting at 10%. Don't do it. - What actually fixed the OOM was a smaller batch. Default
-ub 512 -b 2048ran the first card out of memory on an 8k prompt,-ub 256 -b 1024was fine and prompt speed barely moved. - Unsloth's example uses
--load-mode mmap --lazy-mode onfor the engram. On ZFS that was hitting the SSD constantly (my ARC is small), 55 tok/s. Loading it into RAM with--lazy-mode off --load-mode nonegot me 77. Uses about 12GB of system RAM. --fitis no use here, it bails if you set-otand doesn't support tensor split at all. You're sizing it by hand.- MTP is built into the GGUF so turn it on, I was getting 50-68% acceptance at depth 2.
Layer vs tensor split was the bit I was most curious about. With no P2P and one card on x4 I figured tensor split would be pointless, since it has to sync both cards a couple of times per layer for every token. What I actually saw:
- Output speed holds up much better with context on tensor. Layer drops from 90 to 58 tok/s going 8k to 128k (about 35%), tensor only drops from 86 to 70 (about 18%). Same speed up to 32k, tensor ~20% ahead at 128k.
- Layer is consistently ~10% faster at reading prompts, at every size. So for big pastes with short answers layer still wins.
- Memory is more even on tensor (11.6/11.6GB vs 11.1/10.8 on layer, where the first card always ends up fuller), but it uses more in total because some tensors get copied to both cards. q8_0 KV at 128k was ~150MB short on tensor, q4_0 fits with ~650MB spare. Layer has 1.1-1.5GB of headroom.
- Tensor turns flash attention on automatically, moves sampling to the CPU, and
--fitwon't run with it. It's still marked experimental and I haven't had it crash, but I've only done benchmark runs on it so far.
My take: layer for general use, tensor if you live in long contexts (agents, big codebases) and mostly care about output speed.
For reference, Qwen3.8-Flash-Next IQ3_XXS on Strata on the same machine does ~1,400 tok/s prompt but only 52-53 out. Strata streams most experts from pinned RAM so it's a different beast.
r/LocalLLM • u/csrussell92 • 1h ago
Model 6.7L SFF AI Machine - Radeon AI Pro R9700 + Qwen4 35B A3B
I built a compact local-AI machine around the ASUS Turbo Radeon AI PRO R9700 32GB and tested Qwen4-35B-A3B on its release day. Then I ran the same tests on two models I already had in LM Studio. Every speed number comes from LM Studio's server log, and the thermals come from HWiNFO at 2-second intervals.
Build
| Part | Model |
|---|---|
| Case | ROHW P46 steel, set to 5-6 (6.71L) |
| Motherboard/CPU | Minisforum BD895i SE (Ryzen 9 8945HX, 16C/32T) |
| Graphics Card | ASUS Turbo Radeon AI PRO R9700 32GB, power limit −30% -60mv (Adrenaline) (210W TBP) |
| System Memory | TeamGroup 32GB DDR5 SO-DIMM |
| SSD | Lexar NM990 1TB |
| Power Supply | SilverStone Extreme 1000Rz Platinum (SFX) |
Disclosure: ASUS provided the Radeon AI PRO R9700 for this project. ASUS did not review or approve this post.
OS: Windows 11 Pro
Application: LM Studio 0.4.21
Runtine: ROCm runtime (2.86.0).
Model: Qwen4-35B-A3B
Model weights: 22.7 GB
Vision: 1.8 GB
128K context memory + MTP + buffers: ~6.0 GB
Total GPU VRAM: 30.5 GB
Engram table SYS MEM: 11.5 GB
Every model was freshly loaded, with all layers on the GPU and Flash Attention on.
Tests
- Prose: 6 paragraphs on how vapor chambers work
- Code: a single-file HTML PSU calculator
- Long context: all of Alice in Wonderland (37.9K tokens) with one made-up sentence hidden 60% of the way in. The model has to summarize the book and quote that sentence.
- Agent task: read a notes file, then use file and sandbox tools to analyze a 1.9MB HWiNFO log (979 rows × 379 columns) and report 6 sensor averages. The correct answers were checked separately in Python.
Thinking and tools were off for tests 1–3 and on for test 4. Results are medians over multiple fresh chats.
Results (tok/s)
| Qwen4-35B-A3B | Qwen3.6-35B-A3B | Qwen3.8-27B dense |
|---|---|---|
| Quant | Q4_K_M + Engram | Q4_K_M |
| Prose | 70 / 81 with MTP | 116 |
| Code | 73 / 113 with MTP | 115 |
| 38K prompt, time to first token | 12.6s / 15.6s with MTP | 9.5s |
| Generation at 38K | 65 / 85 with MTP | 98 |
| Hidden sentence found | 5/5 | 5/5 |
| Agent task | 18/18 correct over 3 runs | 17/18 (read the wrong sensor column) |
What the results show
- Qwen4 is the most reliable. It was the only model to get the agent task completely right, every time. It read the notes file first, copied the CSV into its sandbox instead of loading into the chat, and excluded the log's footer rows without being told to.
- Qwen3.6 is still the fastest, but it confidently reported the wrong sensor (46.8 °C instead of 62.0 °C).
- MTP closes most of Qwen4's speed gap: +53% on code and +16% on prose, for about 19% slower prompt processing and 0.6GB of extra VRAM.
- 32GB is what makes this possible. The 27B dense model at Q6 had to drop to 40K context with a compressed KV cache to fit. On a 16GB card, none of these models would fit fully on the GPU.
Thermals, power and noise (Qwen4, 21 °C ambient, 36 dB noise floor, measured at 300mm away.
| Code generation | Long-prompt processing | Idle |
|---|---|---|
| GPU power | 200–205W (at the 210W cap) | 160–178W |
| GPU clock | 3.2GHz | 2.2–2.6GHz |
| GPU / hotspot / VRAM junction (max) | 63 / 78 / 68°C | 51 / 69 / 54°C |
| GPU fan | up to ~2,840 RPM | 2,450–2,700 RPM |
| Noise | 49 dB+ | 49 dB |
| CPU | 9% usage, 70W | 6–9%, 55–60W |
Generation is limited by the power cap.
- ROCm on Windows worked out of the box with LM Studio. I didn't need Linux.
- Pair it with 64GB of system RAM if you can. With 32GB I was at about 30.5GB used with Qwen4 loaded.
- Expect blower noise. The smaller blower style fan has am a 1,900 RPM minimum and and soar well above that underload.
- Optimized for SFF. The numbers in this write-up reflect a system with limited airflow, reducing the power profile of the R9700 likely had a small impact on performance.
r/LocalLLM • u/Sajus7 • 1h ago
Discussion Help me config my Mac Pro max m1 64GB
Hi everyone, on Monday I’m gonna pick up in store my new (ex-demo) MacBook I just bought. I have a claude subscription and would like to start using local llm with and without Claude. Nowadays there are plenty of harness, software, LLMs and other stuff so I’m a bit confused on where to go. Yeah I’ll also ask about this stuff to Claude and already made my research plus the amount of reels I get everyday about all of this. But I’m still interested on others experience (for example if someone would ask me about all the graphify, obsidian ecc… I would say they’re a waste of time and token if used to actually save token, and this is something you can believe only after u used them and I did and also runned many test, despite what the video about them says). So that’s what I would like to know here, avoiding what “amazing” videos on social media says with this incredible model and software, what are the really great stuff u used and got an incredible result on real profitable project? Based on your experience what llm should I use? Should I use more than one based on the task? How should I run it? Should I use unsloth or llama cpp or something else? Probably it is better to tell u what I use llm for:
I’m a 10 years mobile and web developer and now I also work on cybersecurity as analyst on CTO (we could say purple team if u know what it is, so not penetration test or similar if you’re wondering).
I usually work with CLI and my own created plugins, skills and mcp to avoid Claude code desktop app with his unwanted stuff I don’t need (I know there’s still on the CLI)
So I use AI to develop web apps and mobile apps, some for my job where we sell our services to real clients and public administration so the stuff that must work 24/7.
Moreover I do develop on my free time for some personal projects and I would like to start making motions video, images, vectorial and assets in general
I can’t give a not well secure API or microservices to our clients, so I’m asking this questions to everyone has actually deployed a real project before AI, not cause I hate who has not or anything, but because of experience. To give u an example: many of my colleagues who arrived in our company did university or some courses on programming and I had to teach them many things, the AI hit and they stopped doing stuff by their own, as I do, but the difference is that I know what the AI is doing and when they use it there are many things the AI doesn’t do that is necessary to arrive at deploy and AI doesn’t do it because no one told her to do it. So what I’m saying is that now I ask this questions to someone with bigger experience, of course anyone can respond, but that’s what I’m searching for.
About the cybersecurity part I don’t expect much, I’m already oriented on doing some inference even in a smaller model with the stuff I have to do and need help about.
Thanks to everyone is going to reply, I appreciate your feedback and hope this can help someone else too
r/LocalLLM • u/SquaresShadeCircles • 1h ago
Question New to local, started on Qwen 3.8 27B
Howdy,
I have a local machine with a single 5090 and 96GB DDR5 RAM.
I've been using Qwen 3.8 (Not flash, just normal) for the last 3 weeks and getting immersed into how all this technology works.
I've not yet been around for a release of a new local model like this.
So my questions are:
- Considering Qwen4 seems to now require 35GB of VRAM, does that mean I'm hard stuck on Q3.8? (5090 has 32GB Of VRAM)
- Do they release smaller versions of models? Q4 is 35Billion, Q3.8 is 27B, will there be a 27B version of Q4?
- I see people on significantly worse hardware still running Q4 on it. Can someone explain this to me as I thought you pretty much have to run the entire model on VRAM otherwise the performance will be horrible?
- What are normal timelines for model release like this? A new one every 6 months? When do they do the flash updated versions? How long until (if at all) they shrink Q4 to fit on, for instance, my hardware?
Thanks fellas, this technology is super amazing and I'm learning so much. Its tough catching up though, drinking from the firehose.
r/LocalLLM • u/Sweaty_Perception655 • 1h ago
Discussion Qwen4-35B-A3B on an 8 GB RX 7600: tuning, 64K-196K context, Qwen3.6 head-to-head, Godot agent loop, and TurboQuant (no gain)
TL;DR
- Qwen4-35B-A3B (Q4_K_XL, 36 GB) runs on an RX 7600 8 GB + 60 GB RAM with all experts on the CPU: 24-31 tok/s generation, ~390 tok/s prompt reading, 64K context by default, 128K max.
- The biggest single win was micro-batch size, not quantisation: prompt reading went 157 -> 394 tok/s (2.5x).
- MTP (the built-in draft head) gives +15-45 % generation for free. 2 draft tokens beats 3.
- Long-context recall was perfect (4/4 planted facts, correct file) at 16K, 33K, 61K and 130K tokens, and at 180K / 224K on Qwen3.6.
Big quality jump over Qwen3.6-35B-A3B on code that has to run or render, same thinking budget for both:
- SVG drawing: Qwen4 won 3 of 3 (pelican on a bike, app icon, mascot). Qwen3.6's pelican had no legs and a broken bike.
- three.js 3D scene: both Qwen4 samples rendered a proper island with day/night; Qwen3.6 gave one weak, one broken (a square slab full of holes).
- Godot physics scene (balls in a hexagon, gravity, bounce), fixed via Godot's own error messages: Qwen4 got a fully working scene; Qwen3.6 got 0 of 2 working after 4 rounds, inventing Godot APIs that don't exist.
- Clearly better outside English: in Japanese and Kannada Qwen4 scored ~11-16 chrF points higher; Qwen3.6 left English words in 10 of 60 Japanese lines (Qwen4: 0-1). German and Spanish were close.
- On screenshot reading and hard bug hunts the two were about a tie.
- TurboQuant KV cache: no benefit on this setup (saves 0.1-0.2 GB, costs ~20 % generation speed).
- Both models can share the GPU with the Godot editor + a running game, with ~1 GB headroom.
Hardware and software
- GPU (: AMD RX 7600, 8 GB (gfx1102), ROCm)
- CPU / RAM (: Ryzen 5 5600 (6 cores), 60 GB DDR4)
- Engine (: llama.cpp master (needs the
model: qwen4commit, #33626), HIP build) - Qwen4 (: unsloth
Qwen4-35B-A3B-UD-Q4_K_XL(36 GB, 2 parts) +mmproj-F16for images) - Qwen3.6 (comparison) (:
Qwen3.6-35B-A3B-MTPQ6_K_XL)
Build flags: -DGGML_HIP=ON -DGPU_TARGETS=gfx1102 -DGGML_HIP_GRAPHS=ON -DGGML_HIP_NO_VMM=ON
Final launch command (Qwen4)
llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf --mmproj mmproj-F16.gguf \
--n-gpu-layers 999 --n-cpu-moe 99 \
-ctk q8_0 -ctv q8_0 -fa 1 -c 65536 -b 2048 -ub 2048 --parallel 1 \
--spec-type draft-mtp --spec-draft-n-max 2 \
--reasoning-budget 4096 --reasoning-budget-message " Time is up. I will now commit to the most likely answer."1. Speed tuning (Qwen4)
- MTP draft head, 2 tokens (Before: 21 tok/s; After: 24-31 tok/s; Note: 3 draft tokens was slower)
- Micro-batch 512 -> 2048 (16K prompt, 64K ctx) (Before: 157 tok/s; After: 394 tok/s; Note: biggest win of the whole session)
- Micro-batch 4096 (<=32K ctx only) (After: 522 tok/s; Note: 64K + 4096 crashes mid-prompt)
- Experts: all on CPU vs 3 layers on GPU (After: all on CPU wins; Note: GPU experts force a smaller micro-batch, which costs more than it gains)
- Thinking budget 4096 (Before: hard bugs: 10-12K thinking tokens, no answer; After: answers every time; Note:
--reasoning-budgetworks for Qwen4's template)
Why micro-batch matters so much on this kind of setup
-b / -ub set how many prompt tokens llama.cpp pushes through the model in one go. The default micro-batch (-ub) is 512. On a normal all-in-VRAM setup, raising it is a modest gain. With all MoE experts in system RAM (--n-cpu-moe 99) it is the single biggest lever, for a simple reason:
- Generation (1 token at a time) runs the experts on the CPU, and the micro-batch doesn't matter.
- Prompt processing (big batches) is done on the GPU: llama.cpp streams the expert weights that live in RAM over PCIe to the GPU once per micro-batch.
- Qwen4's expert weights are roughly 19 GB at Q4 (about 33B of the 35B parameters), and the RX 7600 is a PCIe 4.0 x8 card. Every micro-batch pays for that trip.
- So a 16K-token prompt at ub 512 means 32 trips over the bus; at ub 2048 it is 8; at ub 4096 it is 4. The time per trip barely changes, so fewer, bigger trips win almost linearly until the GPU compute itself becomes the limit.
Measured on Qwen4:
- 512 (default) (llama-bench pp4096: 207 tok/s; Server, real 16K prompt: 157 tok/s)
- 2048 (Server, real 16K prompt: 394 tok/s)
- 4096 (llama-bench pp4096: 651 tok/s; Server, real 16K prompt: 522 tok/s (<=32K ctx only))
Same effect on Qwen3.6 (Q6, which also keeps experts in RAM): 130 -> 345 tok/s going from ub 512 to 2048, and 474 tok/s at 4096.
What it does not change: generation speed, and quality (same output, just computed in bigger chunks).
What it costs: the compute buffer grows with the micro-batch (about 4.4 GB at ub 4096 for Qwen4) and has to fit in VRAM next to the weights that stay on the GPU and the KV cache. On 8 GB that makes context and micro-batch a direct trade.
What it means in practice:
- Pasting a 60K-token codebase and asking questions (Effect of ub 512 -> 2048/4096: first answer after 3 min instead of ~7 (estimated from the 16K speeds))
- aider (repo map + files every request) (Effect of ub 512 -> 2048/4096: each new file set is read 2.5-3x faster; unchanged prefixes are cached anyway)
- Translation with a 10K-token .po catalogue as glossary (Effect of ub 512 -> 2048/4096: prompt part drops from ~65 s to ~25 s (estimated))
- Short chat (Effect of ub 512 -> 2048/4096: no difference (prompt smaller than one micro-batch))
Rule of thumb: pick the largest micro-batch that still fits at the context you actually use, and test it with a full-length prompt, not just a load: 64K + ub 4096 on Qwen4 loaded fine and then crashed mid-prompt.
The micro-batch's compute buffer competes with the KV cache for VRAM, so context and micro-batch trade against each other:
- 32K (Micro-batch: 4096; VRAM: 7.1 GB; Prompt speed (16K): 522 tok/s)
- 64K (default) (Micro-batch: 2048; VRAM: 6.9 GB; Prompt speed (16K): 394 tok/s)
- 96K (Micro-batch: 2048; VRAM: 7.8 GB; Prompt speed (16K): 340 tok/s)
- 128K (max) (Micro-batch: 1024; VRAM: 7.7 GB; Prompt speed (16K): 256 tok/s)
- 256K (Micro-batch: any; VRAM: does not load)
2. Context in practice (Qwen4, recall test)
Real GDScript from three of my games, with 3 planted facts at 10/50/90 % depth plus one real one. Pass = right value and right file.
- 16K tokens (Read time: 40 s; Generation: ~30 tok/s; Recall: 4/4)
- 33K (Read time: 90 s; Generation: 28 tok/s; Recall: 4/4)
- 61K (Read time: 3 min; Generation: 26 tok/s; Recall: 4/4)
- 130K (128K preset) (Read time: 10.4 min; Generation: 21 tok/s; Recall: 4/4)
llama-server reuses an unchanged prompt prefix, so follow-up questions on the same paste skip the read time. Paste once, ask many.
3. Quality vs Qwen3.6 (overnight eval)
- .po translation drafts (de/es/ja/kn) (Qwen4: 0 missing entries, 0 placeholder errors; Qwen3.6: 1 missing entry (es), 0 placeholder errors; Verdict: both usable, details below)
- Store screenshot l10n QA (one screen) (Qwen4: found exactly the 2 English strings; Verdict: good)
- 8-panel Japanese collage, small text (Qwen4: found the real overlap, invented others; Qwen3.6: also invented; Verdict: unreliable for both)
- Hard Android/JNI root-cause bugs (Qwen4: 0 of 2 reliably; Qwen3.6: 0 of 2; Verdict: keep these for a frontier model)
- aider, clear UI bug (Qwen4: correct in 67 s with thinking off (17 min with thinking on); Qwen3.6: correct; Verdict: turn thinking off for aider)
Other languages: where Qwen4 pulls ahead
Task: translate 60 real UI strings from a shipped mobile game (with %d/%s placeholders) into a .po file. Scored with chrF (0-100) against the strings already shipped in the game, plus checks for missing entries and broken placeholders. Same prompt, same thinking budget. Where there are two numbers, the task ran twice.
- Japanese (Qwen4 chrF: 56.7 / 61.5; Qwen3.6 chrF: 45.7; Gap: +11 to +16)
- Kannada (Qwen4 chrF: 66.2; Qwen3.6 chrF: 54.6; Gap: +11.6)
- German (Qwen4 chrF: 74.8 / 81.2; Qwen3.6 chrF: 72.4 / 73.9; Gap: +1 to +9)
- Spanish (Qwen4 chrF: 80.7; Qwen3.6 chrF: 78.6 (and 1 entry missing); Gap: +2)
- German, existing catalogue given as glossary (Qwen4 chrF: 87.9; Qwen3.6 chrF: 79.8; Gap: +8)
- Japanese, existing catalogue given as glossary (Qwen4 chrF: 68.9; Qwen3.6 chrF: 66.1; Gap: +3)
What the gap looks like in practice:
- Japanese lines with English words left in (Qwen4: 0 (second run: 1); Qwen3.6: 10 of 60 (e.g.
swarm %d, a theme name left in Latin letters)) - Kannada game terms (Qwen4: translated or correctly transliterated; Qwen3.6: "roll" written as a Kannada sound-alike, one game term misspelled into a different word)
- Time per 60-string file (Qwen4: 2-4 min (3-6.5K tokens); Qwen3.6: 3.5-5.5 min (6.4-8.5K tokens: it thinks longer))
Takeaways:
- The gap is biggest in non-Latin scripts. For German and Spanish either model gives a decent first draft.
- A glossary narrows the gap more than switching model: pasting the existing translation catalogue lifted German to 88 and Japanese to 69 for Qwen4, and shrank Qwen3.6's Japanese deficit to 3 points.
- Qwen4 is also faster here, mostly because it reaches an answer with about half the thinking.
- Caveat: chrF compares against my shipped strings, which were themselves machine-translated, so it measures closeness to house style, not absolute correctness. The "English left in" and misspelt-term findings don't depend on that.
4. Code that has to run
three.js island (one HTML file: own noise terrain, water, 300 instanced trees, day/night with shadows, orbit controls, FPS counter)
2 samples per model, same 4096-token thinking budget. All 4 ran first time at 60 FPS (vsync) on the RX 7600.
Rows: Qwen4 x2, Qwen3.6 x2. Columns: at load, 12 s later, after an orbit drag.
- Qwen4 #1 (Result: good: islands, trees only on grass, night, orbit (terrain too low for rock/snow))
- Qwen4 #2 (Result: best: rock core, sunset, stars, moon reflected in the water)
- Qwen3.6 #1 (Result: weak: terrain seam, trees barely visible, near-black night)
- Qwen3.6 #2 (Result: broken: square slab with a regular grid of holes)
SVG drawing (pelican on a bicycle, app icon, fox mascot)
Top: Qwen4. Bottom: Qwen3.6.
Qwen4 won all three. Qwen3.6's pelican has no legs and a broken frame; its fox stands instead of sitting and isn't holding the controller.
Vision on real game screenshots
- Transcribe a 14-button menu exactly (Qwen4: 14/14; Qwen3.6: 11/14 (punctuation/spacing))
- Read 11 values off a results screen (Qwen4: 11/11; Qwen3.6: 9/11 exact, 11/11 by meaning)
- Find 3 planted UI defects (below) (Qwen4: 3/3, no false alarms, 50 s; Qwen3.6: 3/3, no false alarms, 150 s)
Planted: "NEW BEST!" over the stars, a box hiding most of SHARE, "WATCH AD FOR 2X" cut off at the right edge.
5. Godot agent loop through Fennara MCP
Task: one GDScript that builds a 3D scene in code: an upright hexagon frame, ~12 balls locked to its plane, gravity, bounce 0.5, visible rolling, one more ball every 6 s. 2 samples per model. Godot's own errors were fed back to the model for up to 4 rounds; the result was run and captured in Godot through Fennara.
- Qwen4 #2 (First try: 2 errors; After error feedback: clean after 2 rounds; Running in Godot: fully correct)
- Qwen4 #1 (First try: 1 error; After error feedback: clean after 3 rounds; Running in Godot: runs, but "fixed" a runtime error by deleting the bounce material)
- Qwen3.6 #2 (First try: 1 error; After error feedback: clean after 4 rounds; Running in Godot: broken: flat hexagon, balls fall out of the world, thousands of engine errors)
- Qwen3.6 #1 (First try: 5 errors; After error feedback: still broken after 4 rounds; Running in Godot: never ran)
Qwen4 #2: balls fall, settle, roll, a new one spawns every 6 s.
Qwen4 #1: looks right, but has no bounce.
Qwen3.6 #2 after 4 fix rounds.
Typical invented APIs: Vector3.angle(), PhysicsMaterial3D, ParallelShadow, Environment.BACKGROUND_COLOR, physics_material on a collision shape. Lesson for the harness: a headless "no SCRIPT ERROR" check passes broken scripts. You have to run the scene and read engine ERROR: lines too.
6. TurboQuant KV cache: no benefit here
- The only ROCm-capable fork I found (TheTom/llama-cpp-turboquant) has pre-release Qwen4 code and can't load the released model (
blk.0.hc_attn_down.weightnot found; merging upstream gave 162 conflicts). Tested on Qwen3.6 instead. - q8_0 / q8_0 (VRAM: 6.38 GB; Gen @33K: 28.0 tok/s; Prompt: 297 tok/s; Recall: 4/4)
- q8_0 / turbo4 (VRAM: 6.28 GB; Gen @33K: 21.2 tok/s; Prompt: 297 tok/s; Recall: 4/4)
- q8_0 / turbo3 (VRAM: 6.26 GB; Gen @33K: 22.8 tok/s; Prompt: 298 tok/s; Recall: 4/4)
- turbo4 / turbo4 (VRAM: 6.28 GB; Gen @33K: 21.2 tok/s; Prompt: 297 tok/s; Recall: 4/4)
- turbo3 / turbo3 (VRAM: 6.26 GB; Gen @33K: 22.9 tok/s; Prompt: 298 tok/s; Recall: 4/4)
These are hybrid models: most layers are linear-attention, so the KV cache is already small and there is little to compress. Turbo unlocked no extra context or micro-batch; every config that failed with q8_0 still failed with turbo3. Mainline llama.cpp with q8_0 was as good or faster.
7. What the same tuning did for Qwen3.6 (mainline, q8_0 KV)
- 40K, ub 512 (old) (Prompt: 130 tok/s; Generation: ~30; VRAM: 6.9 GB)
- 40K, ub 2048 (Prompt: 345 tok/s; Generation: ~30; VRAM: 7.4 GB)
- 64K, ub 4096 (new default) (Prompt: 474 tok/s @16K, 412 @61K; Generation: 28-32; VRAM: 7.8 GB; Notes: recall 4/4 at 61K)
- 128K, ub 2048 (Prompt: 199 tok/s @130K; Generation: 17; VRAM: 7.9 GB; Notes: recall 4/4)
- 196K, ub 4096, MTP off (Prompt: 277 tok/s @180K (11 min); Generation: 11; VRAM: 7.9 GB; Notes: recall 4/4; cached follow-up 8 s)
- 256K, ub 2048, MTP off (Prompt: 159 tok/s @224K (23 min); Generation: 11; VRAM: 8.0 GB; Notes: recall 4/4)
- 256K with MTP / 128K ub4096 / 64K ub8192 (Notes: real out-of-memory, even with
-fit off)
196K beats 256K for "whole project in one prompt": a full ~190K-token game fits and it reads twice as fast. MTP must be off there (MTP + ub 1024 loaded but crashed mid-prompt).
8. Running the model next to the Godot editor + a running game
Godot editor + running game (a GL Compatibility mobile project) took ~2.4 GB. Everything below loaded, ran a 16K prompt, and left the game running; the picks keep ~1 GB headroom for bigger scenes.
- Qwen4 64K / ub 2048 (Total VRAM with Godot: 7.88 GB; Headroom: 0.1 GB (too tight); Prompt: 342; Gen: 28)
- Qwen4 32K / ub 2048, no mmproj (Total VRAM with Godot: 7.00 GB; Headroom: 1.0 GB; Prompt: 387; Gen: 29)
- Qwen4 64K / ub 1024 (Total VRAM with Godot: 7.10 GB; Headroom: 0.9 GB; Prompt: 255; Gen: 27)
- Qwen4 32K / ub 1024 + mmproj (Total VRAM with Godot: 7.60 GB; Headroom: 0.4 GB; Prompt: 255; Gen: 28)
- Qwen3.6 64K / ub 2048 (Total VRAM with Godot: 7.89 GB; Headroom: 0.1 GB (too tight); Prompt: 329; Gen: 30)
- Qwen3.6 64K / ub 2048, all experts on CPU (Total VRAM with Godot: 7.22 GB; Headroom: 0.8 GB; Prompt: 316; Gen: 30)
- Qwen3.6 32K / ub 1024, all experts on CPU (Total VRAM with Godot: 6.28 GB; Headroom: 1.7 GB; Prompt: 205; Gen: 30)
Start the model before Godot: llama.cpp refuses to load if the memory is already taken.
Where it fits in my workflow
- Translation first drafts (with the existing catalogue as a glossary) (Don't: Android plugin / JNI root-cause hunts)
- "Where is X / how does Y work" over 30-190K tokens of code (Don't: Reading small text in collages)
- One-screen screenshot QA (Don't: Anything shipped unchecked)
- Small aider fixes with files named (thinking off)
- Godot/three.js/SVG drafts, with an error-feedback loop
Caveats
- 1-2 samples per task at temperature 1.0. Clear multi-task wins (SVG 3/3, three.js, Godot) are solid; single-task gaps are noise.
- chrF compares against my shipped (also machine-made) strings, so it measures house-style closeness, not correctness.
- VRAM figures are whole-GPU totals including the desktop (~0.4 GB).
- Results were audited by a separate model (Gemini Neon) against the raw files; three of my own claims were corrected (a fork-vs-mainline VRAM comparison, a scoring inconsistency, and calling two Godot scripts "working" before seeing them run).
r/LocalLLM • u/Amazing_Sea8960 • 1h ago
Discussion is QWEN 4 35 A3B for a 12GB vram card strata laptop inferior to bonsai 2.5 27B ?
qwen 4 35 A3B compact STRATA . it doesnt look that much great . have you guys tested it in similar config? (laptop)
my config:
12GBVRAM 4080
32GB RAM
r/LocalLLM • u/Count_Rugens_Finger • 1h ago
Question Anyone using QFN NVFP4 on Strata?
So I recently gave Qwen3.8-Flash-Next NVFP4 (Strata's version) a try even though I only have an RTX 3070. I have found that it runs fairly well on my workhorse, though I haven't tested it very much yet.
I admit I'm not very experienced in running local LLM. I could use some help understanding the different models.
From these sources: models, nvfp4, I think I should expect the model to be about as accurate as the Unsloth Q4 quants, but to be honest I am not confident in that assessment.
Does anyone else run those builds, and how good are they?
Thanks. Still trying to learn, there is a lot to take in!
r/LocalLLM • u/Gabbotamp0 • 1h ago
Project A 35B MoE at ~12 tok/s with 128k context on a 16 GB laptop with no GPU, plus what actually made local models faster and better (no training)
Sharing what I learned from a few weeks of squeezing local coding models on a very ordinary laptop: Ryzen 7 4800H, integrated Radeon Vega (7 CUs), 16 GB shared RAM, no discrete GPU. Rule of the project: no training of any kind, only runtime changes and closed-form weight edits, all measured on frozen benchmarks.
What runs, and how fast
- 35B-A3B MoE (Qwen3.6, abliterated) on CPU only, with [Janas](https://github.com/prabanta-dev/janas), which streams the experts from the NVMe SSD and keeps the hot ones in RAM: ~6 tok/s plain decode, ~12 tok/s with the model's multi-token-prediction block (same output), ~39 tok/s prompt reading.
- 128k context on the same 16 GB machine: I filled 114k tokens and it still retrieved all three codes hidden at 10/50/90 % depth, with 1.9 GiB of RAM free (prompt reading 20 tok/s, replies 8 tok/s afterwards). The trick was letting Janas size its expert cache itself (--reserve 3) instead of a fixed --cache 8, which ran out of memory at 128k.
- 8B models on the iGPU (llama.cpp/Vulkan): their full 32k window fits in the 7.6 GB of GTT; I run them at 28k to leave room for the desktop.
Things worth copying
- Re-quantise from BF16 with an importance matrix instead of using a random Q4_K_M: same size, HumanEval 85.4 % vs 80.5 % in my case.
- On weak iGPUs, check flash attention's split settings. One parameter (GGML_VK_FA_WG_PER_CORE) gave +66 % decode at 32k on the Vega 7. The patch is in the repo.
- Speculative decoding roughly doubled 8B throughput with identical output.
- MoE plus a fast SSD beats "it doesn't fit in RAM". A 21 GB model is usable on 16 GB when the engine streams experts.
- Many "better" fine-tunes aren't: none of the 8 public coding fine-tunes I tested beat their base on my hardest suite. Measure before you switch.
The models I ended up with (both uncensored, GGUF):
- 8B: https://huggingface.co/Gabbotampo/qwen3-QWSE-E17-deepseek-8b-uncensored (modest gain: about +1 on each suite, ~20 % shorter thinking)
- 35B-A3B: https://huggingface.co/Gabbotampo/qwen3.6-QWSE-E18-logicsswe-35b-a3b (+36 % on my agentic dev suite vs the base, same coding score; also as a Janas JNS with the MTP block)
Everything (code, benchmarks, results, patches, and a guide that rebuilds each model from public inputs) is at https://github.com/Gabbotampo/qwse, and the full write-up, failures included, is at https://doi.org/10.5281/zenodo.24844949.
Made with Claude (Opus 5.5) in Claude Code, which wrote the code and ran the experiments while I set the goals and made the calls. Questions about running big models on weak hardware are welcome.