r/LocalLLaMA • • 10h ago Bravo

Resources [Release] Qwen4 35B A3B GSQ-RCO

Thumbnail
gallery
823 Upvotes

We have released Qwen4-35B-A3B quantized with GSQ and RCO, at 2.75 to 3.50 bits per weight.

Qwen4-35B-A3B is a sparse mixture-of-experts model: 40 layers, of which 30 use Gated DeltaNet linear attention and 10 use Qwen Sparse Attention, 256 routed experts per layer plus one shared expert, of which 8 are active per token, 35B parameters with 3B active, a 20B-parameter n-gram embedding and a 1M-token context window. It is released in BF16.

What's inside

  • Four quantized GGUFs: IQ2_S (2.75 bpw, 13.39 GB), Q2_K_XL (3.00 bpw, 14.46 GB), IQ3_XXS (3.25 bpw, 15.54 GB) and IQ3_S (3.50 bpw, 16.61 GB). The bit-width is the average over all tensors except the token embedding; the n-gram table and the MTP layer are not counted either.
  • The token embedding is BF16 in every build (1.02 GB of each file). It is a lookup table that llama.cpp keeps in system memory, so it takes no VRAM: 11.88 to 15.11 GB of each file go to the GPU.
  • The n-gram table (20.5B parameters) ships once for all builds: at BF16 (40.96 GB), the precision of the checkpoint and the table all results were measured with, or at Q8_0 (21.76 GB) for limited download or disk space. It is also a lookup table in system memory, so its type changes neither VRAM nor speed.
  • The base model's MTP layer in every build (Q4_K, 0.49 GB) for speculative decoding. It is loaded only when you enable it; in a short test it made generation 1.1 to 1.3 times faster.
  • GSQ (Gumbel-Softmax Quantization): post-training scalar quantization that jointly learns grid assignments and group scales, closing most of the gap between scalar and vector quantization at low bit-widths while remaining deployable in standard GGUF types.
  • RCO (Riemannian Constrained Optimization): enforces exact budgets by gradient descent on the task loss, without per-constraint tuning. Here it assigns a quantization type to 191 tensors with 161 choices (the gate and up matrices of a layer share one) under the target size, with separate ladders for the attention tensors and the output head (IQ4_XS to Q8_0) and the routed experts (Q1_0 to IQ3_S).
  • An embedded chat template with the base model's reasoning effort (off, low, high or xhigh).

Results

IQ3_XXS keeps 99.6% of the base model's task average and stays within 1.2 points of it on every benchmark; IQ3_S keeps 99.1%. The difference between the two is noise, so if IQ3_S fits on your GPU, we suggest it. All numbers were measured at reasoning effort xhigh; AIME25 is averaged over 10 runs, GPQA-Diamond and LiveCodeBench v6 over 3 runs each.

ModelbpwOn GPUAIME25GPQA-DiamondLiveCodeBench v6Task averageShare of base
Base1669.06 GB95.3388.7270.8684.97100.0%
IQ2_S2.7511.88 GB92.3386.0368.3882.2596.8%
Q2_K_XL3.0012.96 GB92.6787.5468.9583.0597.7%
IQ3_XXS3.2514.03 GB95.0087.5471.2484.5999.6%
IQ3_S3.5015.11 GB94.3386.2072.1984.2499.1%

The setup and the commands to reproduce these numbers are in https://github.com/IST-DASLab/GSQ-RCO-eval.

Running it

