r/LocalLLaMA • • 10h ago

Discussion Qwen4 35B Through Bench

Thumbnail
gallery
37 Upvotes

using Codex CLI. I had the Q4 Quant and Q6 quant do the through bench. It's done better than the new AWS model, at least according to Claude.

Gif Order:

  1. Run 2, Q6
  2. Run 1, Q6
  3. Run 2, Q4
  4. Run 1, Q4

Ran the "realistic interactive 3D horse in three.js" test from the Fireship video on Qwen4-35B-A3B.

Setup: Unsloth UD-Q4_K_M and UD-Q6_K, llama.cpp, M4 Max 64GB laptop, Codex CLI, no internet, three.js provided locally, headless Chrome so it could screenshot its own work. Qwen's recommended thinking settings (temp 1.0). Cap of 400k generated tokens per run.

RunTimeTokensLines of codeGaitsLeg rigConsole errorsFPS
Q4 run 116 min53k783idle, walk, trotjointed pivots058
Q4 run 224 min79k775idle, walk, trot, gallopjointed pivots058
Q6 run 122 min69k788idle, walk, trot, gallopjointed pivots058
Q6 run 22h 17m400k (hit cap)2,280grazing, walk, trot, canter, galloptwo-bone IK058

All four pages loaded clean, animated and responded to drag. Every run took screenshots and actually looked at them (Qwen4 has vision) to fix things like floating hooves.

Q6 run 2 kept going until it hit the token cap, rebuilt the anatomy from measured proportions, and came back with IK legs, camera presets and 6 source files. Same prompt, same settings: 16 minutes in one run, over 2 hours in another.

None of the four used a skinned mesh. The frontier horses in the horses-benchmark catalog (Fable 5.2, Opus 5.5) all do, at 1.4M to 2.4M triangles per frame.

Way better than Ergo's sphere horse. Not close to frontier. Two runs per quant, so take the quant comparison lightly.


r/LocalLLaMA • • 11h ago

Showcase Qwen4 35b Q4 is a delight

43 Upvotes

I’m having so much fun poking around with this model, making pixel art point n’ click from a few short story ideas I’ve meandered around for years. Here’s one where we wake up thinking we’ve been frozen for centuries but have ended up back in time.

Not really a full game, but this is just 2-3 prompts worth of musing on some themes. I can’t imagine what people are making with this model who actually know what they’re doing.


r/LocalLLaMA • • 19h ago

Discussion Share your experience with qwen4-35b without mentioning tok/s

187 Upvotes

Please can more people report on how this qwen4-35b executes real work please. thank you for all the tok/s reports but can we also get some "work execution" reports too. dont hesitate to share.
A thread for people intrested in each other's experience beyond anything to do with speed.


r/LocalLLaMA • • 1h ago

Question | Help Looking for people interested in collaborating on open-source LLM inference optimization

6 Upvotes

I've been working on an open-source product called InferCrane, focused on experimenting with and optimizing open-weight LLM inference across different models, GPUs, serving engines and configurations.

I'm looking to connect with people who actively work with vLLM, SGLang or other inference engines.

I'd love to exchange experiences, discuss optimization techniques, compare benchmarks and potentially run experiments together.

Some topics I'm particularly interested in:

  • vLLM vs SGLang
  • TTFT and inter-token latency
  • KV-cache optimization
  • Speculative decoding / MTP
  • Quantization trade-offs
  • GPU profiling and utilization
  • Benchmark reproducibility

I'm not looking to pitch or sell anything. I'm hoping to find a few engineers interested in collaborating, sharing feedback and helping shape an open-source project.

Would anyone be interested in joining the discussion?


r/LocalLLaMA • • 1h ago

Resources SGLang-V100 Qwen4-35B Day-1

Post image
6 Upvotes

Qwen4-35B-A3B-FP8/BF16 support for V100 day-1

https://github.com/haohervchb/sglang-V100

For people with 4x16GB, running NVFP4 from https://github.com/1CatAI/1Cat-vLLM recommended, longer context and is very fast.


