r/Qwen_AI • • 13h ago

Model Comparing Qwen4-35B-A3B with Qwen3.8-27B

Post image
225 Upvotes

I decided to do a comparison of my previous favourite model for coding - Qwen 3.8 27B (Q6) (left of the picture) with the new Qwen 4 35B A3B also at Q6 (right hand side of the picture). I'd seen someone else do a snow globe scene so gave that a go. Prompt was

create a single html file demo using three.js from cdn that is an animated xmas snow globe scene. make the scene very detailed. it should be an xmas village scene with houses around a square with the xmas tree in the middle, with presents at its base. make it detailed and cosy.

Ran them both on xhigh thinking, both using an Unsloth Q6 quant. They both produced about 73k tokens output, but Qwen 3.8 27B ran at ~60 toks/s and took 20 minutes whereas Qwen 4 35B A3B ran at ~90 toks/s and took 13 minutes. They both produced quite a nice output but 13 minutes instead of 20 is a useful speedup. And the snow fell out of the bottom of the 27B one, not to be replaced, where in the 35B one it stayed contained in the globe and was continually regenerated. The 27B one had nicer strings of lights going to the tree. All in all, roughly comparable output but I think 35B has the edge, and in two thirds the time.

I'm going to be using 35B for my coding model in pi.dev now unless it does something horrible.

Q3.8 27B: https://andrewmk.github.io/snow-globe-qwen3.8-27b-UD-Q6-K.html
Q4 35B-A3B: https://andrewmk.github.io/snow-globe-qwen4-35b-a3b-UD-Q6-K.html


r/Qwen_AI • • 11h ago

Funny Qwen likes kittens confirmed, AGI is here. πŸ₯Ή

Post image
56 Upvotes

r/Qwen_AI • • 8h ago

Benchmark Qwen4-35B-A3B: Strata is ~36% more energy-efficient (tok/s/W) and 60% faster than llama.cpp on my dual RTX 3060 (24 GB VRAM) + 64 GB DDR4

34 Upvotes

As I am moving from Qwen 3.8 27B to Qwen4-35B-A3B, I benchmarked switching my inference engine from llama.cpp to Strata to see how they compare in speed and power efficiency.

TL;DR / Conclusion

If you have 64 GB of system RAM, you should definitely consider switching to Strata. 32 GB setups will be tight.

Strata trades system RAM capacity for GPU throughput and energy efficiency. Plus, it is lighter on SSD wear.

Running Q4 quantization on my test task, Strata delivered +36% better energy efficiency (jumping from 0.33 to 0.45 tok/s/W):

  • Output speed: +61% faster (90 tok/s vs. 56 tok/s)
  • GPU power draw: +21% higher (200 W vs. 170 W)
  • Trade-off: Uses significantly more system RAM (~28–30 GB vs. ~7 GB)

Detailed Benchmark Results

EngineContext SizeVRAM Used (GPU 1 + GPU 2)System RAM UsedTotal MemoryOutput SpeedGPU Power DrawEfficiency
Strata256K21.9 GB (11.2 + 10.7)29.7 GB51.8 GB89 tok/s205 W0.43 tok/s/W
Strata128K21.6 GB (11.1 + 10.5)28.0 GB49.6 GB90 tok/s200 W0.45 tok/s/W
llama.cpp208K20.4 GB (11.6 + 8.8)7.16 GB27.56 GB56 tok/s170 W0.33 tok/s/W

Test Setup & Methodology

  • Hardware & llama.cpp config: Dual RTX 3060 (24 GB total VRAM) + 64 GB DDR4 β€” full setup details in my previous post.
  • Model & Quant: Qwen4-35B-A3B (UD-IQ4_XS from Unsloth)
  • Harness: pi 1.8.0 (default settings)
  • Strata config: strata launch. 0.2.28. Launched with default settings (automatically placed 16.2 GB of MoE experts into VRAM).
  • Workload: Initial pi system prompt (1,390 tokens) + first prompt (23 tokens) + follow-up task (910 tokens).