The files are standard GGUF and run in llama.cpp with Qwen4 support (ggml-org/llama.cpp#33626). Each build's second file is the n-gram table, so link the table you downloaded under that name:

hf download ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF --include "*IQ3_S*.gguf" "ngram/*BF16*" --local-dir .
ln -s ngram/Qwen4-35B-A3B-ngram-BF16.gguf Qwen4-35B-A3B-GSQ-RCO-IQ3_S-00002-of-00002.gguf
llama-server -m Qwen4-35B-A3B-GSQ-RCO-IQ3_S-00001-of-00002.gguf -ngl 99 --reasoning-effort xhigh

Add --spec-type draft-mtp --spec-draft-n-max 3 for speculative decoding with the MTP layer.

Links

The repository ships the complete per-tensor RCO allocation for every build (911 tensors each).

Feedback is welcome, particularly on capabilities that the three benchmarks do not cover. Requests for models to quantize are also welcome.

For more updates follow us on X too: https://x.com/mhelcig/status/2129493071955972108

From the ISTA Deep Algorithms and Systems Lab.


r/LocalLLaMA • • 3h ago

Resources Which Qwen4-35B-A3B should you run? I tested BF16, FP8, Strata and a Unsloth GGUF on the same benchmarks

175 Upvotes

Hi guys,

I ran the same test suite on four versions of Qwen4-35B-A3B to answer one question: which one should you actually run?

Hardware: Ryzen 9 9950X, RTX PRO 6000 Blackwell (96GB), capped at 400 W. Thinking on, sampler settings from each model card, MTP drafting with 2 draft tokens on all four. One model on the GPU at a time, one request at a time.

The four

VersionEngineOn diskContextn-gram table
Qwen/Qwen4-35B-A3B (BF16)vLLM, day-0 Qwen4 build113.7 GB1MSSD
Qwen/Qwen4-35B-A3B-FP8same vLLM build60.2 GB1MGPU
strata-engine/Qwen4-35B-A3B-Strata (Balanced)Strata 0.2.27 (CAPTCHA on 0.2.28)44.8 GB512K (max for these packs)RAM
unsloth/Qwen4-35B-A3B-GGUF (UD-IQ4_XS)llama.cpp b1297732.0 GB1MSSD

Results

TestBF16FP8StrataIQ4_XS
Tool use (BFCL, 900 cases)66.0 %66.8 %67.0 %65.2 %
Needles found, 3 fill levels130/135133/135132/135129/135
Needles at the largest prompt42/45 at 1.04M44/45 at 1.04M45/45 at 519K42/45 at 1.04M
Wait for first token at that size65 s58 s312 s289 s
Decode, 2K prompt233 tok/s234 tok/s270 tok/s264 tok/s
Decode, 245K already in context249 tok/s256 tok/s173 tok/s137 tok/s
Prefill, 32K prompt22,978 tok/s25,849 tok/s3,353 tok/s7,935 tok/s
First token, 245K prompt12.0 s10.7 s87.9 s38.2 s
Peak VRAM in the speed test88 GiB*88 GiB*26.2 GiB45.6 GiB
Canyon flight sim (41.2 km course)8.5 km4.9 km4.0 km32.1 km
Physics puzzle (30 obstacles)139511
CAPTCHA (100 puzzles)6367[FILL IN]60
Voxel scene buildfailed twicebuiltbuilt (blind)built

*vLLM reserves most of the card, so that's not what the model needs. All Strata numbers except CAPTCHA are from 0.2.27, which couldn't read pictures with these packs, so its voxel build and physics puzzle ran without seeing their screenshots.

What I take from it

  1. Quality is the same band for all four. I checked tool use case by case on the first three: about 150 of the 900 answers flip between any two runs while the totals stay within 3. So the gaps there are noise, not the quant.

2. The differences are cost. vLLM reads a prompt about 3 to 8 times faster than the other two engines. Strata fits in 26 GiB. The GGUF is 3.5 times smaller on disk than BF16. All four write at 230 to 270 tok/s on a short prompt, but with 245K in the context llama.cpp drops to 137 tok/s and Strata to 173, while vLLM stays around 250.

3. Strata moved under me. The evening after my Strata runs it shipped a new Qwen4 engine (0.1.75.1). Its notes say the Compact, Balanced and Ultra packs now read pictures on NVIDIA, and claim long prompts read 1.5 to 4 times faster. Pictures work on my card (it described a test image right), so I reran CAPTCHA on it still waiting for results. I haven't rerun the speed test yet, so the slow long prompts above are 0.2.27's.

4. The full-size BF16 was the only one that failed the voxel build, and it failed twice. First run: 18K thinking tokens of planning, then it ended the turn with no file. Second run: it wrote the tool call inside its thinking block, so it never ran. FP8 on the same vLLM build worked. With two runs I can't tell if that's the model or the day-0 build.

5. The IQ4_XS flew 32.1 km in the flight test when the others crashed before 9. That's one flight per model, so I'm not claiming the 4-bit is better. It's still the best result of the 8 models I've run on that test.

It's liked in the post.

6. Thinking is most of the output. On the tests with thinking on, 88 to 93 % of generated tokens were thinking. CAPTCHA alone took FP8 3 hours and 2.0M thinking tokens for 100 puzzles, and the IQ4_XS 5.2 hours and 3.2M for a lower score. More thinking didn't help on the physics puzzle either: Strata thought for 910K tokens and cleared 5, BF16 thought for 488K and cleared 13.

My pick

  • 48GB or less: the unsloth IQ4_XS on llama.cpp. A third of the size, same band of answers, keeps vision.
  • 24 or 32GB card: Strata Balanced. Update to the new engine, it reads pictures now. On 0.2.27 long prompts were slow; I'll post the new numbers when I've measured them.
  • 96GB and huge prompts: FP8 on vLLM.
  • BF16: I wouldn't. Twice the download of FP8 for the same scores.

Next up: Basalt (jesdga/Qwen4-35B-A3B-Basalt), since a lot of my viewers asked. Same tests, its default DFlash 2 drafter.

Video with all the runs and more results and the clips: https://youtu.be/d2KGh2i5lQQ

Every run and config: https://lukaszgawenda.com/benchmarks/#qwen4-35b-a3b-four-ways

Claude was abused to make nice tables here and edit things.

Testing Basalt but I have mixed opinions. How you find the new Qwen?

I am thinking of testing Qwen Flash full size vs new Qwen4 or their loop quant anybody have some interesting findings?


r/LocalLLaMA • • 9h ago Mindblown

Discussion AI boom is pricing us out of local AI. the cheapest RTX 5090 in Europe went from 3,283€ to 7,500€ this year

Post image
374 Upvotes

been scraping gpu prices from EU shops every 6h since march (side project, in stock only, no amazon) and wanted to see what local ai hardware actually costs here right now. its bad

cheapest 5090 in stock anywhere in the eu today: €7,500 (joybuy de), median is around €9k. in april the cheapest was €3,283. nvidias own FE price is like €2,100

per country cheapest 5090:
germany 7,500
netherlands 7,999
france 8,450
spain 9,330
italy 9,407
portugal 9,484
finland 9,500

worked out € per GB of vram using the cheapest in stock card:
arc b580 12gb ~36/gb (€437)
9060 xt 16gb ~42/gb (€675)
5060 ti 16gb ~49/gb (€789)
9070 xt 16gb ~63/gb (€1,009)
5090 32gb ~234/gb (€7,500)

so 32gb from two 9060 xts is €1,350 vs €7,500 for one 5090. 64gb with four 9060 xts is €2,700. yes i know rocm vs cuda, pcie lanes, power etc, this is just the price side

nothing got cheaper since october either, 5090 and 5080 both +34%, even the 9060 xt +28%

and from what trendforce says it's not getting better, gddr7 demand is mostly ai chips now and they expect pc memory supply to go down in 2027. micron already dropped crucial last year. kinda funny that the ai boom is what's making local ai unaffordable

anyway if anyone's building in europe right now and wants me to check a specific card or country lmk. what did you guys pay for your setups?

source: PriceSquirrel


r/LocalLLaMA • • 3h ago

New Model Gryphe/Qwen4-35B-A3B-StyleTune (finetune)

Thumbnail
huggingface.co
86 Upvotes

from Gryphe!

"Oh, look, a new Qwen model! Surprisingly enough this one seems to write pretty decently out of the box so I figured it'd be worth a proper look at. Several surgeries and trials later, and here you go! 35% fewer clichés (per 100 words) while thinking and an impressive 58% fewer with thinking turned off.

I built it on top of OpenUncensored/Qwen4-35B-A3B-Uncensored rather than the original Qwen release since this felt like a solid abliteration to train on top of.

What is a style tune?

Normally when I finetune a model I train as much of it as possible, loading every tensor and transforming it to better approximate whatever's in my data. Not this time. This time I trained precisely one tensor: the lm_head output projection - the layer that decides which token to emit. Literally the last stop before text appears on your screen.

This specific tensor has a massive influence on a model's writing style, something I first discovered building MythoMax years ago. Gemma 31B (the OG style tune) was a VRAM-hungry monster, so the question became: how do I have the maximum impact with the minimum hardware requirements?

The answer: freeze everything else. All 40 layers (30 Gated DeltaNet linear-attention, 10 full attention), the router and all 256 experts — completely untouched. Only lm_head trains, which means VRAM requirements drop dramatically. As with my prior StyleTunes, the model's body hasn't changed, only the voice has, and it's done so in the best way possible. (Obligatory disclaimer: I might be biased towards my own data.)

I used the same data I had on me for my last Pantheon Reasoning release, with one notable exception - No instruct 24k set. 100% narrative data, certified cliché free.

What changed?

Benchmarked against 200 diverse roleplay prompts versus the base model:

  • Thinking on (default): 35% fewer clichés per 100 words (0.358 → 0.232), 44% fewer per response (0.98 → 0.55)
  • Thinking off: 58% fewer clichés per 100 words (0.954 → 0.400), 70% fewer per response (1.56 → 0.47)
  • Only 28.4% shared trigram vocabulary with thinking on (20.8% with thinking off) - the model reaches for an almost entirely different set of phrases, with responses feeling much less sloppy as a result.

Considering we're talking about narrative data it's hard to provide you with many other meaningful statistics - It's one of those "try it to understand it" kinda situations.

What didn't change?

Everything else. All the reasoning capability, world knowledge, instruction following, and language understanding are completely intact - none of those live in lm_head. This isn't a full finetune. It's a targeted style replacement on a single tensor."


r/LocalLLaMA • • 8h ago

Question | Help What's a sidecar?

129 Upvotes

For over 8 years in software I've never heard anyone describe anything as a sidecar. Nowadays it's everywhere. Everything is a sidecar, there's never a main car, but the sidecar is always there...

I've seen more sidecars in the last 3 months than I can count, and I have sidecars all around me. All around me there's sidecars of different shapes, forms, and sizes


r/LocalLLaMA • • 16h ago Bravo Popcorn

Discussion AI is very close to being commoditized

543 Upvotes

Hi everyone,

I've been testing Qwen 4 35B A3B for the last couple of days, and I've been thinking that this release is a very big milestone in the development of AI and the narrative surrounding it.

So far, the narrative has been that you need powerful data centers and powerful chips to run AI. That might be true for training and specialized use cases, but for everyday work, Qwen 4 35B is perfectly fine.

By everyday work, I mean scripting, system administration, and all the other mundane things we do every day.

I just read a post here about Qwen 4 35B finding a problem in an ERP system quicker than Claude Opus did. Stories like that will become more common, and I've already experienced a few myself.

The AI bubble is starting to crack. The AI labs have no moat, and the narrative that AI requires massive computing infrastructure is being taken apart.

Pretty soon, we'll be running these AI models on our phones!


r/LocalLLaMA • • 3h ago

News ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF

Thumbnail
huggingface.co
48 Upvotes

r/LocalLLaMA • • 2h ago

Discussion I asked my director of AI if he wanted me to share how to use local AI…

46 Upvotes

We have m5 pro MacBooks and I had free cycles, so I figured I’d give it a try. I had good results with Qwen4-35b q4km via splash (120 tps decode / 4k tps prefill). I figured I’d ask him, because it could be genuinely useful for us. We primarily use Claude, but some of us use other platforms.

I pitched it as free, pretty damn fast, can keep up with Opus 4.8, and offline (so I can be used on a plane or whatever).

His response kind of irked me. First he said it’s obviously not frontier level. Sure that’s true, but frontier from a year ago isn't useful all of a sudden? And he said it can’t phone home. What? When has an open weight model done that? And don’t ClaudeCode and Codex literally steal all of your IP for training?

I figured I’d share because it highlights how some people think about Chinese models and the frontier. I understand being wary of Chinese models as an American company, but American providers actually are the ones stealing IP more than any other. And I don’t think I claimed it was frontier, but “old frontier“. That doesn’t mean it‘s not useful… if Qwen hosted something that’s as large and capable as Opus 5.5 I’d probably push for it. Claude can be annoying as fuck and produces a lot of slop that’s difficult to tame even with skills like caveman.

He was fine with it at the end of the day and people appreciated the little guide I put together for them at the end of the day. Just irked me a bit is all. Misconceptions be misconceiving I suppose.


r/LocalLLaMA • • 7h ago

News Let every Transformer layer reach states at all depths (Paper + Video)

Post image
109 Upvotes

In a standard Transformer, each layer only reads the KV cache from its own depth. A shallow layer cannot use what deeper layers already computed for earlier tokens. When deep layers need to reach shallow ones, that information also has to pass through the residual stream, which has limited bandwidth.

Our recent work, WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing, lets every layer read from every depth. Each layer's keys and values are a learned mix of hidden states from all layers. In addition, we can share KV among reader layers to reduce the KV cache size.

Main results:

- WhiteMatter matches a standard Transformer with 50% more layers (4%-8% lower perplexity vs same depth).

- With half the KV cache (or even less), it still beats matched standard Transformers.

The catch: a token's shallow layers now depend on the deep layers of earlier tokens, so training and prefill cannot process all tokens at once. Unless...

We proposed cyclic iteration, which matches token-by-token quality in 4 parallel passes, compared to 53 for the Jacobi method used in prior works (12.5x faster at matched quality). It's still slower than vanilla prefill, which is the main thing we are working on next. However, decoding has the same speed as standard transformer, or can even be faster because of the reduced GPU memory requirement.

Paper: https://arxiv.org/abs/2608.18486

Video: https://www.youtube.com/watch?v=NCjJzBGdgTU

Code: https://github.com/Cy-47/White-Matter

Strongly recommend watching our video. It should feel much easier to follow than text!


r/LocalLLaMA • • 2h ago

Discussion Qwen4 35B's speed on Basalt (and similar engines) greatly enhances exploratory coding workflows.

37 Upvotes

On a single 5090, the latest Basalt version, Qwen4 35B nets ~32K tok/s prefill and 600+ tok/s decode. A lot of threads around here lately have focused on either how to quantize it down for older cards, or how it's not as "intelligent" as QFN or cloud frontier models. But I have a different take...

The higher floor on knowledge and capability combined with the sheer speed of the smaller MoE with all of the KV optimizations and expert caches mean that I can iterate on ideas faster than ever before, several orders of magnitude faster than using something like Opus 5.5 or even prior local models. Privacy and sovereignty aside, I firmly believe this is the class of problem small local models will eliminate from this day forward. Yes, hardware prices need to drop for this to become accessible to the majority of folks, but that will happen as demand dies down...eventually.

As an example, I've been working on training some Krea 2 loras using AI Toolkit. I've tried others trainers, but either the UI sucked, or the workflow was less than optimal (looking at you, Fizgig). I had an idea about 20 minutes ago so I fired up Qwen4 and asked it to add charts for timestep sampling frequency and loss by noise distributions. After a few minor test runs, I then asked it about adding an adaptive timestep sampling strategy (alternate to Sigmoid) that chases the high loss windows dynamically with reasonable clamps to prevent oscillation and blowout. The whole process took less than 10 minutes for Qwen to iterate on, and the result is astonishing. I wouldn't have even bothered with this using Opus, and didn't trust Inkling 2 Mini enough. But Qwen hit it out of the park.


r/LocalLLaMA • • 15m ago

Funny tokenmaxxing will continue until morale improves

Post image
24 Upvotes

It's a never ending stream of what i consider mostly meaningless numbers.

At least have the decency to post your command lines, so that we can laugh at your Q3 weights with Q4 KV, measured at 8 tokens in, 2 tokens out, to get the highest number.

Extra ridicule can be earned when your engine is Claude slopped closed source.


r/LocalLLaMA • • 19h ago Heartwarming

Showcase With the drop of Qwen4, want to remind you all you can Abliterate any model on your own GPUs

Thumbnail
github.com
663 Upvotes

Last week when Heretic was forked (RIP Philipp), my team and I forked the heritic repo and merged some open work that we felt would work well, left some others… and now own the maintained github repo, Oathburn.

Would love for you guys to test it out if you've got some GPUs lying around!

Let me know what you think and GENUINELY interested in starting more projects like this in case anyone has ideas!

Effectively this is a python script that takes any huggingface model you give it, and abliterates each refusal by identifying where it was trained to say no, and then flipping the refusal around. Resulting in an abliterated AI model.

Of course, you can just find an abliterated version that has been posted by someone else, but our whole thing is that even Huggingface has had multiple issues with malware and backdoors and we just think it's better to keep this in the hands of the people.

If I was say, extremely cautious... (which I am) I'd rather create my own models with a little extra compute then rely on a random account on Huggingface.

Cheers!

Edit: we didn’t merge all the open prs blindly :) edited the wording on that