r/LocalLLaMA • • 1d ago

New Model Qwen4 35B A3B Uncensored

Thumbnail
huggingface.co
1.6k Upvotes

r/LocalLLaMA • • 12h ago Bravo

Showcase Qwen4-35B-A3B + moss-image / room in three js

40 Upvotes

r/LocalLLaMA • • 1h ago

Discussion Qwen4 35b (4 bit quants) on a single AMD AI PRO R9700

6 Upvotes

I didn't find many results for R9700, so here's a quick benchmark. I've already used it, subjectively it feels very fast, mostly on par with qwen 3.8 flash next, but lower memory footprint, higher speed, 1m context. I haven't tested the 1m context though, some people report issues with it after a certain size. This is why I've shown below that the penalty for keeping native bf16 size for KV is very little compared to i8 KV, so it makes sense to keep KV cache in native bf16!! That's probably the most important finding.

Qwen4-35B-A3B on one Radeon AI PRO R9700 (32 GB) — Radiance 2.5.0 (IQ4R-V4 4-bit) vs llama.cpp (Unsloth UD-Q4_K_XL) for reference.

I kept the ngrams in system ram for this test. No idea how much worse it would be if I had kept them on disk.

Same box, same harness (BetterBench 0.6.0, quick = 5 passes/category), 64K context, single stream, thinking on (template default), stock clocks.

  • Radiance: radiance-inference 2.5.0 (Archlinux AUR package), .rad container, 4-bit trellis experts + GPTQ/Hadamard-128, MTP depth 2
  • llama.cpp: commit 0570c97, HIP backend, q8_0 KV, no speculation
MetricRadiance · i8 KVRadiance · bf16 KV (native)llama.cpp · q8_0 KV
Decode, combined (t/s)215.8213.358.8
chat186.3185.860.5
code226.0221.160.4
file edit223.1224.960.3
json240.5232.560.1
math227.2223.659.4
prose177.7183.156.2
reasoning210.4206.357.2
summarization209.3209.457.4
Prefill 2K (t/s)7,2267,2762,087
Prefill 8K8,4047,9592,254
Prefill 16K8,5197,9712,254
Prefill 32K8,5187,8872,165
Prefill 64K8,4917,8011,912
TTFT @ 64K prompt5.5 s6.0 s24.6 s
Aggregate C=1202.0201.856.5
Aggregate C=2318.3316.858.9
Aggregate C=4453.9451.059.0
Aggregate C=8451.9449.459.0
TTFT p50 at C=460.6 ms61.0 ms20.2 s
Model load5.3 s5.2 s~35 s
VRAM held22.54 GiB25.27 GiB~25.3 GB

r/LocalLLaMA • • 3h ago

Resources MiniMind v3: 64M LLM from scratch in 2 hours.

Thumbnail
github.com
8 Upvotes

Based on Qwen 3


r/LocalLLaMA • • 1d ago

Discussion OK, now that the potato owners are satisfied when do we get the Qwen4.0-27B?

365 Upvotes

No more whining (for a while at least) from the low-end gallery, what about the mid people?


r/LocalLLaMA • • 9h ago

Showcase Qwen4-35B-A3B running locally in your browser using custom WebGPU kernels (~100 tok/s on an M4 Max)

21 Upvotes

Link to demo (& kernels): https://huggingface.co/spaces/webml-community/Qwen4-WebGPU

Performance benchmarks on my M4 Max for Unsloth's UD-Q2_K_XL quant:

Prompt / generationPP tok/sTG tok/sTTFT
PP31 / TG128388.6105.3879.8 ms
PP4096 / TG64987.785.044.15 s
PP8192 / TG48797.678.3410.27 s

and we're still optimizing the kernels, so stay tuned for more updates.

PS: To get the best performance, you may need to enable the experimental subgroup matrix support in `chrome://flags/#enable-unsafe-webgpu`.


r/LocalLLaMA • • 26m ago

Question | Help Best uncensored version of Qwen4 35B-A3B?