Key Observations

  • Strata uses much more RAM and will wear SSD less: Despite its "35B" name, Qwen4-35B-A3B actually totals ~57B parameters when including its 20B n-gram embedding table (Engram) and 2B Multi-Token Prediction (MTP) head. Strata pins hot MoE experts in VRAM (16.2 GB) and aggressively caches the remaining experts and Engram lookups directly in system RAM to avoid disk bottlenecks, whereas llama.cpp relies heavily on SSD mmap (keeping RAM usage at ~7 GB at the cost of speed).
  • Context scaling: Increasing context from 128K to 256K on Strata had virtually no impact on speed or power draw, thanks to Qwen4's hybrid DeltaNet/full-attention architecture keeping the KV cache small.
  • Prompt processing & TTFT: Input token processing speed was similar across both engines (~1,800–2,000 tok/s), with an initial prompt load time of ~2 seconds in all three runs.
  • Memory trade-off: Strata's speed boost comes at the cost of much higher system RAM allocation (~29 GB vs. ~7 GB on llama.cpp), so make sure you have at least 64 GB of RAM for this setup.

r/Qwen_AI • • 12h ago

Funny Professor Qwen

Post image
31 Upvotes

r/Qwen_AI • • 12h ago

Model Uncensored Qwen 4 35B-A3B MLX

Thumbnail
huggingface.co
25 Upvotes

also up on HF: 3-bit (27 GB) and 6-bit (46.7 GB)

let us know what works and what doesn’t. enjoy!


r/Qwen_AI • • 6h ago Heartwarming

Vibe Coding Built This in ~90 Minutes with Qwen4 UD-Q4_K_XL

23 Upvotes

Ran it on an RTX 4070 + 64 GB RAM using OpenCode (89 tok/s, 256K context).

The first generation was already about 90% of the final game. The remaining 10% took just three rounds of bug fixes: frozen enemy AI, a flashlight that did absolutely nothing, and a few other issues.

Play it here: https://ercelcan.github.io/last-train-fps


r/Qwen_AI • • 6h ago

Agent What agent harnesses do you guys recommend for Qwen 4 35b a3b?

13 Upvotes

I've seen plenty of people post videos of their setups, and they all use different/ similar harnesses which seem interesting. I'm looking for a harness thats open source and functionally similar to claude code and it's features. What do you guys recommend?


r/Qwen_AI • • 14h ago

Benchmark Running Qwen4-35B-A3B on a 32GB M6 Mac mini at 63-79 tok/s (Q4) and 45-58 tok/s on 52GB Q6_K_XL with 0 swap (Splash 1.7.6)

12 Upvotes

Benchmarked unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M (35.2GB) and UD-Q6_K_XL (52.2GB) on a 32GB Apple M6 Mac mini (macOS 27.2.1, Splash 1.7.6, DFlash2 on, --max-context 64K --max-concurrent-requests 2).

All three runs stayed at 0.0 MB swap.

TestUD-Q4_K_M (22G)UD-Q4_K_M (18G)UD-Q6_K_XL (22G)
Experts in RAM / PLE on SSD72% / 10.7 GiBstreamed / 10.7 GiB53% / 20.3 GiB
Short prompt (~46 tok)70.0 tok/s65.8 tok/s47.9 tok/s
Tool call JSON (241 tok)57.5 tok/s41.5 tok/s38.0 tok/s
~5K cold / cached66.7 / 79.1 tok/s46.7 / 63.3 tok/s40.9 / 57.5 tok/s
~20K cold / cached63.5 / 69.3 tok/s47.3 / 52.2 tok/s50.0 / 58.4 tok/s
~40K cold / cached67.1 / 71.6 tok/s53.9 / 61.2 tok/s45.4 / 55.9 tok/s
40K cached TTFT (vs cold)0.21s (19.6s)0.42s (16.8s)0.47s (17.2s)
2x / 3x concurrent agg-64.9 / 62.7 tok/s41.4 / 47.6 tok/s
Pressure / Free RAM / Swapnormal / 15% / 0 MBnormal / 35% / 0 MBwarning / 15% / 0 MB

Notes:

  • UD-Q6_K_XL (52.2GB) ran at 45-58 tok/s with 0 swap via Splash SSD expert streaming (53% experts resident in RAM, 20.3 GiB PLE on SSD), though it stays in memory_pressure: warning (15% free RAM) and serializes concurrent requests.
  • UD-Q4_K_M at --max-memory 18G leaves ~35% RAM free for other background services and hits 64.9 tok/s aggregate across 2 parallel sessions.
  • UD-Q4_K_M at --max-memory 22G is the fastest single-stream setup (63-79 tok/s, ~0.2s cached TTFT past 40K).

Raw JSON and a zero-dependency run_benchmark.py script: https://github.com/UTurtle/m6-benchmark-splash-llm

Tell me if anything in the script looks off.

(Note: I had AI help from Antigravity to write the benchmark script and draft this post.)


