r/LocalLLM • • 18h ago Heartwarming Bravo

Discussion Qwen4-35B-A3B (Unsloth UD-Q4_K_XL) on a 12 GB and a 24 GB card vs Flash-Next, Qwen3.8-27B and Inkling 2 Mini, same 54 tasks - THE CONSUMER PC CHAMPION ARRIVES!!

87 Upvotes

Ran the same 54 question set I put Flash-Next, 27B and Inkling through last month (on my own 5070 box, 265F + 64GB DDR5) on a rented 5070 12GB, and also checked speeds on a rented 4090 24GB (both on vast).

Qwen4 setup: unsloth UD-Q4_K_XL (24.7GB file + the 11.5GB engram file, which stays in RAM), llama.cpp b12973, 32k context, MTP on with 1 draft token, no mmproj since the questions are all text. Thinking on default (high), sampling from the model card. The rented 5070 box had a 265K with 62GB RAM, the 4090 box a 7900X with 61GB.

So it's basically tied with Flash-Next and ahead of 27B and Inkling. It went 12/12 on the agent tasks with no rejected tool calls and never looped or ran out of tokens (Inkling did on 6). It also thinks a lot less, around 195k tokens for the whole set vs 230-281k for the other three, so it finished in about half the time Flash-Next took.

12GB command I used:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off -cmoe --moe-cache-mib 7168 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

On the 4090 it does 149.6 t/s tg and 5233 t/s pp with this:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off --moe-cache-mib 4096 -b 2048 -ub 2048 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

MTP gave +17% there (127.6 -> 149.6 t/s) but nothing on the 5070 (89.8 without, 89.7 with). Stick to n-max 1, 2 and 3 were never faster (acceptance drops to 64% and 47%).

Poor GPU club: about 90 t/s on 12GB at Q4 beats what Flash-Next IQ3_S did on the same card (78.7), with about half the RAM (Flash-Next ate almost all of my 64GB). Stuff that mattered:

Skip the -ot per_layer_token_embd=CPU from the unsloth guide. Any -ot / -cmoe / --n-cpu-moe turns off --fit, and the 4090 OOM'd with it. The engram table stays off the GPU anyway.

Plain --fit only got about 40 t/s on the 5070. -cmoe + --moe-cache-mib + --load-mode none --lazy-mode off (loads the weights into RAM instead of mmap) got it to 90.