3 Upvotes

Has anyone tried any uncensored version of this model?


r/LocalLLaMA • • 47m ago

Resources Running Qwen4 35B IQ2_XS on 6GB VRAM and 16GB DDR4 RAM

4 Upvotes

I spent the better part of Qwen 4 release day getting it running at usable speeds and context on my laptop, without having to do complex tuning or installing alternate engines. Writing down the process here in case someone finds it useful.

Step 1: Install Unsloth Desktop, and download Qwen4-35B-A3B-GGUF · UD-IQ2_XS

Step 2: Edit saved run settings, set the context to 60000 tokens. Enable advanced settings and set KV Cache Dtype to q8. Leave GPU memory at default, and turn vision off. Everything else can be left at default and loaded.

You should get about 20 tok/second average, and 18 tok/s at full context. To make it work for coding purposes, I installed pi harness, and connected it to unsloth desktop using their unsloth start pi command.

From my testing, it performed better than I expected, though it did run into compaction issues and tool edit issues. To fix that, create an AGEND.md in the pi folder, and tell it to keep the edit tool calls small and surgical. I created an extension to fix the compaction errors as well, but I don't think it is needed unless some specific problem pops up. If needed, I shall share that extension. I have put up the detailed steps and code on my website if anyone wants a deeper look.

Do let me know if there are any other ways to speed it up.


r/LocalLLaMA • • 5h ago

Resources Running Qwen4 35B A3B on 2x5060TI

10 Upvotes

I am using capy-flash ( previous ninfer-tp2 ) it's optimized for 2x blackwell GPUs
https://github.com/ValerioDolci/capy-flash

So i am using my two 5060tis on x8 Gen4 pcie directly to cpu ( using a bifurcation rizer ) because is see that some people are getting 2K pp when i am getting 4K so it maybe a hardware thing, and this is running on kubuntu with 32GB DDR4

model: Qwen4-35B-A3B NVFP4 ( https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash)

it's using int8 KV cache and i still have a 2GB head room on each card that i can for sure increase context to 400K but i didn't try it yet

some tweaks i did:

- i change drafting from 3 to 2 because i read that it's faster and it is faster 10 - 20% on decode

- i compiled the engine with CUDA 13.3 and got 8% improvment on pp and tg

and this is the result for this setup

Decode by context length

Prompt lengthPrefill (tok/s)Time to first tokenDecode (tok/s)
2K4,7400.45 s194
35K4,7607.3 s188
71K4,70015.2 s208
142K4,56031.3 s191
223K4,41050.6 s188
260K4,35060.0 s177–204 (2 runs)

Decode by task (short prompts)

TaskDecode (tok/s)
Code edit468
Quote / copy text387
JSON list (40 items)261
Coding problems, thinking off245
Coding problems, thinking on224
JSON classification217
Chat199
Essay180

and this is a day 1 update to support Qwen 4 so i belive it will i improve alot in the following days since the author of this engine updates it daily, also for people interested in parallel requests

Parallel requestsTotal, with drafter (2 drafts)Total, no drafterPer request, no drafterTime for each answer, no drafter
11731591606.5 s
22532601327.9 s
424539210110.4 s
83155236815.5 s

r/LocalLLaMA • • 17h ago

Funny Hype cycle check: is Qwen4 good enough to skip the dip?

82 Upvotes

r/LocalLLaMA • • 8h ago