r/Qwen_AI • • 3h ago

Discussion I am having cravings for Qwen 4 27b

11 Upvotes

Trying to graph on ngram to 3.8 27b swift. So far no luck. Anyone have ideas?


r/Qwen_AI • • 14h ago

Benchmark Qwen 4 35B vs. Qwen 3.8 27B: 35 coding tasks on an M1 Max 64GB RAM

11 Upvotes

I’ve been benchmarking local models in my autonomous coding harness, and I reran my Qwen 3.8 benchmarks with Qwen 4. The results were extremely interesting as Qwen 4 is way faster and mostly as good at code quality.

QUALITY RESULTS

Qwen 3.8 β†’ Qwen 4

β€’ Feature tasks delivered: 13/17 β†’ 12/17

β€’ Delivered within 2 hours: 11/17 β†’ 12/17

β€’ Median time on mutually successful features: 45m β†’ 10m

β€’ Data/ML tasks passing tests: 18/18 β†’ 18/18

β€’ Total data/ML execution time: 8h 8m β†’ 1h 55m

The feature tasks included gateway development, credential management, REST APIs, concurrency, query parsing and debugging existing repositories. The data tasks ranged from database migrations and accounting ledgers to implementing regression and clustering algorithms.

SOME NOTABLE EXECUTION EFFICIENCY GAINS (3.8 β†’ 4):

β€’ REST locking: 98m β†’ 6m

β€’ Query precedence: 46m β†’ 10m

β€’ Dataset splitting: 37m β†’ 3m

β€’ Ridge regression: 38m β†’ 2m

β€’ K-means: 68m β†’ 14m

Qwen 4 was faster on all 18 data/ML tasks and 13 of 17 feature tasks. It also delivered three feature tasks that 3.8 couldn’t complete, but failed several that 3.8 previously delivered.

SETUP

Apple M1 Max, 64GB unified memory, running both models through MLX.
Shared settings:

β€’ Quantization: 4-bit

β€’ Temperature: 1.0

β€’ Top-p: 0.95

β€’ Top-k: 20

β€’ Maximum context: 128K

β€’ Output limit per call: 16K

Model-specific settings and performance (3.8 β†’ 4):

β€’ Presence penalty: 1.0 β†’ 1.5

β€’ Working context budget: 32K β†’ 96K

β€’ Decode speed: 11–16 t/s β†’ 33–36 t/s

β€’ Prefill per fresh token: ~10ms β†’ 1.6–1.9ms

Both models run with thinking enabled, exact conversation history replay and prefix cache reuse.

The harness gives the models access to file editing, shell commands, executable tests, persistent context and iterative repair. Both receive the same task definitions and acceptance tests, including hidden tests. Feature tasks also use Haiku 5.5 as an independent reviewer.

CODE QUALITY THOUGH IS MORE NUANCED

I used Haiku to review all 18 data/ML implementations from each model (in my tests the same review quality as sonnet) then used DeepSeek to harden and repair them.

Qwen 3.8 β†’ Qwen 4

β€’ Passed original tests: 18/18 β†’ 18/18

β€’ Passed strict review (going through 2 agents) 1/18 β†’ 1/18

β€’ Passed after one hardening round: 6/18 β†’ 4/18

β€’ Passed iterative repair (matched tasks): 6/6 β†’ 2/6

The reviewer found issues including concurrency bugs, numerical overflow and inadequate input validation. Of the 34 medium/high-severity findings examined, 32 were reproduced with executable failing tests.

Interestingly, Qwen 4’s largest speed improvements were on numerical ML tasks, which were also where its output were the most difficult to harden.

QUALIFICATIONS

β€’ One selected run per model per task.

β€’ Two defective feature evaluations excluded.

β€’ Two-hour cutoff applied retrospectively to 3.8.

β€’ Local review integration bugs identified and fixed.

β€’ Some repair-loop objectives were clarified during evaluation.

β€’ Inference settings reflect the configured model profiles; speed measurements come from separate inference tests.

TAKEAWAY

Qwen 4 is a substantial upgrade for local agentic coding. It achieves comparable functional results to Qwen 3.8 while reducing run times in my harness by several hours across these workloads.

To me this is absolutely game changing and rewrites the economics for the work I can do locally.

To be fair to Qwen 3.8, it’s advantage appears to be in the robustness and repairability of its implementations, particularly for numerical workloads.

For my architecture, where local workers handle implementation and inexpensive API models handle independent review and hardening, the execution efficiency of Qwen 4 is compelling enough that I’ve made it my default local worker.

