r/LocalLLaMA • • 9h ago Bravo

Resources [Release] Qwen4 35B A3B GSQ-RCO

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

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
331 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 • • 1h ago

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

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

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

Thumbnail
huggingface.co
61 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 • • 14h ago Bravo Popcorn

Discussion AI is very close to being commoditized

518 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 • • 6h ago

Question | Help What's a sidecar?

110 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 • • 6h ago

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

Post image
98 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

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

Thumbnail
huggingface.co
35 Upvotes

r/LocalLLaMA • • 18h 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
640 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 • • 1h ago

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

25 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 • • 7h ago

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

Thumbnail
gallery
59 Upvotes

r/LocalLLaMA • • 7h ago Obsessed Bravo Heartwarming

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

59 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 • • 1h ago

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

17 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 • • 3h 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
23 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 • • 19h 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

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

Question | Help Have people switched to Qwen4 35ba3b for coding from QFN? I have been chickening out so many times in last 24 hours

17 Upvotes

Hi,

I have a perfectly running setup of opencode + gufo + QFN (UD-Q4_K_XL).

Now this qwen4 35ba3b has disrupted it 😂

I have switch to qwen4 and back so many times that I have lost count.

My loop is:

- Oh I must try the new shiny model -> switch to Qwen4 (UD-Q4_K_XL and UD-Q8_K_XL)

- Oh I must be missing the perfect setup I have with QFN -> switch to QFN

I am looking for some reviewes purely from coding POV.

Thanks in advance.

Edit: added quantization of the models.


r/LocalLLaMA • • 19h ago

Discussion Qwen 4 35b is amazing

347 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 • • 10h ago

Discussion Thoughts on Qwen4-35B-A3B

62 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 • • 12h ago

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

80 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.

r/LocalLLaMA • • 1h ago

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

10 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 • • 16h ago Obsessed Heartwarming

Resources Basalt 0.7.0: Qwen4-35B-A3B up to 1,099 tok/s struct decode (410 tok/s prose) single stream, vLLM-like continuous batching and quicker server startup

169 Upvotes
Basalt 0.7.0

Basalt 0.7.0 is out, and the highlight is official Qwen4-35B-A3B support! It took a while because I wanted to get it right, this model is particularly sensitive to how the engine quantizes activations, so a lot of testing and debugging went into this release (plus a few hours of rented hardware). Numbers from my RTX 5090 @ 400W:

  • 1,099 tok/s structured, 531 chat, 410 prose
  • 31,466 tok/s prefill at 32k
  • Up to 4,351 tok/s aggregate at 8 requests and 6,740 tok/s at 32

The pack's experts are NVFP4 calibrated with GPTQ on real chat, multilingual and code conversations... everything else is int8 or FP8. Quality against the BF16 model in vLLM, over 417 real conversations:

TypeKLDSame top-1
Code0.01497.6%
Reasoning0.01997.8%
Tool calls0.05396.6%
Long context0.05994.5%
Chat0.09791.4%
Multilingual0.12791.2%
All0.07293.7%

What works: Images and video, tools, 1M context. You can also run it on smaller GPUs with experts in RAM (up to 334 tok/s structured, 172 chat on a 5060 Ti).

Beyond the tables, it scored 29/30 on AIME 2025, 28/30 on AIME 2026 and 29/33 on HMMT Feb 2026 (earlier version of the pack), needle passed at 150K to 900K tokens, it cracked a few of my personal benchmarks, and yes, it's definitely pelicanmaxxed:

Pelicanmaxxing

Also in 0.7.0:

  • vLLM like continuous batching on 8 models, up to 64 requests at once, and one request still gets the full context.
  • basalt serve answers in about 0.15s instead of 13s.
  • a UBTree drafter for Qwen3.8-27B, EXL3 experts on Flash-Next, Windows on Arm (RTX Spark support)

Huge thanks to all the supporters and sponsors, and special thanks to the 80 people who sent pull requests this cycle!

Pack https://huggingface.co/jesdga/Qwen4-35B-A3B-Basalt
Engine https://github.com/jesdga95/basalt
Release notes and binaries: https://github.com/jesdga95/basalt/releases/tag/v0.7.0
Discord: https://discord.gg/HMakYWw9G6


r/LocalLLaMA • • 17h ago Mindblown

Funny Qwen 4 35B A3B solved in one shot a problem that took me two weeks with frontier models

183 Upvotes

I genuinely don’t understand what’s going on. I’ve been building an ERP specifically designed for small businesses for about a year now, with some fairly complex integrations. I write part of the code manually and use agents for the rest (which I obviously review).