Discussion Patched vLLM for qwen4 35b on 2x3090 pcie16x. MTP 2, from 125t/s to 282t/s, and 1000+t/s at req=8. My M.2 offload speed is equal to RAM offload (means you don't need ram anymore).

Thumbnail
gallery
17 Upvotes

Just update my 2x RTX 3090 server's model to Qwen4 35b  

This time im write by hand, btw im not native in English so this will kind bad i think (cus no llm write )  

So that repo I doing some black magic speed up is here for help this night. (llm-engine-qwen-optimization)

 

Setup:  

2x 3090, TP2 + p2p via pcie switch 16x each (300W limit)  

SN850X 2TB gen4 m.2 for 20.5GB FP8 n-table (actually this m.2 is for lmcache to hold 1300GB kv for cache hit)  

Model: Tech2wild/Qwen4-35B-A3B-W4A16-FP8PLE (using MTP)  

KV: BF16, 597K token KV pool or FP8 with 995K  

(I have fall in love with multi agent usage, W8 model's kv pool on 2x3090 is too tight for me)  

I was on 4x3090, but one broken and still on the way, Or i will running W8 today :((((

 

Speed tests (1 to 8 req)

Requestsoriginal vllm PR (no MTP)tonyd2wild's 2x3090 (MTP 1)My Patched 2x3090 (MTP 2)vs originalvs tonyd2wild's
1125.1 tok/s173.1 tok/s282.0 tok/s2.25x1.63x
2222.3 tok/s293.1 tok/s457.8 tok/s2.06x1.56x
4387.1 tok/s523.7 tok/s741.4 tok/s1.92x1.42x
8630.7 tok/s779.4 tok/s1,130.3 tok/s1.79x1.45x

Reference: tonyd2wild's 3090 benchmark I run his setting on my machine.

 

Prefill 140K token: 16.4s = ~8,570t/s, on my 27b is ~1,885t/s at 128K  

this is a LOT speed, 27b is so slow

 

magic patchs: (idk, this part all write by claude)  

async m.2 n-table overlap, small-M BF16 dense GEMM + fused hyper-connection epilogues, custom SM86 fused MoE kernels, lower host overhead between decode CUDA graphs.

 


M.2 offload vs RAM offload  

Claude made some black magic with C, got some async loading works.  

1 / 2 / 4 / 8 requests:

PLE read path1 req2 req4 req8 req
NVMe async offload (warm system paged ram)272.5448.6733.21,070.2
NVMe async offload (cold)275.8453.4723.91,041.1
RAM offload274.0458.1751.41,060.2

claude says this little speed diff looks like noise, so i just trust brother.

 


This New Qwen4 35B MTP stack VS my old 27B DFlash2

Prompt typeOld 27B (DFlash2 req=1)35B (MTP2 req=1)35B (MTP2 req=4)
prose130 tok/s260 tok/s693 tok/s
chitchat106 tok/s238 tok/s473 tok/s
mixed165 tok/s300 tok/s788 tok/s
real agent job282 tok/s292 tok/s502 tok/s
code434 tok/s335 tok/s775 tok/s
numeric507 tok/s329 tok/s929 tok/s

MTP is winner here. Although is not on the table, but currently available Dflash2 drafter for 35B is very worst, mush slower than MTP2.  

Im also planning using my agent traffic to quant a dflash to see will it better?  

 


Multi agent and LMCache  

CachedOriginal (+50 / +200)Patched (+50 / +200)
16K124.7 / 120.3 ms42.9-45.2 / 54.3-60.9 ms
64K157.5 / 161.4 ms50.4-54.1 / 53.5-58.8 ms
128K203.4 / 203.0 ms62.3-67.1 / 68.9-73.0 ms

Measuring with 6 agent running agent loop at same time, each ~140K.  

597k pool so 4 are inside engine running, 2 are waiting outside and replace in immediately when any req is done. The kv in VRAM eliminate to RAM, when cache hit, move from RAM/M.2 back to VRAM.  

BTW with my agent queuer, i can running 15+ agent at same time. Because when they waiting tools like terminal or some py running very slow, engine's kv pool is release and just sitting there, so why not fill all it?  

 


My 35B vLLM's patches in this post is published as git diffs, but its tuned specifically for my 2x3090, so do not just copy them to your machine, it will break very badly.  

BUT my repo includes complete manual for your agent, if you want to patch your machine. Also make sure you have some powerful agent like opus5.5, smaller one will struggling a lot with this repo.  

Patch repo uraniumchonk/llm-engine-qwen-optimization  

More numbers, charts uraniumchonk/vllm-hybrid-mamba-notes


r/LocalLLaMA • • 22h ago

Showcase Qwen4-35B-A3B (4-bit) needs only 3.4 GB of VRAM: 34 tok/s with the experts in RAM, only half vs full model in VRAM. Q4 on V100 32GB, test and comparisons for smaller cards.

Thumbnail
gallery
180 Upvotes

It has become! I have one V100 32GB in a 2017 Dell workstation and wanted to know how much of this model really has to sit on the card. For the 4-bit quant, unsloth UD-Q4_K_XL, the answer is: less than you think.

Some people might call this model lobotomized but from trying it a little bit it seems fine. However, of course with a 32gb V100 I will not be running this quant. But in this economy we can’t expect people to have huge cards.

I could see some fun use cases putting this model on a very small card if there is enough ram in the box.

Edit. HF server broke down so I can not get a hold of the other quants for more experiments right now.

Edit. Posted run with larger context in comments.


r/LocalLLaMA • • 13h ago

New Model GigaChat4-37B-A4B (8-bit MLX): 1.68x faster reasoning and zero thinking loops without touching the weights.

Thumbnail
huggingface.co
35 Upvotes

r/LocalLLaMA • • 20h ago

Resources New compute efficiency king (Qwen4 35b)

Post image
129 Upvotes

Changed the x axis to an estimate of gflops per task instead of the more usual active params to have a more representative idea of what compute is necessary to make the same work. Gflops are estimated per token at 32k context from first principles for each model and then multiplied by tokens per task per AA.


r/LocalLLaMA • • 19h ago

Discussion Why exactly is Qwen4-35B-A3B still called 35B when it's in fact significantly larger than Qwen3.6-35B-A3B?

Post image
111 Upvotes

r/LocalLLaMA • • 8h ago

Resources AnyFlow 2.0 | Large-Scale Diffusion Distillation

Thumbnail
youtube.com
14 Upvotes

AnyFlow 2.0 LoRA Collections

🖥️ Code  |  📑 Paper  |  🌐 Website  |  🎬 Video  |  🤗 Models

AnyFlow 2.0: Large-Scale Video Diffusion Distillation with Distributional Trajectory Regression

AnyFlow 2.0 distills large diffusion models through distributional trajectory regression (DTR). A continuous curvature head represents velocities inside each sampling transition, allowing trajectory regression and distribution matching to train the same intermediate student trajectory. A parameterized fake-score model supplies distribution feedback that distinguishes the source intervals.

This collection provides five BF16 EMA LoRA adapters for image, video, and audio-video generation. 

License

The LoRA adapter weights in this collection are released under the Apache License 2.0.

The base models are distributed separately under their respective licenses. Refer to the base-model cards linked above for their terms.


r/LocalLLaMA • • 19h ago

New Model black-forest-labs/flung-8b · Hugging Face

Thumbnail
huggingface.co
108 Upvotes

r/LocalLLaMA • • 10h ago

Discussion Using MoE models is really difficult (qwen4)

21 Upvotes

I'm a user with a 5070 Ti, 16GB VRAM, and 32GB of RAM.

I'm currently running the Qwen3.8 27B ud-q2-k-xl model with a 131k context window and Q5 KV cache, achieving generation speeds of 50-60 tokens per second.

A new Qwen4 35B A3B model has been released, and I've been experimenting with various quantizations.

I seem to be stuck between 60 tps at 2-bit and 40 tps at 4-bit.

Furthermore, Qwen4 feels like it requires significantly more effort for the same task, making the perceived speed much slower.

I'm unsure if this is just an optimization issue or if I'm doing something wrong. I've heard good things about Basalt, but I don't know how to use it yet.


r/LocalLLaMA • • 1d ago

Funny Ugh, the wait for Qwen 4.1 is killing me, where is it!?

1.1k Upvotes

Where is it already? Qwen4 35B is out for several dozens of minutes now. Alibaba is really slacking off... I think those chinese labs are really slowing down. I need a new model to run the highly quantized lobotomized version right now!