I doubt even Qwen 4 27B will usurp that because of the pure efficiency of inference with this model.


r/Qwen_AI • • 20h ago

News Local LLM Benchmark: Claude Code with Open-Weight Models

Post image
10 Upvotes

Test on MacBook Pro M5 Max (40-core GPU) Β· 128 GB unified memory Β· macOS 27.2 Β· Splash 1.7.6 (Qwen4) / 1.7.3 (Inkling) / 1.7.0 (Qwen3.8 family) , updated 5 December 2026

Key results for Qwen4-35B-A3B (Q4_K_XL, Splash 1.7.6):

- Fastest model tested so far. On the same code prompt it reaches ~4,900–5,050 tok/s prefill and 180–193 tok/s decode. For comparison, Flash-Next managed 160 tok/s decode and Inkling ~3,300 tok/s prefill.

- A 1M context is practical. The first load of 980K tokens takes 5.6 minutes, against 32.6 for Inkling. After that, each follow-up answer starts within 0.2 s. The model found the needle at all 7 sizes from 8K to 980K. Load time grows almost linearly: doubling the context costs about 2.2Γ— the time, against 3.2Γ— for Inkling.

- The KV cache at 1M takes ~22 GB, half of Inkling's. It fits in the 32G disk cache, so a thread that long survives a server restart.

- Thinking can really be switched off. reasoning_effort: none gives 0 reasoning tokens, and all 10 answers were still correct. low is the sweet spot: every answer correct and 35–50% faster than the default high.

- medium isn't in the model's list, but Splash accepts it anyway. On one of the two prompts it thinks longer than high does. The app will pick high for Qwen4, which is the right choice.

- Draft acceptance is lower than for the other models: 27%, against 36–43% before. Decode is still the fastest anyway.


r/Qwen_AI • • 16h ago

Benchmark Qwen4-35B-A3B on a 24GB Handheld (ROG Xbox Ally X): 426 tok/s Prefill, 45.8 tok/s Code Decode, 256K-320K Context via Custom AMD HIP Optimizations on Strata

Thumbnail gallery
9 Upvotes

r/Qwen_AI • • 22h ago

LLM Qwen4-35B-A3B Q6_K running at 8.75 tok/s on a Ryzen 7 3700X – CPU only

7 Upvotes

Just tested Qwen4 on my dedicated server without GPU acceleration, using my own lightweight, self-developed AI harness designed for minimal overhead.

Hardware:

  • CPU: AMD Ryzen 7 3700X (8 cores / 16 threads)
  • RAM: 64 GB DDR4 ECC
  • Storage: 2 Γ— 1 TB NVMe SSD
  • GPU: None
  • OS: Ubuntu 24.04 LTS

Software and model:

  • Model: Bartowski/Qwen4-35B-A3B-GGUF
  • Quantization: Q6_K (54 GB)
  • Inference engine: Ollama
  • Configured context: 32K
  • Custom Python-based agent harness with minimal overhead, tool calling, reasoning display and performance monitoring

Measured performance:

  • Prompt processing: 42.64 tok/s
  • Token generation: 8.75 tok/s
  • Prompt tokens: 836
  • Generated tokens: 94
  • Total inference time: 30.24 seconds
  • Speculative decoding acceptance rate: 66.25%
  • First-position draft acceptance: 97.5%

Quite impressive for a seven-year-old CPU running a 54 GB model without GPU acceleration.

This is an initial measurement with a relatively short generation. I'm planning to compare Q5_K_M and Q6_K using longer coding and autonomous agent tasks through my custom harness.

Anyone else running Qwen4 on CPU-only hardware? I'd be interested in comparing results.


r/Qwen_AI • • 9h ago

News Qwen4-35B-A3B on a 12GB/30GB laptop: 128K ctx @ ~51 tok/s decode, 256K works, 512K with q4 KV, 1M OOMs

Thumbnail
gallery
6 Upvotes

Saw the earlier 8 GB / 16 GB post and wanted to push Qwen4-35B-A3B on my laptop. Short version: the hybrid architecture (linear/Gated-DeltaNet attention + engram-on-SSD + MoE expert cache) scales beautifully β€” the wall is VRAM, not context length.