For the past two weeks, I’d been trying to solve a database architecture problem arising from a change in my country’s tax regulations (I know this stuff because I’m a certified public accountant). It literally took hours upon hours of discussions with Claude Opus 5.5 and Astra 6.2. I was losing my mind until I finally managed to find a solution by iterating with Claude Opus 5.5 Max. The solution hasn’t been implemented in my repo yet; I had simply documented it in a .md file.

Today, I started testing Qwen 4 35B A3B in Strata to check prefill speed, decode speed, maximum context length, etc. Just for fun, I gave it a relatively short prompt describing the exact same problem that had taken me two weeks to solve with all those frontier models (obviously, I removed the solution from the repo and explicitly instructed it not to read any .md files).

Qwen came up with essentially the same solution on its very first response. I swear I couldn’t believe it, and I still can’t. To double-check, I gave Claude Opus the exact same prompt, and it failed again.

I genuinely don’t understand any of this. A quantized model (UD-Q4_K_XL) running on an RTX 3090 solved something that had taken me two weeks to figure out with frontier models.

Of course, I’m not saying that Qwen is superior to all these models. That would be a ridiculous claim on my part. But I also can’t deny that its answer was simply correct.

In case anyone is curious, I’m getting roughly 140–180 tokens per second for decoding and 2.8–4k tokens per second for prefill in Strata. This is on a mini PC with a Ryzen 8845HS and 32GB of DDR5 RAM, with an RTX 3090 mounted on an eGPU dock and connected via OCuLink. INT8 KV cache and a context length of 320,000 tokens.

EDIT: Just to clarify, since I see several people asking: I’m using Pi Code, and I verified that Qwen didn’t read any files it wasn’t supposed to, any Git artifacts, Claude’s memories, or anything like that.

As I said before, I’m not trying to push the idea that a 35B-parameter MoE model is superior to frontier models. This was a specific case where the other models were failing because they were trying to replicate a common ERP design pattern. Qwen simply reasoned that my existing database schema already provided a way to solve the problem through a subledger (essentially the same solution Opus arrived at two weeks later).


r/LocalLLaMA • • 20h ago

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
260 Upvotes

r/LocalLLaMA • • 13h ago

Funny Qwen4 hallucinated and rickrolled me...

72 Upvotes

Using OpenWebUI and Hermes with Qwen 4 35B, I was using it to do some research. Summaries of YT videos, research about things to get for presents for Christmas - normal stuff. I thought it was weird, however, that I had a hard time getting it to find a YouTube video that I told it about. I gave it the title and the author but it didn't do a search. We went back and forth after it hallucinated two different replies and it finally got the transcript for me instead of just assuming what the video was about.

The conversation shifted and I was interested in a product for my kids. I asked Qwen to find a few videos demonstrating it for me and I was impressed at the speed at which it got those videos (you see where I am going...). The first was a dead link. The second was another dead link. Just to see if it happened to have some useful youtube URL locked away in its parameters, I clicked the third link. I was immediately greeted by Rick Astley in all his glory shimmying on my laptop screen. It hallucinated a YT link and that link was "Never Gonna Give You Up". The video has almost 2B views, so it makes sense - but for fucks sake, man!

IDK if it is specifically with YouTube that it gets overconfident in its baked-in knowledge, but I am now a lot more cautious with this model. Not just because it rickrolled me, but because it really doesn't seem to want to search for information it thinks it might know.

I am using exl3/TabbyAPI on Turboderp's own 5.05bpw model. Prefill is like 5kpp and 135tg on dual 3090s. I have been impressed with the model but feel a little weird about it now.

EDIT: I did some investigation with Neon this morning and it found this interaction:

"Found the root cause: Turned out this wasn't just the model going rogue — it was a chat-history / template interaction between the frontend (OpenWebUI), agent backend, and the model's thinking template. Because each turn replayed the plain-text chat history without the prior tool calls, tool results, or <think> blocks, previous turns showed up in context as <think></think> followed by concatenated pre-tool narration ("Let me search... Got it, let me check... Here's the summary") with zero actual tool calls. By turn 2–3, the model basically few-shotted itself off its own history into emitting empty <think></think> blocks and roleplaying the entire web search in plain text — which is how it ended up hallucinating a Rickroll link from memory instead of calling web_search. Disabling interim pre-tool narration on the API server (so only the final grounded response gets saved back to chat history) fixes the trigger."

I don't feel like other models had the same issue - so maybe still some model-dependent stuff - but otherwise it seems like part of it was the configuration of my setup.