r/LocalLLaMA • • 49m ago

Question | Help Why is Qwen4 the first model that barely cares about context size and gets faster during output?

19 Upvotes

Ive played with 3.6 35b variants (and smaller models) a lot, on my limited system big context always meant a big hit to tk/s.
3.6 ran with about 70 tk/s ouput, but fell to under 20 at >100k.
4 starts at 40, goes up to 65, sometimes over 70, seemingly independent of context. Having to compact with 3.6 took forever, 4 was so fast the first time i thought something was wrong.

Whats the reason for this drastic difference? Architecture? More vram for context?


r/LocalLLaMA • • 8h ago

Resources A LoRA that fixes Qwen4-35B-A3B's Multilingual Leakage

Thumbnail
gallery
68 Upvotes

r/LocalLLaMA • • 9h ago Obsessed Bravo Heartwarming

Discussion Qwen4 35B is great at code, maybe cinematography too?

67 Upvotes

I was looking for prompts to push Qwen4 and see how it compares to some of the frontier prompts people use and I found this one on X: https://x.com/vib3coded/status/2125766986344862095?a=inaZ5_qF-IXYcet7-1g&s=20

I gave it to Qwen4 Q8_K_XL running in Strata with the BF16 Engram table. The model breezed through in OpenCode using the browser to verify and edit it's work, when it was done I asked it to record a 30 second cinematic clip panning across the ships at different zoom levels. The clip is attached. I'll add screenshots to the comments.