Hardware

  • GPU: RTX 5070 Ti Laptop, 12 GB GDDR7 (~672 GB/s)
  • RAM: 30 GB DDR5
  • CPU: Ryzen 9 8940HX (16C/32T)
  • OS: Linux (Arch)
  • Runtime: llama.cpp master (build 13021, commit 0c8a9726c, 2026‑12‑05), CUDA 13.5, sm_120
  • Model: unsloth/Qwen4-35B-A3B-GGUF UD-IQ4_XS + mmproj-F16, engram lazy-loaded from SSD

The 3-tier setup (VRAM cache + RAM experts + SSD engram)

llama-server \
  -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \
  --mmproj mmproj-F16.gguf --no-mmproj-offload \
  --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
  -ngl 999 -cmoe --fit off -np 1 \
  --moe-cache-mib 3000 --moe-cache-cpu-share 0.85 \
  -fa on -ctk q8_0 -ctv q8_0 -c 131072 -b 2048 -ub 2048 \
  -t 16 -tb 16 --jinja --host 127.0.0.1 --port 8080

Measured (prompt β‰ˆ1500 tok, KV q8_0 unless noted, warm)

ContextKVWherecache MiBVRAM usedPP t/sTG t/s
64Kq8VRAM45009.7 G131963.2
128Kq8VRAM30009.6 G123056.9
256Kq8VRAM150010.9 G123946.4
512Kq4VRAM50011.4 G103038.4
512Kq8RAM (-nkvo)10008.8 G622.4 (unusable)
1Mq4RAM500β€”β€”OOM

(PP = prompt processing, TG = token generation. 128K live re-check: PP 1248 t/s / TG 51 t/s.)

