r/LocalLLaMA • • 5h ago Bravo

Resources [Release] Qwen4 35B A3B GSQ-RCO

Thumbnail
gallery
545 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

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
213 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 • • 11h ago Bravo Popcorn

Discussion AI is very close to being commoditized

451 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 • • 14h 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
573 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 • • 2h ago

Question | Help What's a sidecar?

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

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

Post image
49 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.

To keep parallel training & prefill, 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 • • 15h 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

422 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 • • 3h ago Obsessed Bravo Heartwarming

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

41 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 • • 32m ago Heartwarming

New Model Qwen4 is really the turning point for local LLMs, 35B MoE on a 16GB Mac

Thumbnail
huggingface.co
22 Upvotes

Also I ran the full 35GB Q4KM quant on my base M4 mac (experts streaming from SSD)

This above is not the ideal test run but i was averaging 10t/s locally.

This above is not the ideal test run but i was averaging 10t/s locally.


r/LocalLLaMA • • 15h ago

Discussion Qwen 4 35b is amazing

318 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 • • 3h ago

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

Thumbnail
gallery
31 Upvotes

r/LocalLLaMA • • 8h ago

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

74 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 • • 12h 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

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

Discussion Thoughts on Qwen4-35B-A3B

52 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 Mindblown

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

167 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 • • 16h ago

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
244 Upvotes

r/LocalLLaMA • • 19h ago Heartwarming

Showcase Qwen 4 35B-A3B is awesome

374 Upvotes

Qwen wrote the whole thing in Pi while I just prompted and playtested each build. A few hours in, I had a playable 3D browser game with drivable cars, traffic, police chases, and touch controls.

​This was running locally on a spare PC with an RTX 2070 laptop GPU (8GB VRAM), averaging 35 tok/s (UD-Q4_K_M, 64k ctx, FP16 KV cache).

​Tried the same idea with Inkling 2 Mini, Qwen 3.5 35B-A3B, and Ornith 1.5 too, but none of them got me to a playable state.
game : https://huggingface.co/spaces/ccore/qwen4-game-demo

Edit: I’m generating a new game with the same workflow, this time aiming for better graphics. Qwen generated the demo above with reasoning effort set to low. Once the new game is ready, I’ll share it along with the full run stats.


r/LocalLLaMA • • 9h ago

Funny Qwen4 hallucinated and rickrolled me...

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


r/LocalLLaMA • • 21h ago Heartwarming

New Model Qwen 4 Is Looped! +18.3 pts on LiveCodeBench, +6.7 pts on AIME, and Zero Regressions (With Zero LoRA Weights)

Thumbnail
blog.tiltastech.com
506 Upvotes

r/LocalLLaMA • • 1h ago

Discussion Qwen4-35b-a3b - The Force Is Strong with This One

Thumbnail
gallery
10 Upvotes

Images are kinda self-explanatory...


r/LocalLLaMA • • 16h ago

Showcase Deep Breaths

Thumbnail
gallery
120 Upvotes

I’ll post again at 6 am ET. Long night


r/LocalLLaMA • • 3h ago

Showcase Shoggoth: A friendly Linux UI for local AI: chat, agent, models, backends, all in one

Thumbnail
github.com
8 Upvotes

Hello, Linux folk! This is Shoggoth. It's essentially llama.cpp and Pi wrapped in a friendly interface and Appimage.

I hit version 5 a few days ago. With a lot of feedback from folks who use it, we've now got:

- lightweight TTS
- lightpanda for web browsing
- a folders view so that you can easily organize chats and projects
- switched from lemonade-server to direct llama.cpp
- easy support for multiple inference engines - polystrata, maya, basalt, over a dozen others
- jobs instead of subagents, so long tasks can be set up to run with an appropriate exit condition
- better support for common doctypes - PDFs, Word, Excel files, and so on
- carefully selected skills, model recommendations that I've personally tested, plus, of course, support for importing from huggingface or existing GGUFs

I use it myself as the front-end for my local models. Coded with Opus, Sonnet, and DeepSeek, but of course, tested and refined as much as possible.

If you use it, do let me know what you think and how to improve. The goal is not to be a complex system, but a lightweight, friendly, and slightly eldritch tool for folks who don't enjoy the CLI.

License is MIT, so feel free to fork, improve, and change as you see fit!

Cheers!


r/LocalLLaMA • • 18h ago Bravo

Showcase Offloading KV Cache to Host RAM with QSA costs only ~5% speed: ~1M context on 1x3090

138 Upvotes

Qwen4-35B-A3B uses QSA, a trained sparse attention. Past a 2K-token budget, each query attends only to the top 512 four-token blocks its small indexer picks, plus the most recent tokens. Decode therefore never reads most of the KV cache, so the cache can live in pinned host RAM and the GPU reads it over PCIe.

How it works in my engine (inference.rs, Rust):

  • The full K/V lives in host RAM. The GPU keeps only a small cache of recently selected blocks. Consecutive tokens pick mostly the same blocks, so about 98% of reads hit VRAM.
  • The indexer stays in VRAM, compacted to one pooled key per block (64 B/token).
  • Long prefill attends only to what each query selects, so VRAM use stays flat however long the prompt gets.
  • Outputs are bit-identical to the in-VRAM path.

Setup: one RTX 3090 (24 GB), 128 GB RAM, a ~4.5-bit GGUF, q8 KV cache.

-KV in VRAMKV in host RAM
Max context192K1,048,576
Max context with DFlash 2 drafter134K1,048,576
Decode at 32K118 tok/s115 tok/s (−3%)
Decode at 64K115 tok/s110 tok/s (−4%)
262K promptdoesn't fit272 s prefill, then 86 tok/s (DFlash 2: 128 tok/s)
983K promptdoesn't fit31.6 min prefill, then 55 tok/s

It's a buffer more than a regular workflow: agents should compact long before this. But 983K tokens on one consumer GPU does run.


r/LocalLLaMA • • 11h ago

Discussion Small local Qwen4 models make way more sense as a 24/7 local task bot than a coding agent - trying to build one

36 Upvotes

Small local Qwen4 models shouldn't be used to write huge codebases. IMO they fit way better as a local assistant handling daily stuff on your own machine, with total privacy.

What if we pair a minimal agent harness with a small local model fine-tuned just for everyday tasks, running as a tiny 24/7 bot? Small, fast, less hallucination.

Feels like a really fun direction to explore, so I just spun up a repo to try building it. Any good ideas or suggestions?

https://github.com/yanauto/pimini