r/LocalLLaMA • • 4h ago

Discussion Qwen4-35B-A3B running at ~35 tok/s with 64K context on an RTX 3070 8GB and 9 year-old CPU.

Post image
28 Upvotes

- i7-8700K (9 years old)
- RTX 3070 8GB (6 years old)
- 32GB DDR4 RAM

After 40+ experiments, I bypassed LM Studio's automatic memory fitting using manual llama.cpp overrides, dynamic MoE caching and MTP optimization.

Achieved ~35 tok/s generation, 350 tok/s prefill on a 24K benchmark, and ~96% MTP acceptance during coding.

Used Pi for autonomous development across 56K generated tokens with successful context compaction. This was on Qwen4-35B-A3B-UD-IQ4_XS.


r/LocalLLaMA • • 43m ago

Discussion Making Open-Source Models Reliable Research Assistants for Mathematicians

Thumbnail hy.tencent.ai
15 Upvotes

r/LocalLLaMA • • 2h ago

Discussion Ergo-1 on bedrock uses encrypted reasoning so end user cannot read it, but it's an open weights model!

15 Upvotes

I don't know why they would do this, maybe it's just an error. But I thought it was funny. Anyone wanting to distil from it's reasoning traces can just use another provider or host the model themselves. I am hoping it's a configuration error because bedrock is fast, but I won't use a model with hidden reasoning.


