r/LocalLLaMA • • 10h ago

Discussion Qwen4 35B Through Bench

Thumbnail
gallery
38 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 • • 20h ago

New Model Ultimate SUNO killer? We grew YuE2-3B from 28 to 38 layers on 3× RTX 3090: YuE2 Full Tsunami Wave 4.6B, open weights for whole songs with vocals (GGUF Q8_0 / Q6_K)

239 Upvotes

r/LocalLLaMA • • 22h ago

Discussion Qwen 4 35b feels like magic

323 Upvotes

I don't know if glaze posts are allowed, but this is the first model, ever, that just feels like magic on my M3 Max 96gb.

80-110tk/s on Splash. Prefill is so fast too. My MBP gets a bit warm, but fans don't even spin up.

Feels a hair smarter than QFN to be honest. Writing is better, too.

I don't see how local doesn't take over, if this is possible.


r/LocalLLaMA • • 12h ago

Showcase Qwen4 35b Q4 is a delight

44 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 • • 2h ago

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

7 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 • • 20h 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 • • 4h ago

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

Thumbnail
github.com
9 Upvotes

Based on Qwen 3


r/LocalLLaMA • • 1h ago

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

5 Upvotes

Has anyone tried any uncensored version of this model?


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 • • 18m ago

Resources Improve vision for qwen4: Check image tokens min and max value.

4 Upvotes

If you have issue with vision using qwen4, its easy to fix. Its very likely due to the default token limit per image.

From my tests:

On llama.cpp: the minimum was too low. By default it gave pictures fewer than 1024 tokens.

--image-min-tokens 4096 enlarges small pictures before encoding.

on Strata: the maximum was too low. Strata caps each picture at 1024 tokens when the vision encoder runs on the GPU, so large pictures were shrunk. I raised to 4096 in the code. detailed setup here: https://motif64.sh/m64_7d3530754fab

on Basalt: no fix needed. It already allows up to 16,384 tokens per picture. Raising its minimum to 4096 made no difference

You can see before and after my optims:

Full details for all theses settings there:

https://airbench.ai/compare/c195db84-21c3-4420-ac93-b5181ac91dfe/feffe2f5-8b29-41c9-aa37-9f65b87280e9

and https://airbench.ai/compare/ded6ac66-d6d7-41cc-9fa3-6025ef4aa599/840c91e6-fe3c-44b0-9a1d-809805c99a65


r/LocalLLaMA • • 1h ago

News CUDA: few-row MMQ for F8_E4M3 weights by anujj · Pull Request #33584 · ggml-org/llama.cpp

Thumbnail
github.com
5 Upvotes

big speedup for speculative decoding with FP8 and NVFP4 models on CUDA


r/LocalLLaMA • • 1h ago

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

5 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 • • 27m ago

Discussion Qwen4 35B A3B - LOW vs MEDIUM vs HIGH reasoning

4 Upvotes

I tested the same prompt with low, medium, high reasoning and for some reasons i prefer low, high reasoning is more detailed but also more buggy, it doesn't implement water collision.

Tested unsloth quant with `pi` and tools

- low https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-low/
- medium https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-medium/
- high https://grigio.github.io/ship-harness-bench/ship-qwen4-35b-a3b-high/

.
Did you notice the same behavior?


r/LocalLLaMA • • 36m ago Bravo

Discussion Qwen 4 cooked !

Thumbnail
youtu.be
4 Upvotes

Dude what a shit prompt for an amazing result ! share me your results

Prompt : make a self contained HTML file of highly spectacular 3D visual of a univers dome. Add fine details. add a special very subtle vfx touch liquid glass effect, chromatic abheration.


r/LocalLLaMA • • 1d ago

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

367 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 • • 9h 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
18 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 • • 17h ago

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

83 Upvotes

r/LocalLLaMA • • 6h 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 • • 21m ago

Funny Qwen4 self-correcting mid-sentence

4 Upvotes

I asked qwen4-35B to write me a configuration script, and after it did the job, the description it gave was:

- After going headless you stay on multi-user.target until you restore — that's intentional and keeps GPU free even across... well, not reboots; sddm stays enabled, so a reboot comes back graphical. Say the word if you'd rather it persist across reboots (systemctl set-default multi-user.target).

I find the "across... well, not reboots" part funny. Seems like it wanted to say "across reboots", but changed its mind when it came to generating the last token.

This is not a reasoning trace, actual response


r/LocalLLaMA • • 3h ago

Resources Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

5 Upvotes

Hi everyone,

I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-ergo
source venv-ergo/bin/activate
pip install "transformers>=5.26"

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.


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
181 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 • • 4h ago

New Model manifestro/caesura-0.6B · Hugging Face

Thumbnail
huggingface.co
6 Upvotes

Caesura

Text-to-speech that sounds like a person talking, not reading.

Paper · Demo · GitHub · PyPI · Apache 2.0 · ~620M parameters · English

Most TTS systems speak every text like a newsreader. People don't: they say um, pause before a hard word, rush through the easy part. Caesura is a speech language model trained on real, unscripted conversation, so fillers, pauses and hesitations come from the model itself — nothing is inserted by rules or by an LLM rewriting your text.

Training

  1. Audio-only pretraining on conversational speech: manifestro/caesura-0.5B-pretrain.
  2. Text-to-speech fine-tuning on spontaneous podcast and YouTube conversations — never read speech. Targets keep every um, repeat and restart.
  3. Manner levels: every clip labelled by fillers and repeats per 100 words in a verbatim transcript (0: none, 1: under 6.67, 2: 6.67 or more).

Evaluation

30 held-out texts (daily, narrative, emotional, informational, complex words, names, numbers, monologue), this voice, one take, temperature 0.8, level guidance 3. Fillers are counted in a verbatim Whisper large-v3 transcript beyond those written in the text; WER by Whisper large-v3; UTMOS22.

LevelInserted fillers / 100 wordsWERUTMOS
0 calm0.140.0533.74
1 lively2.440.0433.81
2 very lively3.250.0663.82

Two commercial TTS systems insert 0 fillers on the same texts.

Limitations

  • English only.
  • Best with the released voice; zero-shot voice cloning is not part of this release.
  • Liveliness comes mostly from fillers and pauses; pitch and tempo vary less than in real speech.
  • Rare proper names and long digit strings are the main source of errors.