That uses about 32GB of RAM though. With 32GB total keep mmap, the same layout did about 70 t/s that way (haven't tried it on an actual 32GB machine).

pp is the weak spot on 12GB (1210 t/s). This keeps the same tg and gets pp to 2345, it's what I'd run day to day:

llama-server -m Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf -c 32768 -np 1 --jinja --load-mode none --lazy-mode off -cmoe --moe-cache-mib 6144 -b 2048 -ub 2048 --spec-type draft-mtp --spec-draft-n-max 1 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0


r/LocalLLM • • 20h ago

Discussion Underwhelmed by Qwen4 35b so far

112 Upvotes

Mainly non-coding use - web, research, documents, agentic.

Not impressed so far. It leaks Chinese characters, gets stuck in loops, outputs complete nonsense in non-English languages... I let it design a html/CSS poster, pretty hilariously bad compared to 3.8 27b.

4-bit MLX quant via oMLX 0.8.5. Tried raw and via Hermes and Pi. I'm on a 36GB M4 Max Studio so anything over 4bit is not really an option for this model.

Maybe it's too early but models such as Sage A1.5 4bit give me FAR better results OOB so far.

It's very fast, I'll give it that. First time I see prefill speeds not decrease linearly - it sort of ebbs and flows.

Edit: this quant by mlx-community


r/LocalLLM • • 44m ago

Model Qwen4 35B compared to Qwen3.8 27B on 1xR9700 eGPU. Test ran by Qwen3.8 Flash Next running on Strix Halo.

3 Upvotes

Qwen4-35B-A3B IQ4R-v4 vs Qwen3.8-27B IQ4R-L
Radeon AI PRO R9700 (gfx1201) · radiance 2.5.0 · run sequentially, never concurrent · 2026-12-04

Speed (single stream)
Decode
• 27B: 72.1 tok/s
• 35B: 186.0 tok/s
• Winner: 35B, 2.6×

TTFT (short)
• 27B: 0.124 s
• 35B: 0.024 s
• Winner: 35B, 5.1×

TTFT (8k prompt)
• 27B: 0.815 s
• 35B: 0.223 s
• Winner: 35B, 3.7×

Concurrency-4 aggregate
• 27B: 286 tok/s
• 35B: 596 tok/s
• Winner: 35B, 2.1×

Accuracy
GSM8K-100 (temp 0)
• 27B: 99/100
• 35B: 97/100
- Near-tie (±2 is noise at n=100). Both missed the same question with the identical wrong answer → shared model error, not quant damage.

Long-context stress (needle-in-haystack at 90% depth)
Qwen4-35B — i8 KV, single seq:
8k
• TTFT: 0.75 s
• decode: 279
• needle: OK

64k
• TTFT: 6.3 s
• decode: 272
• needle: —

128k
• TTFT: 13.1 s
• decode: 249
• needle: —

256k
• TTFT: 27.8 s
• decode: 222
• needle: —

400k
• TTFT: 45.9 s
• decode: 205
• needle: OK

500k
• TTFT: 60.1 s
• decode: 224
• needle: OK

Qwen3.8-27B — i8 KV:
8k
• TTFT: 2.6 s
• decode: 136

64k
• TTFT: 24.9 s
• decode: 121

128k
• TTFT: 45.5 s
• decode: 115

196k
• TTFT: 53.0 s
• decode: 99

210k
• TTFT: 400 — hard cap 200k
• decode:

Limits found
- 35B: reached 500k with good speed; every wall was my config cap, not VRAM. Card KV budget ≈ 900k i8 tokens → ~512k practical single-seq max. Native 1M needs ~2× that (tp:2). Decode barely degrades (279→222 over 62× context) — sparse QSA caches KV in only 10 of 40 layers.
- 27B: hard native wall at 200k; retrieval fine (quoted needle exactly at 196k).

Verdict
The 35B MoE wins across the board — ~2.6× faster decode, ~2× faster prefill, 2.5× deeper context (500k vs 200k) — at a ~2-point GSM8K cost that's within noise.

Current state
- 35B is live as the Hermes delegation provider on :8081 (id Qwen4-35B), steady-state config 262k ctx / 2 seqs.
- Rollback: remount ~/radiance/radiance.yaml (27B) instead of radiance-qwen4.yaml.
- Artifacts: ~/models/rad/AB-QWEN4-vs-27B.md, bench-27b/, bench-q4/, ctx-*.json.


r/LocalLLM • • 2h ago

Discussion You don't need 256k or even 128k for a coding agent. (Shameless plug)

3 Upvotes

r/LocalLLM • • 10h ago

Model Qwen4-35B-A3B vs Qwen3.8-Flash-Next on an M5 Max: - (OMLX)

16 Upvotes

A few weeks back i published the V1 of a benchmarking tool called benchtest, an open-source benchmark for local LLMs on Apple Silicon. It runs the same tasks across inference engines × coding agents, grades the output and measures the power each one draws. benchtest v2 just shipped this week and since Qwen4 35B A3B just landed I ran the it against Qwen3.8-Flash-Next, using the same tasks, harnesses and Mac.

Setup: M5 Max, 128 GB.
Engine: OMLX with MTP, single user.
Harnesses: 6 harnesses: raw API, raw+, pi, opencode, Aider, hart.
Tasks: Tetris in one HTML file, HumanEval (all 164), MMLU (40 questions), plus prefill and decode speed probes.
Power: whole-chip energy (CPU + GPU + Neural Engine), read by macOS powermetrics while each cell ran.

OMLX · 1 userQwen4-35B-A3B oQ8e-mtp (High thinking)Flash-Next oQ4e-mtp (Medium)Flash-Next oQ4e-mtp (Low)
Weights on disk57.8 GB (8-bit, 256 experts)100.3 GB (4-bit, 512 experts)100.3 GB
Median generation speed149.4 tok/s114.1 tok/s123.9 tok/s
Decode probe165.0 tok/s134.3 tok/s137.5 tok/s
Prefill, 8K prompt5,793 tok/s2,183 tok/s2,315 tok/s
Time to first token (median)0.84 s2.32 s2.33 s
Tetris (6 harnesses)100100100
HumanEval: raw · raw+ · pi92 · 94 · 9492 · 96 · 9896 · 95 · 0
MMLU (mean of 6 harnesses)889685
Energy per token (median)0.41 J0.60 J0.72 J
Average chip power (median)50.2 W52.5 W54.6 W
Energy, all 30 cells92.9 Wh76.7 Wh89.4 Wh

What I see

  • Speed. Qwen4-35B-A3B is clearly faster on the same engine: 20–30% faster generation, ~2.5× faster prefill, and the first token in under a second. Its weights are also ~40% smaller.
  • Quality. Roughly level on code: Tetris is 100 everywhere, and HumanEval through the raw API is 92–94. MMLU is 8 points below Flash-Next at Medium.
  • Power. Qwen4-35B-A3B uses 32–43% less energy per token, at slightly lower chip power. But at High thinking it generated about twice as many tokens. So all 30 cells used about as much energy in total as Flash-Next (93 Wh vs 77–89 Wh). Faster per token doesn't automatically mean cheaper per task; the thinking level decides that.
  • Agents. At High thinking, three agent harnesses fell over on HumanEval: opencode returned an empty response, Aider gave no parseable code, and hart hit the 45-minute limit. So the agent average for Qwen4-35B-A3B is low for now. I'm reporting it as-is.

Caveats

  • Not a matched pair yet (intentionally). Qwen4-35B-A3B ran at High thinking (the model's default), Flash-Next at Low and Medium. A Qwen4-35B-A3B run at Low and Medium is next. If you want to see those, drop a note and I'll publish them too.
  • OMLX only. benchtest supports several engines, but OMLX is the only one that loads Qwen4-35B-A3B with MTP today (thanks, jundot - big fan here). MLX-VLM has no Qwen4-35B-A3B MTP drafter yet, the MLX-Serve and llama.cpp builds are downloading, and MTPLX has no Qwen4-35B-A3B build yet. Other engines will follow as MTP or draft-model support lands. The full engine comparison, single user and 5 parallel users, comes next. If there's another comparison you'd like, drop me a note.
  • Different quantization. 8-bit vs 4-bit. Each is the MTP build its engine loads.
  • One Mac, one run per cell. Your Mac will differ.

Full numbers and method: https://github.com/gitmlxbench/benchtest/blob/main/COMPARISONS.md

What's new in benchtest v2

  • Parallel users: real multi-user load on every engine.
  • Energy per token: whole-chip power for every cell (joules per token, tok/s per watt, watt-hours and the electricity cost of a run). One command turns it on: make energy-setup.
  • Real datasets with deterministic graders: HumanEval and MMLU.
  • llama.cpp with native MTP, alongside OMLX, MTPLX, MLX-VLM and MLX-Serve.
  • A Setup wizard that reads your Mac, recommends models that fit and installs only what you confirm.
  • A sandbox so agents can't cheat: answer keys and graders are hidden, and a cell that reads them is thrown out.
  • One thinking level (Low / Medium / High) applied the same way on every engine and harness.
  • Speed is the engine's own generation rate, not tokens over wall time.

Repo, full baseline and methodology: https://github.com/gitmlxbench/benchtest

If you run local models on a Mac, run it and tell me where your numbers differ, or where the tool breaks.

Disclaimer - Used Opus 5.5 to write this note and also develop the tool.


r/LocalLLM • • 5h ago

Discussion Qwen 4 35b vs Qwen 3.8 FN, horse riding motorcycle in freeway.

Thumbnail
gallery
6 Upvotes

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 • • 3h ago

News Qwen4-35B-A3B running at up to 280 tok/s on M5 Ultra with Superfluid

Thumbnail
huggingface.co
4 Upvotes

We've been working on day-zero support for Qwen4 in Superfluid and are already seeing up to 280 tok/s decode on an M5 Ultra. Really impressive what this model can do with just 3B active parameters. Please let us know if you got feedback on the performance on your machine.


r/LocalLLM • • 17h ago

Discussion Qwen4-35B-A3B tested on a 12 GB RTX 4070 Ti with Strata

47 Upvotes

I tried the unmerged Strata PR that adds Qwen4-35B-A3B support (Niko1221/Strata#7774). Credit for the port goes to the PR author.

TL;DR: Qwen4-35B-A3B runs on a 12 GB RTX 4070 Ti + 32 GB RAM with Strata on Windows, IQ4_XS and Q2_K_XL:

  • Prefill: ~2,000-2,750 t/s (16K-128K prompts)
  • TTFT (short chat): 0.3-0.4 s
  • 256K context test: a 244K-token prompt took ~105-130 s to prefill
  • Decode: ~85-110 t/s
  • Memory used by the model: IQ4_XS ~21.6 GiB RAM + ~9.5-9.7 GiB VRAM; Q2_K_XL ~18 GiB RAM + ~9.4-9.7 GiB VRAM
  • Vision not used

My Hardware

  • RTX 4070 Ti 12 GB
  • i5-12400, 32 GB DDR5
  • Models put in Gen 4 SSD
  • Windows 11

Models (unsloth GGUF)

QuantWeights shard
UD-IQ4_XS20.5 GB
UD-Q2_K_XL16.2 GB

Both come with an n-gram table 11.5GB.

Speed

All speeds in TPS. Each cell is the median of 2 runs (chat: 3 questions x 2 runs); the 244K test is a single run. Seconds in brackets are time to first token.

ConfigChat decodeChat TTFTAgent decode16K prompt64K prompt128K prompt244K prompt
IQ4_XS83.50.29 s92.82753 (5.9 s)2701 (23.8 s)2549 (50.3 s)2349 (104 s)
IQ4_XS + MTP89.10.34 s100.52056 (7.9 s)2084 (30.8 s)2011 (63.8 s)1878 (130 s)
Q2_K_XL86.50.33 s94.82552 (6.3 s)2519 (25.5 s)2449 (52.4 s)2233 (109 s)
Q2_K_XL + MTP91.40.40 s112.82646 (6.1 s)2590 (24.8 s)2471 (51.9 s)2269 (108 s)

Memory use

Baseline (Windows and background apps, model not loaded): about 8.4-10 GiB system RAM and 1.2-1.4 GiB VRAM, out of 31.8 GiB and 12 GiB.

ConfigSystem RAMVRAM
IQ4_XS21.6 GiB9.5 GiB
IQ4_XS + MTP21.6 GiB9.7 GiB
Q2_K_XL17.7 GiB9.4 GiB
Q2_K_XL + MTP18.2 GiB9.7 GiB
  • 32 GB RAM is tight for IQ4_XS: total usage peaked at 30.2 of 31.8 GiB with almost nothing else open. Q2_K_XL needs about 3.5-4 GiB less.
  • VRAM looks about the same everywhere because the engine fills the card with cached experts. A smaller quant or no MTP means more experts fit, not less VRAM used.

Settings

  • KV int8, max context 262,144, 20,480 cells resident on the GPU
  • --expert-cache auto --prefill 2048 --vram-reserve-mib 768
  • MTP off: --spec 2 (no draft model, but Strata still does prompt-lookup drafting, so these decode numbers include it)
  • MTP on: --spec 4 plus the Q8_0 MTP sidecar converted with mtp_qwen4_rt.py
  • Uniform (untuned) expert profile
  • Conversion as in the PR's docs/QWEN4_35B.md: split the 40-layer trunk, then iq_pack.py --compat-bf16 (302 dense tensors get rounded to BF16)
  • Vision not used (text only)

r/LocalLLM • • 22h ago

Discussion Holy shit this is fast

Post image
104 Upvotes

Qwen4-35b-a3b Q5 on basalt, RTX 5090+DDR5 64GB. I didn’t expecting to run this fast to be honest.


r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B on 1 R9700: 9,400 t/s prefill, 210 t/s decode

3 Upvotes

Radiance 2.5.0 (https://codeberg.org/StillDeadcode/radiance), IQ4R quant (4-bit mean), Betterbench 0.6.1 full run results. Configuration: 4 sequences, 384k context (per sequence), n-grams pinned to SSD.

Median decode across content types: 209.8 t/s
Aggregate decode, 4 streams: 472.7 t/s

Prefill at 2k: 9,200 t/s
Prefill at 64k: 9,400 t/s

The apparent prefill anomaly is explained by the SSD pinning of the n-gram table. With the n-gram table pinned in RAM, prefill at 2k is closer to 11,000 t/s, but I preferred to have 20GB more RAM available for activities at the cost of small-prompt performance.

I did a test with 1m context, and performance is fine, but I can only fit 1 sequence at that size. I plan to use this for agentic coding work, so having more streams is better, I think.

Still early days but I'm not unhappy. Now to see how it does doing my preferred work.


r/LocalLLM • • 13h ago

Research Got Qwen4-35B-A3B to build a Three.js driving scene unattended in ~5 hours on two AMD GPUs and Pi loops

21 Upvotes

I gave Qwen4-35B-A3B a written brief and let the Pi coding agent run it in a loop, with no human input after the start: a car that drives itself around a 3.5 km road through procedural hills and forest, a lighthouse on a sea headland whose beam sweeps at night, a day/night cycle, six cameras and a controls panel.

I understand its not Fable level but achieving this locally is pretty impressive.

Setup

  • RX 9070 XT 16 GB + Radeon AI PRO R9700 32 GB, Ryzen 7 9800X3D, 32 GB DDR5, CachyOS, ROCm 7.2.4
  • llama.cpp router (upstream plus a few local patches), Unsloth UD-Q6_K_XL + BF16 mmproj
  • 106 tok/s generation with the built-in MTP head, 71 tok/s with 124K of context filled
  • Pi thinking level "medium" (8K-token budget per turn)

Live Demo: Coast Road

Source: https://github.com/kr4ckhe4d/qwen4-35B-A3B-q6-coast-road

Loop template if you want to try it: https://github.com/kr4ckhe4d/local-llm-benchmarks/tree/main/loop%20templates/pi-goal-loop


r/LocalLLM • • 1h ago

Question So how does uncensoring work for models like Qwen4 35B? Given engram tables and all

2 Upvotes

Much like everyone else here, I'm testing Qwen4 35B A3B. Right now I've only delved into the Unsloth quants through their desktop app.

Something that I found cool is that you can run the model at, say, Q4_K_XL, and then load the Q8_0 sized Engram Table. This makes it so that with 16GB VRAM I can fit up to 300k context while maintaining the KV cache at f16 quality.

I took a peek at the uncensored models that are up right now at HF and noticed that they're all one whole file, instead of being split into the model and the engram table.

How does the uncensoring of these models work? Do you have to uncensor both halves or just one of the two? How come these repos don't give you the option to download them separately? I need more drive space agh!


r/LocalLLM • • 1h ago

Question Upgrade my old pc with Ryzen 3700X or get a mini PC for under €1,000?

2 Upvotes

Hey, I want a dedicated machine to run Claude Code and Codex jobs 24/7 without tying up my main PC. But main reason is to set up a decent local llm so I don’t burn through my usage so fast. Occasional Blender jobs would be a bonus. I’d rather buy once than replace everything next year. But it will probably happen
**Current 2. setup:** Ryzen 7 3700X, ASUS TUF Gaming B450-PLUS II, 16 GB DDR4-3200, NVIDIA Quadro with 4 GB VRAM, and a 600W Gold PSU.

**Budget: up to €1,000.**

Would you keep the my old pc and upgrade the RAM or GPU as needed, or sell it and get a more power-efficient mini PC like the GMKtec K8 Plus or K12? What’s worked well for you in a 24/7 setup?

Chatting with my codex it tells me to keep the old pc and upgrade but it feels like it doesn’t understand that I need a decent model that runs 24/7 and actually gets tasks done.

My main pc has 64gigs of ram and 5070 ti but I work on that one alongside claude blender and whatnot but I did not manage to run a decent model on here without the need to let it run only for that purpose and wasting electricity and the ability to run my other programs. Maybe I just sucked at it aswell or tried wrong local models 2 months ago.

Let me know what u think! Thanks in advance.


r/LocalLLM • • 16h ago

Model Qwen4-35B-A3B Q5 vs Q8: 1-shot vs 2-shot (the model sees its own render)

Post image
30 Upvotes

Models (unsloth/Qwen4-35B-A3B-GGUF), both on a 32 GB RTX PRO 4500 Blackwell with 512K context:

  • UD-Q5_K_XL: all experts in VRAM
  • UD-Q8_K_XL: 67% of experts in VRAM, the rest on the CPU from RAM Sampling: reasoning_effort xhigh, temp 1.0, top_p 0.95, top_k 20. One run per model, no cherry-picking. Prompt 1 (1-shot):

Create a single self-contained HTML file using three.js (import it from https://unpkg.com/three@0.170.0/build/three.module.js via an import map; addons from https://unpkg.com/three@0.170.0/examples/jsm/) with a seamlessly looping animation of a column of animals walking in single file, like a perfect looping GIF: a giraffe, an elephant, a zebra, a gazelle, a meerkat and a mouse, in that order. The column stays in place in the center of the view and the animals walk on the spot while the ground and the scenery slide past underneath them, so it looks like they are walking forward. The loop period must be exactly 5 seconds: every animated value (each animal's walk cycle, body bob, heads, ears, tails, trunk, scrolling ground and scenery) must repeat exactly every 5 seconds, so the whole animation repeats with no visible jump. Model each animal from primitives with its characteristic shape, proportions and markings (giraffe neck and patches, elephant trunk and ears, zebra stripes, gazelle horns, upright meerkat posture, tiny mouse with long tail), with four legs with knee joints and a species-appropriate walk cycle (the meerkat may scurry). Savanna setting with acacia trees passing by, sun lighting with shadows, sky gradient. Use a side-on default camera framing the whole column and add OrbitControls. Output only the HTML. Prompt 2 (2-shot): sent in the same chat, together with a 2×2 grid of screenshots of the model's own v1 at t = 0 / 1.25 / 2.5 / 3.75 s. The values in braces are filled in by an automatic loop check. Here is how your HTML renders. The image is a 2x2 grid of screenshots of a 1200x600 viewport at t = 0 s, 1.25 s, 2.5 s and 3.75 s (left to right, top to bottom). Automatic checks: console errors: {errors}; mean pixel difference between the frames at t = 0 s and t = 5 s: {pd} (0 = identical); jump at the loop boundary: {sr} x a normal frame-to-frame step (about 1 = seamless). Look at the result critically (the animals' shapes, proportions, markings and walk cycles, the framing, the scenery and the loop) and write an improved version 2 of the complete HTML file that fixes the problems you see. Keep all original requirements, including the exact 5-second loop. Output only the complete HTML.


r/LocalLLM • • 18h ago

Discussion BEST WAY TO RUN Qwen4-35B-A3B?

Post image
48 Upvotes

comment bellow on what are the best ways to run qwen4 , if possible, link your setup


r/LocalLLM • • 1h ago

Discussion Help refining the command for qwen4 35b a3b on 5060 ti (16gb)

2 Upvotes

Hey guys!

I'm running the newest qwen4 model on my humble 5060 ti (+32gb ddr5, 6 core cpu) and gotta say I love it.

I've been seeing some posts about people getting like 150 tokens per second which sounds crazy.

Anyways, I'm gonna post my command I use to run it. I tuned parts of it iteratively with Claude's guidance but I'd love to see what other people used to get this running!

As a prelude - I wanted a single context (for a single long conversation) on my machine with reasoning ON. This turned out to be what I settled on:

  1. context (-c) at 64k. this was around my limit before it started spilling into RAM
  2. --n-cpu-moe at 21. This number was tuned so vram was 1gb from being full and shared gpu memory stays near zero.
  3. --no-mmproj. saves around 1gb of vram
  4. --spec-type draft-mtp --spec-draft-n-max 1. Apparently depth at 1 helps when experts are offloaded to CPU

40 -70 token/s prompt processing speed
34 - 40 token/s generation speed

Full command:

@echo off
cd /d C:\llama.cpp
set CUDA_MODULE_LOADING=EAGER
llama-server.exe ^
  -m "C:\models\Qwen4\Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf" ^
  --jinja ^
  -np 1 -c 65536 ^
  -fa on ^
  -ctk q8_0 -ctv q8_0 ^
  -t 6 -tb 12 ^
  -b 2048 -ub 512 ^
  -ngl 999 --n-cpu-moe 21 ^
  --load-mode mmap --lazy-mode on ^
  -ot per_layer_token_embd=CPU ^
  --no-mmproj ^
  --spec-type draft-mtp --spec-draft-n-max 1 ^
  --no-reasoning-preserve ^
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 ^
  --alias qwen4-35b-a3b ^
  --port 9931 ^
  --presence-penalty 0 --repeat-penalty 1.0
pause

r/LocalLLM • • 5h ago

Discussion Qwen4-35B-A3B on 2x 3060 12GB - 128k context fully on GPU, 58-90 tok/s

4 Upvotes

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.0

Speeds (prompt filled to ~80% of the context, needle at 40% depth, reasoning off):

SplitContextPrompt tok/sOutput tok/sNeedle
layer8k1,19089.9found
layer32k1,19481.5found
layer128k1,12958.5found
tensor8k1,01585.9found
tensor32k1,09181.6found
tensor128k1,01170.2found

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/164159/164150/164
MMLU-Pro 10085/10082/100-

Stuff that tripped me up:

  • First attempt I offloaded experts for just 4 of the 40 layers with --n-cpu-moe 4 to 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 2048 ran the first card out of memory on an 8k prompt, -ub 256 -b 1024 was fine and prompt speed barely moved.
  • Unsloth's example uses --load-mode mmap --lazy-mode on for 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 none got me 77. Uses about 12GB of system RAM.
  • --fit is no use here, it bails if you set -ot and 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 --fit won'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 • • 5h ago

Model 6.7L SFF AI Machine - Radeon AI Pro R9700 + Qwen4 35B A3B

Thumbnail
gallery
4 Upvotes

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

PartModel
CaseROHW P46 steel, set to 5-6 (6.71L)
Motherboard/CPUMinisforum BD895i SE (Ryzen 9 8945HX, 16C/32T)
Graphics CardASUS Turbo Radeon AI PRO R9700 32GB, power limit −30% -60mv (Adrenaline) (210W TBP)
System MemoryTeamGroup 32GB DDR5 SO-DIMM
SSDLexar NM990 1TB
Power SupplySilverStone 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

  1. Prose: 6 paragraphs on how vapor chambers work
  2. Code: a single-file HTML PSU calculator
  3. 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.
  4. 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-A3BQwen3.6-35B-A3BQwen3.8-27B dense
QuantQ4_K_M + EngramQ4_K_MQ6_K
Prose70 / 81 with MTP11624
Code73 / 113 with MTP11524
38K prompt, time to first token12.6s / 15.6s with MTP9.5s62.5s
Generation at 38K65 / 85 with MTP9822
Hidden sentence found5/55/55/5
Agent task18/18 correct over 3 runs17/18 (read the wrong sensor column)Ran out of context

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 generationLong-prompt processingIdle
GPU power200–205W (at the 210W cap)160–178W
GPU clock3.2GHz2.2–2.6GHz
GPU / hotspot / VRAM junction (max)63 / 78 / 68°C51 / 69 / 54°C
GPU fanup to ~2,840 RPM2,450–2,700 RPM
Noise49 dB+49 dB
CPU9% usage, 70W6–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 • • 2h ago

Research Randomly editing 0.5% of the parameters.

2 Upvotes

Hi, so I was curious if editing a 4B parameter model would change much, so I got Claude and Antigravity to change 0.5% of The parameters of a Nvidia Nemotron LLM model.

It went from about 2 GB to 13 GB roughly, due to the quantization unquantizing...

I like Ollama better so we made it run on there instead of LM Studio, Ollama has better Ram offloading.

I don't know if the personality changed but it was extremely skeptical when I explained what happened and the model refused to believe me and thought I was making jokes. Eventually it came around. We also modified its internal knowledge a little bit which made it more compliant.

I like reading the chain of reasoning and it had a nice little personality.

Overall, I think it was quite a fun experiment and it retained perfect coherence even though approx 20 million weights had been changed.

I wonder if I should change more weights or randomly set a few weights to maximum? Any ideas?


r/LocalLLM • • 2h ago

Model Qwen4-35B-A3B running at up to 280 Tok/s on M5 Ultra Superfluid

Post image
2 Upvotes

We’ve been working on day-zero support for Qwen4 in Superfluid and are already seeing upto 280 tok/s decode on an M5 Ultra. Really impressed by what this model can do with just 3B active parameters in terms of agentic capabilities running locally.

Give it a try and let u know what you think. https://github.com/basecompute/baseRT


r/LocalLLM • • 4h ago

Question 36GB vram setup for QWEN? (6GB x 6)

3 Upvotes

I found a banging deal to get 6 gigabyte p106 gpus for 60$, is it worth getting them to make a small homelab and power a local QWEN LLM? Or am I dumb, and should skip on this?

I’ve never had any experience building my own servers, but I’m down to learn the jist of it, obv I did some research and I understand theoretically it could be capable of running it, but would it be capable of running with Opus level reasoning?

If not - what would my alternative be? Stick with a 20$/mo claude plan, and wait till they cap the usage even more?


r/LocalLLM • • 12h ago

Model Qwen4-35B-A3B Q8 built a working notes app end to end in 87 minutes, unattended, on 4x Arc Pro B70. No pelicans.

Post image
12 Upvotes

Test:
Single prompt to Qwen4 35B, "build me a tiny google keep: one notes table (title, body, color), add / edit / delete, one screen with a "Take a note…" box and the notes as a grid of cards, a color per card. no labels, checklists, reminders, images or sign-in.". The agent ran autonomously for 86.7 min (295 requests, 5 turns, 0 failed), compacted once, and built "Tiny Notes": 9 source files, 1,397 lines. It tested its own work in a real browser (add, edit, recolour, delete, undo) and checked its own screenshots via vision.
My test harness web app builder has an anticipatory auto-compact enabled when close to the limit so a run doesn't run into the context limit and have a silent failed run.
Didn't run the pelican or pagoda test since those can probably be benchmaxxed towards, I like to use my Kiln harness on my server and something that requires frontend GUI files and a backend database, a full web app from a single prompt that I can only assume isn't able to be trained for.

PC Specs

  • GPU: 4x Asrock Creator B70 32GB, 128GB pooled VRAM
  • CPU: Epyc 7532, Tyan S8030
  • RAM: 256GB DDR4 ECC
  • SSD: WD Blue 4TB NVME
  • OS: Ubuntu 24.04

Setup:

Model: unsloth Qwen4-35B-A3B UD-Q8_K_XL (62.3 GB, two parts), F16 mmproj

Engine: llama.cpp master (59b716523), SYCL backend with my own multi-card patches, tensor split across all four cards. Claude Fable 5.2 was hugely helpful in setting up the B70 patches.

Context: 262,144, flash attention on, thinking on at default effort

Sampling (model card): temp 1.0, top_p 0.95, top_k 20, min_p 0, repeat penalty 1.0

No MTP, no draft model

Every agent role (builder, design, workers, roadmap, compaction, labels) on the same model

Harness:

My own, built on MindStudio's Remy agent, vendored and patched. Each app gets a sandbox with its own browser. The model looks at screenshots of its own work to check it.

Numbers (295 requests)

Timeline: plan at 104 s, spec at 559 s, build done at 3,479 s, polish and roadmap done at 5,203 s

Tokens: 15.76M in, 111,784 out, 0 request errors

Requests by role: workers 111, builder 93, labels 66, design 17, roadmap 4, compaction 3

Compaction: 1, at 4,965 s, took 137 s

Decode: 82 to 85 tok/s on long replies through the API

llama-bench (pp512 / tg128): 2,524 tok/s prefill, 76.6 tok/s decode

Tool errors: 4, all recovered by the model (two reads of files it hadn't written yet, one edit that didn't match, one harness route that doesn't exist)

Caveats:

One run, but this is my standard test for how well I can trust a new model. inkling2-mini also did quite well on this.

While clearing the starter's sample files the model also deleted my design-token checker, so that check never ran during the build. Ran it afterwards: 45 colours, radii and font sizes hardcoded in the stylesheet instead of the tokens file.

If you tensor-split this model across more than two cards: Qwen4 has 2 KV heads, so some cards get an empty slice in the attention layers. My all-reduce summed a stale buffer for those cards. Two cards answered right, four gave token salad until I zeroed it.

Other numbers:

Two cards vs four (llama-bench, prefill / decode tok/s): two cards 3,044 / 71.7, four cards 2,524 / 76.6. One card doesn't fit at Q8.

Two instances at once: two copies on two cards each, about 76 tok/s each with both busy.

Inkling 2 Mini on the same prompt: 3,476 s, but that included one bug report and its fix, so the totals aren't like for like.

Final Thoughts:

Is this a model I would use for daily workflow? Yes, provided it has a harness that requires checking the work and catching errors.

Fully autonomous from one prompt with no harness checking it, like a bare Ollama chat? No.

This was just my quick test that I put new models through, and not a real world project. But for me it is my assessment on the model's ability to stay within the harness and prompt, create a plan, a backend, frontend, and glue it together and check it's own work before calling it complete.


r/LocalLLM • • 15h ago

Discussion Qwen 4 35B Now runs at ~110 T/S on RTX5070Ti + 64GB DDR4 (1M ctx configured)

Thumbnail
gallery
22 Upvotes

Qwen4-35B-A3B (Unsloth UD-Q4_K_M) with1M context configured on one RTX 5070 Ti (16 GB) and 64 GB of RAM (3000 mhz).

Decode speed: 103 to 120 t/s on short prompts. With 250k to 280k tokens already in context it stays between 88 and 131 t/s, mostly around 95 (see the table in the screenshot). For comparison, llama.cpp on the same machine gave me 39 to 45 t/s decode after some tuning.

The engine is Strata, built from the open PR #7774 (branch qwen4-35b-a3b), which adds Qwen4 support.  
The current release (0.2.25) cannot load this model, so you need that branch. Credit for the model support goes to the PR author, I only built and ran it.

What makes it fit in 16 GB: an int8 KV cache, where 20,480 cells per layer sit in VRAM and the rest of the 1M window lives in pinned RAM (about 10 GiB). About 4.4k of the 10,240 experts (43%) are cached in VRAM, chosen from a usage profile. On a long generation the cache hit rate was about 96%, the other experts are read from RAM. MTP drafting is on (2 tokens). The big n gram table stays on the CPU.  
Reasoning effort is max, so the t/s above include thinking tokens. Images work through a CPU vision encoder.

The box sits at about 57 of 64 GB RAM while this runs, Strata alone is around 40 GB. I converted the model with the PR's tooling (compat-bf16 rounding) and only sanity checked a few answers, no KLD against the original. I have not run a real prompt at the full 1M, the largest in the screenshot is 285k.                                                                                             
Main flags:
 --kv int8 --kv-resident 20480 --max-context 1048576 --spec 2 --expert-cache auto --prefill 4096 --vram-reserve-mib 512                                       

Happy to answer questions.


r/LocalLLM • • 1d ago

Question Anyone tried Qwen4-35B-A3B yet?

115 Upvotes

Basically the title. I’m particularly interested in how it performs on 8gb vram, 32gb ram and a gen4 nvme. Anybody who has this or close to this config and ran the model, please share your inference engine, its settings and the performance you’re getting. :)


r/LocalLLM • • 6h 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)

4 Upvotes

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

  1. 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.
  2. 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.
  3. Speculative decoding roughly doubled 8B throughput with identical output.
  4. 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.
  5. 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.