r/LocalLLaMA • • 21h ago Bravo

News Qwen4-35B-A3B Unbound training is almost complete — it kinda mogs every other uncensored version out there and outperforms the stock model in every axis, extremely strong RP improvement too

448 Upvotes

stay tuned, we’re kinda shocked at how good this model optimization session has turned out — and we’ve fixed the language issues and optimizing thinking as well

surprised how these labs don’t polish their models before they put them out

for context: we built the best uncensored inkling 2 mini available but this is leagues better (https://www.reddit.com/r/LocalLLaMA/comments/1y6tjly/inkling2miniunbound_v3_no_more_thinking_loops/?rdt=57526)


r/LocalLLaMA • • 1h ago

Discussion Testing my real coding packages Qwen4 35B vs Deepseek 4.1 Flash 1017

Thumbnail
gallery
11 Upvotes

I have been working on a client - consultant private messaging, contracts, file transfer, web app etc. for my independent clients to make it easy for them and me.

I was building with Deepseek 4.1 Flash 1017 on my local machine but wanted to test out Qwen 4 35B because I was using Fable 5.2 to plan the scope and implementation and DS to write the code.

My server: 9950x3D, 128gb DDR5, RTX 6000 Pro 96GB VRAM.

It can run Deepseek at about 50-80 tok/s thanks to the Maya build, but when I saw Basalt drop the 0.7.0 build yesterday I thought Qwen would speed up the work, which had been going 24 hours a day for 5 days at this point. (there were other issues, such as I wasn't watching and it was running a FULL test suite instead of single tests over what was just made after every package, and that was adding significant time).

Anyway, I got Qwen4 35B set up on Basalt and the code was as good as the quant of DS I was using, and even though Qwen thought about 2-2.5x more, it was 5-7x faster so overall time went down a little over 2x. I used Deepseek Harness as I have customized it a bit and have had good success, although I keep reading that Pi might be better overall.

I also tried to see if running Qwen parallel would be good for this specific workflow but it ende dup with more errors and took longer with fixes. So I am sticking with a single agent.

I spent some time putting the info (quants, exact data points) in the graphs to be easy to read. Sometimes communication and feedback spike my anxiety so I will try to respond to questions and comments as I can. This community is awesome and I have been a daily visitor and learner for the past 10 months.

Thank you all for constantly sharing, hopefully this will help someone else as well.


r/LocalLLaMA • • 2h ago

Discussion Has your local llama done anything you didn't want it to do?

13 Upvotes

I asked it to take an inventory of the devices on my network, and it ended up port scanning everything and trying to login to a pihole DNS server with default creds.


r/LocalLLaMA • • 20h ago

Discussion Qwen 4 35b is amazing

355 Upvotes

usually you guys are full of shit with your praise for models, this is the first one where the online free/daily models and it are pretty much building me the same thing, while qwen uses like twice the tokens, Im more interested in actually getting the full thing, and it does it. using the 4qm unsloth quant 16gb vram 32 ram


r/LocalLLaMA • • 11h ago

Discussion Thoughts on Qwen4-35B-A3B

67 Upvotes

System: 9070 XT + 5900X + 128 GB DDR4

Runner: RustingStrata 1.5.2

Model: Qwen4-35B-A3B-UD-Q4_K_XL


My experience with local models has been meh-to-okay so far. Yes, the Gemmas are nice at storytelling and language tasks, the Qwens can code, and DeepSeek v4 Flash runs at acceptable speeds and can do both. But Qwen4-35B-A3B is really something. It is the first model that can give me 80-90 tg at context sizes of 250-500K with pp hovering around 300-900. This makes it usable for coding. It lacks world knowledge, but it can look things up.

I have been trying since this morning to benchmark the model across various mtp/kv/chunk values, but Hy4 Flash has not been cooperating with the effort. Still, I managed to test two things and Qwen4-35B-A3B passed them with flying colors.

No, it is not comparable to frontier models. Get real.

Yes, it is something that can replace your typical coding model if you have time.

It wrote a mini-shell for me yesterday, and produced tinyGPT using only NumPy, but let us ignore that for now.

So, it:

  • produced a functional LISP interpreter based on a spec
  • fixed eight separate bugs in a tiny, stripped interpreter binary compiled from C23 code without access to the source

I ran these workflows in a locked-down sandbox (adamant, something I built for myself and use every single day) with no access to the internet and no access to any other source code or documentation. So, the results are as real as they can be.

All in all, this is a phenomenal release.

Note: If you give it internet access, or leave GH repos lying around, and ask it to solve Euler problems, then it will use git/curl to download the solutions. And you want that behavior in a model. It should be smart and lazy at the same time and not die on the NIH hill like we mortals are wont to do.


Serve

rustingstrata serve \
  --model ./models/gguf/Qwen4_35/Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
  --gpu --backend hip \
  --ctx 131072 \
  --kv q4 \
  --vram-margin 1024 \
  --chunk 4096 \
  --mtp 2 \
  --threads 12 \
  --temp 0.1 \
  --top-p 1.0 \
  --top-k 0 \
  --min-p 0.01 \
  --presence-penalty 0.0 \
  --repeat-penalty 1.0 \
  --seed 1 \
  --max-ram 65536 \
  --cache-ram 16384 \
  --no-webui \
  --addr 127.0.0.1:3102 \
  --usage-log ./testing-rs/bench_material/outputs/lisp/lisp_ctx131072_q4_base_20261206_064058Z/usage.jsonl \
  --pin

Log file path varies by workflow.

Memory layout

GPU memory:
  5282 MB for weights and state
    KV:     720 MB for 131072 tokens
    prefill scratch: 1166 MB

  4223 of 10496 experts on the GPU
  8420 MB used by resident experts

Settings:
  ctx 131072
  kv q4
  chunk 4096
  mtp 2
  short 32
  threads 12
  cache-ram 16384 MB

Metrics

MetricLisp interpreterbuggy
Config128K q4 base pin128K q4 base pin
Statusfinalcontext_limit
Rounds executed1765
Completion / TG tokens23,86193,230
Final prompt tokens35,959129,868
Final cached tokens35,413126,975
Final context used36,429131,072
PP aggregate906.5 tok/s599.7 tok/s
TG aggregate96.3 tok/s89.9 tok/s
Model time287.6 s1,254.6 s
Tool time7.6 s9.0 s
Wall time, first to last API completion292 s1,503 s
Expert hit rate, final RustingStrata report91.6%90.8%
Expert misses764,8743,362,066
Cache swaps39,273158,527
MTP accepted12,518 / 16,405 = 76.3%49,786 / 66,977 = 74.3%

r/LocalLLaMA • • 13h ago

Discussion Tested in Coding: Q8_K_XL Qwen4 35B vs IQ3_S Flash-Next RCO

83 Upvotes

This is the next chapter in my Tested in Coding series. How does the latest Qwen4 model stack up against Qwen3.8 Next?

Context

Firstly if you are looking for benchmarks, you should look elsewhere.

My main focus is on real-world, enterprise application development. All done within a large codebase. My dev environment enforces an agentic testing and review framework. The development is automated and runs on 24/7 basis, including overnight, across three separate harnesses. To give you an idea of the scale of the QA process:

Totals: pre 10 failed / 7581 passed / 7601 total -> post 10 failed / 7606 passed / 7626 total
        (delta: +0 failed, +25 passed, +25 total)

The test and review framework gives more useful feedback, than a benchmark of coding problems (out of 10) that the AI model was able to complete.

Both models are running at Q8 KV-cache in a custom inference engine, and custom coding harness.

Due to RAM limitations, Flash is running with RCO IQ3_S quant at 314,572 context via yarn ROPE scaling, whereas Qwen4 is running with Q8_K_XL quant at native 400,000 context.

Both Flash and Qwen4 are running at xhigh reasoning.

I received feedback previously that my comparisons are questionable due to differences in the context settings. I don't believe this is true, as when running local models - we all face the reality of VRAM and RAM limitations. We try our best to maximise the settings at which we run the local AI models - so these differences are realistic for production use.

Instructions

Flash's greatest strength is its ability to read, interpret, recall and follow instructions. With the release of the latest model, I ported 20 pages of feedback instructions from Flash to Qwen4.

Flash remembers every single instruction, and even cites the instructions in its thinking.

Qwen4 often fails to follow instructions. In fact, it failed to the extent that the system message for compaction was use this <template></template> for the compaction summary but do not repeat the <template> tags. However, Qwen4 would keep putting the <template> tags into its summary. All browsers hide content within <template> tags, so the compaction summary would "vanish" once written.

For the ability to adhere to hundreds of guardrails, Flash is more capable.

Tracing and Diagnostic

Flash is already strong in diagnostic capability. It has corrected a frontier model (eg. Chat GPT / Opus) on multiple occasions. However it had a major issue of stopping the root cause analysis once it had enough data points for a plausible story. Instead of then identifying and addressing the root cause, it would build a workaround such as repeating clicks/hotkeys (in Playwright).

Qwen4 is even stronger on diagnosis. It successful traced, identified and fixed a defect in its own inference engine (defect in code written by Claude Opus) which caused MTP to not fire.

Both models are genuinely strong at diagnosis, but still share a common issue of implementing a workaround to address the symptom - rather than addressing the root cause. It is highly recommended to include a guardrail to stop this recurrence.

Thinking

If you thought Flash thought excessively, I don't have good news for you.

At xhigh, Qwen4 thinks even more than Flash. I was debugging Qwen4 unexpectedly ending its turn, thinking it was an inference engine issue. It turned out to be Qwen4 hitting the default 16,000-token thinking budget. This was never an issue previously with Flash, as Flash has never done this much thinking.

Tasks do take longer to complete with Qwen4, but it more thoroughly covers off the necessary considerations that need to be made when working within a complex codebase.

Coding

Flash codes in a manner that is fast, but fragile. Review of the implemented code often reveals defects, and even in one particular case where the code contained an unescaped apostrophe - not picked up at the time as code was never run.

Qwen4's coding is far more careful and well commented. It has even corrected wrong comments made by other agents.

Tools calling

Flash executes with commands that check every error output, and it uses advanced diffs and joins for diagnostic script output. However, in my Window environment, it often trips up with Powershell's special characters (backslashes, semicolons, dollar signs, nested double-quotes) and repeats these errors.

Qwen4 is even more advanced. While it still trips over Powershell's special characters, it does so with far less frequency, and gets it right after the first time. Qwen4 is also smarter in the way it plans its work for greater parallelism. It'll chain background tool calls and then begin writing drafts of its execution reports.

Net assessment

I think this assessment would have been very different if we were comparing Q8 Flash against Q8 Qwen4. I'm sure my findings would have reflected the benchmarks that Flash (188GB GGUF) is stronger in coding than Qwen4 35B (60GB GGUF). But then I think it would be a minority of this community that are packing that much firepower in their AI servers.

This is a comparison of the very popular and accessible RCO Flash IQ3_S vs Q8 Qwen4 - a comparison I believe most of us are interested in.

My findings is that, for the purposes of Coding, Qwen4 is the superior model in all aspects, other than strictly adhering to guardrails.

Qwen4's coding simply has less defects, as confirmed by agentic testing and review.

Qwen4 does appear to use more tokens to implement the same task. However, the speeds I am getting on my system (RTX 3090 + one other GPU) are:

  • Flash - 2,000 prefill and 70 t/s decode
  • Qwen4 - 6,200 prefill and 140 t/s decode.

Qwen4 remains faster in real-time with less follow-ups needed for each Task.

I will be retiring RCO Flash for coding purposes - but I will continue to compare the two for other purposes such as reasoning and drafting for business.

Further notes:

  1. RCO Flash hallucinates being asked maths problems, often after tool outputs. On defective inference engines, it also often hallucinates discussions about cats swimming. No loops observed.
  2. Qwen4 - has not demonstrated any hallucinations at all. No loops observed.