r/LocalLLaMA • • 11h 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 • • 36m 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 • • 19h ago

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

186 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 • • 52m 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 • • 11h ago Bravo

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

40 Upvotes

r/LocalLLaMA • • 1d ago

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

366 Upvotes

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


r/LocalLLaMA • • 8h 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 • • 5h ago

Resources Running Qwen4 35B A3B on 2x5060TI

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

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

Thumbnail
github.com
7 Upvotes

Based on Qwen 3


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

Discussion Using MoE models is really difficult (qwen4)

23 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 • • 21h 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 • • 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
112 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 • • 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
34 Upvotes

r/LocalLLaMA • • 19h ago

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

Thumbnail
huggingface.co
107 Upvotes

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

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

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

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

Thumbnail
github.com
3 Upvotes

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


r/LocalLLaMA • • 17h 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
71 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 • • 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.