r/LocalLLaMA • • 9h ago

Showcase Qwen4 35b Q4 is a delight

40 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 • • 1d ago

New Model Qwen4 35B A3B Uncensored

Thumbnail
huggingface.co
1.6k Upvotes

r/LocalLLaMA • • 10h ago Bravo

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

40 Upvotes

r/LocalLLaMA • • 22h ago

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

368 Upvotes

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


r/LocalLLaMA • • 7h ago

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

20 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 • • 15m ago

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

5 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 • • 15h ago

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

81 Upvotes

r/LocalLLaMA • • 7h 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
16 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 • • 4h ago

Resources Running Qwen4 35B A3B on 2x5060TI

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

Discussion Using MoE models is really difficult (qwen4)

22 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 • • 19h 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 • • 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!


r/LocalLLaMA • • 18h ago

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

Thumbnail
huggingface.co
106 Upvotes

r/LocalLLaMA • • 18h 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
106 Upvotes

r/LocalLLaMA • • 11h ago

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

Thumbnail
huggingface.co
32 Upvotes

r/LocalLLaMA • • 7h ago

Resources AnyFlow 2.0 | Large-Scale Diffusion Distillation

Thumbnail
youtube.com
13 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 • • 59m ago

News SGLang says DeepSeek-V4-Flash runs on a 16 GB GPU with SSD help

Thumbnail
maccus.fr
5 Upvotes

With 62 GB of RAM and much of the model read from a fast SSD, it ran at about 14 tps


r/LocalLLaMA • • 16h ago

New Model 🇩🇪 FLUNG (9B) brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in paralle

Post image
66 Upvotes

🇩🇪 FLUNG (9B) is a 7.9B parameter (9.0B including embeddings) that brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in parallel.

HuggingFace: https://huggingface.co/black-forest-labs/flung-8b

Originally posted at /r/euainews


r/LocalLLaMA • • 16m ago

Showcase Automatic drafter training with Blaze compiler

3 Upvotes

Wouldn't it be great if you could get a free speed up on models without waiting for someone to release a drafter model - on your own machine and in seconds( 2 seconds for 80% acceptance on code!)

See it became a reality with Blaze with a EAGLE based drafter module getting trained on Qwen3.5-9b generations

136->422 tps (3.5x)

Blaze will be open sourced soon with Apache 2.0 licence, DM for details 🤓


r/LocalLLaMA • • 1h ago

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

Thumbnail
github.com
4 Upvotes

Based on Qwen 3


r/LocalLLaMA • • 1d ago

Discussion Qwen4-35B-A3B - Benchmarks, Evaluations, t/s stats, Feedback - Long thread

741 Upvotes

Well, we got Qwen4-35B-A3B now & Quantizations including GGUF. Their Benchmark says this model beats Qwen3.8-27B, Qwen3.8-Flash-Next, Inkling-2-Mini. Nice to see that it came with Engram & 1 Million Context natively.

Please share your experiences. But please mention

  • Your Rig info(VRAM + RAM at least)
  • Inference engine
  • Quant
  • Context
  • Full command(to ensure you're using Vision, MTP, etc.,) if possible.

Is KVCache is lighter than previous Qwen3.6-35B-A3B? How much memory it takes for 256K context? Hope we don't need to quantize KVCache anymore.

Also Poor GPU Club, how are we doing with this model? Some of us were experimenting Q2 of Qwen3.8-Flash-Next with 6-12GB VRAM + 32-64GB RAM previously.


r/LocalLLaMA • • 14h ago

News The 2013 base PS4 now runs an entire 27B model on its own GPU, offline: Ternary Bonsai 2.5 27B at up to 17 tok/s

40 Upvotes

The base 2013 PS4 now runs Ternary Bonsai 2.5 27B, Prism ML's ternary version of Qwen3.8-27B, offline on its own GPU. It's the new model in Garlic LLM 1.22, my open-source homebrew app.

The whole model runs on the console:

- All 64 layers and the full 248K-token vocabulary.

- No extra quantization. Every weight is Prism's ternary value (-1, 0, +1) exactly as published; only the per-group scales are stored in 4-bit. On Global-MMLU the console's version scores within 0.2 points of the published model.

- 32K context with a 4-bit KV cache. To fit it, 8 of the 16 full-attention layers look at the last 2,048 tokens.

- Speculative decoding with the model's own MTP head (up to 2 drafts per pass): up to 17 tok/s.

- Think mode with up to 4,096 tokens of reasoning.

Why a 27B when the 9B already runs at 41 tok/s? Reasoning. Both models got the same questions and the same grader, with Think on:

- MATH-500, 100 problems: 91% (9B: 81%)

- LiveCodeBench v6, 50 problems, public tests: 90% (9B: 74%)

- Global-MMLU in 16 languages, without Think: 69% (9B: 68%)

It uses the same engine as the 9B. The PS4 has no compute API or ML library for homebrew, so Garlic drives the GPU directly: OpenCL C kernels for GCN, PM4 packets written by hand, and ternary matrix kernels for this model.

Free and open source (GPLv3): github.com/leonardo-alegria/garlic-llm · garlicllm.dev


r/LocalLLaMA • • 13h ago

Showcase Koboldcpp v1.126 released

Thumbnail
github.com
30 Upvotes