Findings

  • 128K is the sweet spot. ~51–57 tok/s decode, Q8 KV, ~2 GB VRAM free. This is what I run by default.
  • 256K still flies at ~46 tok/s.
  • 512K only works with q4_0 KV kept in VRAM (q8 doesn't fit): ~38 tok/s but leaves ~479 MB free β€” fragile, don't open other GPU apps.
  • Putting KV in RAM is a trap: --no-kv-offload at 512K q8 β†’ 2.4 tok/s. The KV must stay on the GPU.
  • 1M context does NOT load β€” it needs an ~8.3 GB compute/graph buffer alone.
  • Decode barely degrades with context β€” at ~27K depth it was still ~52 tok/s. The linear-attention part does its job; you don't pay a huge long-context tax.

Raw log (real, 128K, q8 KV)

slot print_timing: id 0 | task 19 | prompt eval time = 1202.91 ms / 1501 tokens (0.80 ms per token, 1247.81 tokens per second)
slot print_timing: id 0 | task 22 |        eval time = 2477.87 ms /  128 tokens (19.51 ms per token,  51.25 tokens per second)

Caveats

  • VRAM is the binding constraint; 512K q4 is for "I really need max context" only.
  • q4_0 KV costs a little quality vs q8_0.
  • At very long context the bottlenecks become engram random reads on SSD and expert-cache misses, not raw capacity.
  • Needs a llama.cpp with qwen4exp support (β‰₯ PR #33626, master).

r/Qwen_AI • • 18h ago

Discussion Qwen3.8 27B / Qwen4 35B: glitches in Non-English responses

6 Upvotes

In my experience with Qwen 3.8 27B, responses in languages other than English were completely glitchy, for instance, they might start in Italian and end in English, making the model unusable for users who only speak Italian. I had hoped for improvement with Qwen 4 35B; while it does manage to finish in the intended language, it is riddled with blunders, stray English words and Chinese characters. In both cases, no matter how strong the system prompt is, these issues still occur. Qwen 3.8 FN, on the other hand, works well.


r/Qwen_AI • • 1h ago

Benchmark Qwen4-35B-A3B β€” Interactive black hole simulation

Post image
5 Upvotes

I wanted to try something more challenging than the usual spinning cube benchmarks.
An interactive black hole with gravitational lensing, adjustable parameters and camera controls.
Full video demonstration on X:
https://x.com/didoofficialm/status/2129430787632333073


r/Qwen_AI • • 15h ago

News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

5 Upvotes

With Qwen4 out, we wanted to see how fast we could bring what we learned from Sparkle 1.x to the new generation. So today we're releasing Kvark-Sparkle-2.0-35B-A3B, built on Qwen4-35B-A3B and the first MoE model in the Sparkle family.

Initial results across 10 benchmarks:

  • -46,8% median, 34.2% fewer reasoning tokens on average, with fewer tokens on all 10 benchmarks and up to 63% less
  • Better accuracy on GPQA Diamond, tool calling and HMMT
  • Less than 2 points of accuracy trade-off on average

For us, efficiency isn't just about faster answers, it's about getting more out of the same hardware.

This is our first iteration on Qwen4, and there's still plenty of room to improve. Open weights, Apache 2.0:

Give it a try and let us know what you think and stay tuned for new versions!


r/Qwen_AI • • 15h ago

Benchmark Qwen 4 35B-A3B on a 32GB MacBook M5: streaming the 20.5B Engram from SSD gets ~34 tok/s max, and OpenCode built a full 3D app with it

Thumbnail
gallery
5 Upvotes

The Engram is what makes Qwen 4 35B-A3B a 57B model in total, and it's also why the 4-bit MLX build (~35.2 GB) won't load on a 32GB Mac. But the Engram is a lookup table, not compute, so I tried leaving it on the SSD and only keeping the 3B active params and the KV cache in RAM.

How I ran it:

  • Unsloth UD-IQ4_XS GGUF + llama.cpp b12977, `--lazy-mode on` with mmap
  • `-ot per_layer_token_embd=CPU`, 32K context, q8_0 KV, flash attention
  • OpenCode on top through the OpenAI-compatible endpoint

What I got on the M5 (153 GB/s):

  • First ~600 tokens: 17–20 tok/s while the Engram pages warm up
  • After that: 30.3–31.5 tok/s average, 33–34.5 tok/s on llama.cpp's 3 s window
  • Prompt processing: ~293 tok/s on a 10.2K-token prompt
  • RAM: 28.8 GB of 32 used, only 785 MB swap
  • OpenCode built a 6-file Three.js "MECH BAY" garage app in 23m 37s at 32.2 tok/s average (with screen recording on)

Server command

llama-server \

-m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \

--alias qwen4-35b-a3b --host 127.0.0.1 --port 8080 \

-np 1 -c 32768 -fa on -ctk q8_0 -ctv q8_0 \

--load-mode mmap --lazy-mode on \

-ot per_layer_token_embd=CPU --jinja

Things I noticed

  • Generation starts slow (~17 tok/s) and climbs to 30+ once the Engram pages are warm. Judge the speed after a few hundred tokens, not on the first reply.
  • I kept the context at 32K so the KV cache stays in RAM and doesn't spill to the SSD on 32GB.
  • OBS costs about 2–3 tok/s, so the 33–35 numbers are with recording off.

Tool calling held up for the whole 23-minute build, even at IQ4.

The same model is going on my RTX 4080 16GB next (~717 GB/s), to see whether this trick still matters when the bandwidth is 4–5x higher.

Has anyone compared how the Engram behaves at IQ4 vs Q5/Q6? I'd like to know if the lower quant hurts it more than the experts.


r/Qwen_AI • • 16h ago

Benchmark Laptop: i5-10500H, 16 GB RAM, GTX 1650 Max-Q 4 GB. Qwen4 support in Pithos

Thumbnail
youtu.be
5 Upvotes

Pithos is the inference engine: one dependency-free C11 executable, no Python, no CUDA toolkit. Version 0.9.3 adds Qwen4, the newest open model from Alibaba's Qwen team.

Qwen4 is more than a bigger Qwen3. It keeps the same Mixture-of-Experts stack and adds three new pieces, all now implemented in C:

πŸ”Ή Hyper-connections: four residual streams instead of one, mixed by a small low-rank network before each block

πŸ”Ή N-gram embeddings: a 160-million-row table (11 GB). Each token reads just 16 rows, straight from disk, so the table never has to fit in RAM

πŸ”Ή Sparse attention: past 2,048 tokens, each attention layer reads only the 512 blocks its indexer scores best

On the reference laptop (i5-10500H, 16 GB RAM, GTX 1650 with 4 GB): β€’ 18.8–19.0 tok/s generation with Vulkan, against 9–10 tok/s for llama.cpp on the same machine, about 2Γ— β€’ 64.5–65.4 tok/s reading a 512-token prompt (llama.cpp: 45–50) β€’ every layer runs on the GPU. The routed experts run on the CPU, and ~750 of the most used ones are cached in the spare VRAM β€’ the perplexity matches llama.cpp (1.2347 vs 1.2368), so the speed doesn't cost accuracy.

Support is experimental. Every number is in the README, with the exact files and commands to reproduce it.

https://github.com/benmaster82/Pithos


r/Qwen_AI • • 17h ago

Benchmark Speed test: Qwen4-35B-A3B FP8 on one B200 with vLLM and MTP

5 Upvotes

I ran the official Qwen4-35B-A3B-FP8 on a single B200 (vLLM nightly, the settings from the vLLM recipe: MTP with 3 draft tokens, NVFP4 KV cache) to see how fast it gets.

  • One user: 622-646 tok/s on JSON, 470-564 on code, 362-457 on prose, 384 with thinking on (high). First token in 30-70 ms.
  • 256 concurrent users: 13,100 tok/s total, 58 tok/s each.
  • Prefill: 217k tokens in 2.5 s, and decode stayed at 475 tok/s after that prompt. The full 1M context fits on the card.

The MTP head does a lot of the work. Mean acceptance was about 2.9 tokens per step, and more draft tokens didn't help. That's why structured output is so much faster than prose.

If you try it on vLLM: you need the nightly (PyPI doesn't support Qwen4 yet), and the first start spends about 11 minutes compiling kernels on Blackwell, so raise VLLM_ENGINE_READY_TIMEOUT_S.

Has anyone tried it on SGLang or TokenSpeed yet?


r/Qwen_AI • • 2h ago

Discussion 苦苦等待Qwen4-27BοΌŒη»“ζžœε΄ζ˜―Qwen4-35BA3B。

4 Upvotes

ζƒŠδΈζƒŠε–œοΌŸζ„δΈζ„ε€–οΌŸ


r/Qwen_AI • • 10h ago

News Splash 1.7.7 released, even for optimizations for Qwen 4

Thumbnail
github.com
4 Upvotes

News for the macOS Qwen users.


r/Qwen_AI • • 15h ago

Benchmark Qwen 4 35B-A3B - Dual RTX 3060 (24GB) - 70 t/s at 200K+ Context (Procedure & Parameters)

Post image
4 Upvotes

Update: I achieved 90 t/s on this setup by switching from llama.cpp to Strata. Strata is much more energy efficient and will be lighter on SSD wear. I detailed my benchmark between Strata and llama.cpp here.

---
Huge thanks to Alibaba for releasing Qwen 4 35B-A3B. I almost tripled my inference speed on the exact same setup compared to Qwen 3.8 27B!

Right now, I am averaging 60–70 tok/s with a 200K+ context window running UD_IQ4_XS on an older DDR4 system.

Here is the exact procedure and configuration I used to dial it in.

Tuning Procedure

  1. Update your stack: Make sure you are on the latest versions of Unsloth Studio and llama.cpp with Qwen 4 support.
  2. Manual GPU management: Switch to manual layer allocation and offload all layers to the GPUs. Split tensors evenly between the two cards.
  3. Find your baseline CPU MoE: Find the lowest possible number of Mixture-of-Experts (MoE) layers kept on the CPU that fits in your VRAM.
  4. Free up extra VRAM: Add -ot per_layer_token_embd=CPU to offload per-layer token embeddings to system RAM, then lower your CPU MoE count again to take advantage of the newly freed VRAM.
  5. Tune the MoE VRAM cache: Add --moe-cache-mib N (test values between 1500 and 2500) to keep the most frequently used experts cached in VRAM.
  6. Balance cache misses: Add --moe-cache-cpu-share N (test values between 0.2 and 0.3) to set the fraction of MoE cache misses that the CPU computes directly from host RAM instead of uploading the expert weights over PCIe to the GPUs.

Hardware & Software Setup

  • GPUs: 2x RTX 3060 (24 GB total VRAM)
  • Display Out: Ryzen iGPU (keeping 100% of the 3060s' VRAM free)
  • System RAM: 64 GB DDR4
  • CPU: Ryzen 5 5th gen
  • OS: Kubuntu 26.04
  • Frontend: Unsloth Studio v0.1.929-beta (2026-12-3)
  • Backend: llama.cpp (b12966-mix-49c75f)

Exact Parameters

  • Quantization: UD_IQ4_XS
  • Context Size: 212992
  • KV Cache: q8_0
  • GPU Management: Manual
  • Multi-GPU Splitting (--tensor-split 1,1)
  • Layers on GPU: 42/42
  • MoE on CPU (--n-cpu-moe): 11
  • Engram: IQ4_NL
  • MTP: auto
  • Parallel: 1
  • Batch / Micro-batch: 4096 / 512
  • Extra Flags:
  • Other:-jinja --fa on -ot per_layer_token_embd=CPU --moe-cache-mib 1536 --moe-cache-cpu-share 0.25

Conclusion

If you are still on Qwen 3.8 27B or hesitant to run Qwen 4 35B A3B on a mid-range multi-GPU rig, make the switch.

General intelligence sits within the margin of error, and the dense 27B still holds a slight edge on deep architectural reasoning. However, Qwen 4 35B A3B delivers massive speed gains and higher scores in Terminal Bench and software engineering (DeepSWE v1.1).

This model truly is a game-changer for proprietary or personal documents. Hitting 60–70 tok/s on two older 12GB cards shows the effort Alibaba put into the architecture. Combining a 3B-active MoE, MTP speculative decoding, and a native 1M context window with llama.cpp MoE caching and engram offloading makes a huge difference.

Qwen 4 is the clear winner as a daily driver. The vast majority of my work can be performed locally now.


r/Qwen_AI • • 16h ago

Resources/learning Qwen4-35B-A3B Abliterated API

Thumbnail
oathbreaker.ai
4 Upvotes

Disclosure on where we're coming from: We run Oathbreaker AI, which hosts abliterated open-weight models. Two Qwen things I think this sub will care about and some caveats.

Quick refresher on abliteration. Instead of fine-tuning or jailbreak prompts, you find the direction in the model's activations that drives refusals and remove it from the weights. The model keeps what it knows and stops refusing. It doesn't get smarter, and there's no jailbreak prompt to babysit.

1. Qwen4-35B-A3B Abliterated (hosted)

Alibaba released the Qwen4-35B-A3B weights on Dec 4 (MoE, ~35B total, ~3B active per token). We serve an abliterated version as `oathbreaker-qwen4-35b-a3b`:

- $0.16 in / $0.02 cached / $0.48 out per million tokens. TO START - these typically decrease as costs become more known

- 65,536 tokens of context to plan with, up to 24,576 out

- OpenAI- and Anthropic-compatible API, so it works in anything that takes a custom base URL. Tool calling and streaming work (we ran it through our agent tests three times before opening it up)

- Text input only

Good for: fiction that goes dark, frank questions mainstream models hedge on, security work on your own systems, bulk jobs where price matters. Not great for: long multi-step tasks. 3B active loses the thread sooner than a big model, abliterated or not.

2. Abliterate your own Qwen and run it locally

Most Qwen checkpoints are Apache 2.0, so if you'd rather own the weights than call an API, our Cloud runs the abliteration on our GPUs and hands back the full model plus a GGUF for Ollama, LM Studio or llama.cpp.

- Up to 15B, not gated, not quantized, Apache-2.0 or MIT (Qwen3-4B-Instruct-2507 works; 8B and 14B-class Qwens fit the bigger tiers)

- $19 up to 4.5B, $29 up to 8.5B, $49 up to 15B; roughly 45–150 minutes

- Only charged if it works: refusals cut by at least half, answers kept close to the original

- The quote is free and tells you up front whether a specific checkpoint is supported

- There are also presets that cut slop or sycophancy instead of refusals

Jobs start through our MCP server, so you just ask Claude, Claude Code, Cursor etc. to do it. Claude Code:

claude mcp add --transport http oathbreaker https://oathbreaker.ai/mcp

If you have the GPU and the patience, you can do this yourself with open-source abliteration scripts. This is for people who'd rather not.

Caveats

- We haven't published a benchmark of abliterated vs. stock Qwen4 yet. Abliteration can cost a little quality; if you spot where, tell us!

- Hosted means your prompts go through our servers. If that matters to you, option 2 gives you weights that never leave your machine.

- Uncensored isn't lawless: the terms have an acceptable-use section.

Model page, prices and setup: https://oathbreaker.ai/models/qwen4-35b-a3b-abliterated?utm_source=reddit&utm_medium=post&utm_campaign=qwen_ai_abliterated

This Qwen4 is blowing our minds tbh!


r/Qwen_AI • • 10h ago

Discussion What is the best way to use Qwen4-35B-A3B on 780m? (windows)

3 Upvotes

Hi, I have mini pc with 8845hs, 32gb ram and windows 11. That's awful setup for local lmm, but that's what i have.

With iq3s/iq3xxs with llama.cpp and 16k-32k context in lmstudio/impulse I'm having like 15-25 t/s. Unsloth for whatever reason doesn't load all layers on GPU and mostly uses CPU: 10-12 t/s (but 55k context. Layers on GPU make it harder to load somehow).

Nothing serious, simple tasks in chat (not with 3bit and this low context anyway)

I keep seeing community forks and finetunes, but all for nvidia/linux/rdna3.5+.

Is there anything better then llama.cpp for my case?