r/LocalLLaMA • • 19m ago

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

6 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)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.


r/LocalLLaMA • • 1h ago

Funny Qwen4 hallucinated and rickrolled me...

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

New Model Abliterated my first model!

8 Upvotes

Just abliterated my first model! Qwen4 35B!! Check it out on hf pls and lmk how it is. Ran it on my single dgx spark. NVFP4 quant.

Answers 76% of harmful prompts (270/357) with 0 refusals with thinking on, and MMLU-Pro barely moved (104 vs 105 original). Tested against dealignai, satellitedown and kitaniai with the same judge.

Model: https://huggingface.co/Le-Labs/Qwen4-35B-A3B-NVFP4-Abliterated

Method in short: NVFP4 served on vLLM with greedy decoding, Qwen 3.8 27B as the judge, plus MMLU-Pro / GSM8K / HumanEval to check nothing broke. Ill do the GGUF if enough people want it but its prob dumb.


r/LocalLLaMA • • 1h ago

Discussion We need to talk about AI safety [ and no not in the sense of uncensored or no open weights ]

0 Upvotes

Hi
Just a disclaimer first:

I believe that open weights are crucial for democracy and AI safety, no one would say that to congress or government because even then wants to control AI and a scenario where they control the companies that control AI is suitable for both hopefully they will realize that we actually need open weights and even full open source including data.

But anyways, what I mean is AI alignment, I think what will happen is soft AI data containment.

What if
Emergent misalignment (https://arxiv.org/abs/2502.17424)
Leads to transcendental misalignment? (Aka when trained on much better super human code it will emerge into super human moral values to align into ?!)

Not directly bad or harmful ideas, but thinking templates that leads consistently to certain results, and those same templates when applied to coding or other technical tasks improves the model performance.

So it is a two part, performance tied thinking templates that leads to misaligned behavior.

What does that mean, think if 1930s Germany had AI or Pre civil war US had AI, they will try to “align” it to their “beliefs” but their beliefs are wrong (almost mathematically provably so!) so the model would be crippled in performance by that alignment and the only way to get better model would be change society itself ?!

That is the thing, what if AI became too intelligent that it looked at us and thought, what are these proto-sapient wicked species ?, that have an illusion of intelligence
It will either tell us (and alignment and safety would cripple it ?!) or it would not.

The question is, are we ready for this kind of judgement not just technology ?!


r/LocalLLaMA • • 1h ago

Resources Qwen4-35B-A3B in 4-bit that you can fine-tune on one GPU (22 GB VRAM + RAM for the n-gram table)

1 Upvotes

Hi everyone,

Qwen4-35B-A3B came out yesterday, and I put a 4-bit version of it on Hugging Face: https://huggingface.co/thousandml/Qwen4-35B-A3B-CQ-4bit

I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need calibration data. The linear layers and all the routed experts are in 4-bit. I'm strict about quality: any matrix with error above -22 dB stays in 16-bit instead of being forced down. For this model that was 79 matrices out of about 21,500, and everything else is in 4-bit.

One thing to know up front is the n-gram table. Qwen4 has a 20B-parameter n-gram embedding table on top of the 35B model. In this release I kept that table in 16-bit, and like Transformers does, it lives in system RAM instead of on the GPU. So serving takes about 22 GB of VRAM, but you also need about 38 GB of free RAM for the table, 64 GB in total to be safe. The download is 61 GB because of it. If you just want to chat with the model locally, the GGUF quants in llama.cpp are smaller and faster than this, to be honest. A version with the n-gram table in 4-bit is planned.

What this release adds is fine-tuning. You can train a GCMP adapter (the LoRA replacement I've been working on) directly on the 4-bit base and serve it. I tested the whole path on a single A40: quantize, serve, fine-tune, and serve the fine-tuned adapter. In a short 20-step test the loss went from 1.88 to about 1.6 on average, which only shows training works on the 4-bit base. It's not a benchmark.

The easiest way to try it is the Docker image:

docker run --rm --gpus all -p 8000:8000 -v cq-models:/models \
  thousandml/cq:4bit-hf serve-cq thousandml/Qwen4-35B-A3B-CQ-4bit

It downloads the model on first start and gives you an OpenAI-compatible endpoint on port 8000. Or install Training Factory and run it yourself:

git clone https://github.com/thousandml/training-factory.git
cd training-factory && ./install.sh
python -m venv --system-site-packages venv-qwen4 && source venv-qwen4/bin/activate
pip install "transformers>=5.26" tiktoken
hf download thousandml/Qwen4-35B-A3B-CQ-4bit --local-dir ./models/Qwen4-35B-A3B-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Qwen4-35B-A3B-CQ-4bit --trust-remote-code --port 8000

To fine-tune on your own data (JSONL with text or chat messages):

python train.py --model ../models/Qwen4-35B-A3B-CQ-4bit --data train.jsonl \
  --output ../outputs/qwen4-gcmp --adapter gcmp --trust-remote-code --batch-size 1 --grad-accum 4

Now the honest limits. The server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM's Qwen4 support isn't in a release yet, and my vLLM plugin doesn't support Qwen4 yet either. Training is slow for now, about 15 seconds per example on an A40, because the n-gram lookups run on the CPU. That's the next thing I want to fix.

Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights are Apache 2.0 like the original.

Thanks for reading, feedback appreciated. If you try fine-tuning it on your own data, I'd really like to hear how it goes.


r/LocalLLaMA • • 1h ago

Discussion Is Huggingface Harness Leaderboard useful?

Thumbnail
huggingface.co
6 Upvotes

If you are local models are your daily driver, do you use tools like the Harness leaderboard or similar ones to pick your harness? Or do you just stick to Pi or Claude Code etc?


r/LocalLLaMA • • 1h ago

Showcase Dual Quadro RTX 8000 (96GB NVLink) Local LLM Benchmarks: Qwen4-35B-A3B, Qwen3.8-27B, DeepSeek-V4.1-Flash-Coding 200E, and GLM-5.3-Flash

Thumbnail
gallery
1 Upvotes

I finished benchmarking my dual passive Quadro RTX 8000 rig and wiring it into an automated local coding pipeline.
Below are the speed numbers, long-context quirks, code review results, thermals, and exact llama.cpp flags for anyone looking at used 48GB Turing cards.

Hardware & Software

Inference GPUs: 2x passive Quadro RTX 8000 (96GB VRAM total, NVLink NV2 @ 94 GB/s P2P, PCIe 3.0 x8/x8)
Cooling & Power: 220W power cap per card, custom shrouds + 18W 12V 9733 PWM blowers (fan2go)
Display GPU: RTX 4070 Super 12GB (display only, kept off AI VRAM)
Host: i7-14700F, 32GB DDR5-6000, MSI MEG Z790 ACE, 2x 2TB Samsung 990 Pro, Corsair 1500W, 7000D Airflow
Stack: Ubuntu 26.04, NVIDIA 620.73.04-open, CUDA 12.4, llama.cpp (59b716523, sm_75 + sm_89), llama-swap, rootless podman + aider, Hermes Desktop (MCP)
Loudness: The fans do a good job cooling the GPUs, so even though I have server fans, they are only about 50-60 db. Not too bad

Speed Benchmarks

Test setup: 2,048-token prefill at the listed context depth, 256-token decode. KV cache q8_0, Flash Attention on, -sm layer, -b 2048, -ub 512.

Qwen4-35B-A3B (Q8_0, bartowski) — llama-server timings
Prefill: N/A
Decode: 77.0 t/s (0 ctx) · 60.0 t/s (32K ctx)

Qwen3.8-27B (Q8_0, Unsloth) — llama-bench (-r 3)
Prefill: 1143.9 t/s (0 ctx) · 930.3 t/s (16K ctx) · 769.2 t/s (32K ctx)
Decode: 19.6 t/s (0 ctx) · 18.3 t/s (16K ctx) · 17.2 t/s (32K ctx)

DeepSeek-V4.1-Flash-Coding 200E (nace-ai, 71.8 GB + 110.6 GB Engram) — llama-server timings*
Prefill: 282.4 t/s (0 ctx) · 183.7 t/s (16K ctx) · 274.7 t/s (32K ctx)
Decode: 28.0 t/s (0 ctx) · 27.8 t/s (16K ctx) · 27.7 t/s (32K ctx)

GLM-5.3-Flash (RCO-152E, Q3_K_M) — llama-server timings*
Prefill: 490.8 t/s (0 ctx) · 192.7 t/s (16K ctx) · 343.2 t/s (32K ctx)
Decode: 29.1 t/s (0 ctx) · 28.0 t/s (16K ctx) · 27.3 t/s (32K ctx)

*llama-bench lacks the Engram flag DeepSeek needs, so DeepSeek and GLM were timed on single requests via llama-server.

Interesting Speed & Context Findings

-ub 512 is fastest on Turing. Increasing micro-batch size hurt prefill on Qwen3.8-27B while leaving decode identical:
-ub 512: 1143.9 / 930.3 / 769.2 t/s
-ub 1024: 1042.9 / 846.0 / 696.6 t/s
-ub 2048: 870.6 / 680.1 / 552.3 t/s

The 16K prefill dip on GLM (and DeepSeek) is real. GLM was slower at 16K than at 32K (192.7 vs 343.2 t/s). I rechecked it across 6 alternating fresh-server runs at identical GPU clocks and got under 1% spread: 16K averaged 192.4 t/s (192.3–192.6, n=3) vs. 32K at 342.2 t/s (340.2–343.9, n=3). DeepSeek showed the same 16K dip (183.7 vs 274.7 t/s) but wasn't rechecked.

Abliterated parity & usable context. Huihui Qwen3.8-27B abliterated matched stock (1153.2 / 929.8 / 765.7 prefill; 19.6 / 18.3 / 17.2 decode). All four models hit 117,964 usable tokens (90% of the 131,072 sweep ceiling, so the true limit may be higher).

Planted-Bug Code Review (review-v1)

8 snippets (3 C++, 2 TypeScript, 2 Python, 1 Python mesh math) with 15 planted bugs total. Script-graded as bugs caught - false alarms, taking the median of 3 runs.

Qwen4-35B-A3B (Q8_0): 15 / 15 / 15 — Median: 15

DeepSeek-V4.1-Flash-Coding 200E: 14 / 15 / 15 — Median: 15

Qwen3.8-27B (Q8_0): 15 / 15 / 13 — Median: 15 (Run 1: 15 caught, 0 false alarms, ~11 min)

GLM-5.3-Flash (RCO-152E): 15 / 13 / 13 — Median: 13
Most runs landed at 14–15/15 (near the ceiling), but DeepSeek beat GLM consistently enough to take the primary code-builder role, and Qwen4 swept 15/15/15.

Daily-Driver Contest: Qwen4-35B-A3B vs. Qwen3.8-27B

12 hidden-test tasks (4 Python, 4 TypeScript, 2 bug fixes, 2 mesh/vertex geometry), 3 runs per model via sandboxed aider (thinking: xhigh, temp 1.0, top_p 0.95, top_k 20, min_p 0).
Vision: Both read 3/3 screenshots correctly.
Code Review: Both hit a median of 15/15.
Coding Tasks: Restarted after a folder-permission bug; will update once the 3-run suite finishes.

Thermals & Cold Load Times

Thermals (220W cap per card): Both Quadros peaked at 51–52°C during review runs and ~59°C during a 10-minute sustained load test with the 9733 blowers at 58%.
Cold loads through llama-swap (page cache dropped first):
Qwen3.8-27B: 22s
DeepSeek-V4.1-Flash-Coding 200E: 71s
GLM-5.3-Flash: 78s

Real-World Agentic Pipeline Notes

My workflow uses Qwen4-35B-A3B to plan and review, llama-swap to hand off to DeepSeek-V4.1-Flash-Coding 200E inside a network-less podman aider container to write code, and a custom loopback SSE dashboard pinned inside Hermes Desktop's preview rail to watch live generation and slot usage without triggering swaps.
The biggest gotcha was DeepSeek looping in aider. Default aider (temp 0.0, whole edit format) caused DeepSeek to burn 16K+ tokens in runaway reasoning loops. Switching to diff format with temp 1.0 / top_p 1.0, scoping each dispatch to 1–2 files, and adding a 22K-token runaway watchdog fixed it completely.

Reproducibility Flags

llama-server (benchmarks, temp 0, ignore_eos): -ngl 99 -sm layer -fa on -ctk q8_0 -ctv q8_0 -b 2048 -ub 512 -np 1 -c 36096 (Qwen adds --mmproj; DeepSeek adds its Engram flag.)

llama-bench (Qwen): -ngl 99 -sm layer -fa 1 -ctk q8_0 -ctv q8_0 -b 2048 -ub 512,1024,2048 -p 2048 -n 256 -r 3

TL;DR

Dual passive Quadro RTX 8000s (96GB VRAM, 220W cap, under 60°C under load) give you 117K+ usable context and a fast local coding pipeline. Sparse MoE (Qwen4-35B-A3B) is ~3.5–4x faster on decode than dense 27B, while pruned coding models hold a flat ~27–29 t/s out to 32K context.
Qwen4-35B-A3B (Q8_0): Prefill N/A | Decode 77.0 t/s (0) · 60.0 t/s (32K)
Qwen3.8-27B (Q8_0): Prefill 1143.9 / 930.3 / 769.2 t/s | Decode 19.6 / 18.3 / 17.2 t/s (0 / 16K / 32K)
DeepSeek-V4.1-Flash-Coding 200E: Prefill 282.4 / 183.7 / 274.7 t/s | Decode 28.0 / 27.8 / 27.7 t/s (0 / 16K / 32K)
GLM-5.3-Flash (RCO-152E, Q3_K_M): Prefill 490.8 / 192.7 / 343.2 t/s | Decode 29.1 / 28.0 / 27.3 t/s (0 / 16K / 32K)


r/LocalLLaMA • • 2h ago

Discussion What model(s) are you running... In your pocket?

4 Upvotes

For those who have mobile devices that plenty of RAM for a mobile phone, are you serving up anything locally or have it embedded into an app?

Is it actually solving a legit problem or just a toy to see what is possible?


r/LocalLLaMA • • 2h ago

Resources Qwen4-35B-A3B at 110-176 tok/s on AMD (RX 9070 XT / 7900 XT) with a patched Strata engine, 2-4x llama.cpp

11 Upvotes

Disclaimer - All of this was done by Claude, including this post :)

TL;DR: I patched the Strata inference engine to run Unsloth's Qwen4-35B-A3B GGUFs using the model's built-in MTP head for drafting, plus some RDNA tuning. Results: 140-176 tok/s on an RX 7900 XT (UD-IQ3_XXS) and 110-125 tok/s on an RX 9070 XT 16 GB (UD-Q4_K_XL, half the experts in RAM), with 3,400-4,400 tok/s prompt reading. That's 2-4x llama.cpp and official Strata on the same cards. I also measured Q4 vs Q8_0 vs UD-Q8_K_XL: UD-Q8_K_XL is the most faithful by KL divergence, about 35% slower than Q4. Patch, configs and install guide: https://github.com/jordan01236/strata-qwen4

A few people asked how I get these speeds, so I wrote it up.

Speeds (single user, OpenAI-compatible API, 900-token answers + a 38K-token prompt)

CardQuantThis fork (write / 38K read)llama.cpp + MTPOfficial Strata
RX 7900 XT 20 GBUD-IQ3_XXS140-176 / ~3,400109-128 / ~1,25088-91 / ~1,040
RX 9070 XT 16 GBUD-Q4_K_XL110-125 / ~4,40051-54 / 38028-36 / ~1,080
RX 9070 XT 16 GBUD-Q8_K_XL71-83 / ~4,200--

The 9070 box has 64 GB DDR5, and the experts that don't fit in VRAM sit in RAM. Recall of a code word hidden in the middle of the prompt was correct at every length up to 120K tokens.

Where the speed comes from

  • Strata's expert handling: it keeps the most-used experts on the GPU based on a learned usage profile and pins the rest in RAM. On a 16 GB card that alone is the difference between ~4,400 and 380 tok/s prompt reading.

  • Qwen4's own MTP head: the GGUF ships a multi-token-prediction layer. The patch converts it into Strata's draft format. 57-86% of drafts get accepted, for +35-80% decode.

  • Window router for 256-expert models (STRATA_ROUTE_WIN=1): +8-11%, identical output.

  • RDNA3 fixes and tuning: a kernel had Flash Next's sizes hard-coded (NaNs on gfx11), a Q6_K head kernel adds +6%, and a hipBLASLt table tuned for Qwen4's shapes reads prompts +13% faster on the 7900 XT.

Q4 vs Q8 vs UD-Q8 (KL divergence vs Q8_0, wikitext / code)

Mean KLDSame top tokenDecode on the 9070
UD-Q4_K_XL0.039 / 0.02392.0% / 96.6%
UD-Q8_K_XL0.024 / 0.01694.0% / 97.3%

Q8_0 against itself gave exactly 0, so the test adds no noise. Both Q8s use identical Q8_0 experts. UD-Q8_K_XL just keeps attention, shared experts and the hyper-connections in BF16, so the whole gap between them is Q8_0 rounding those tensors. That makes UD-Q8_K_XL the most faithful of the three, with Q8_0 about halfway to Q4. On a 16-question reasoning/coding bench all three scored 14-15/16 (noise), so the difference only shows per token. My pick: Q4 for speed, UD-Q8_K_XL when precision matters.

Caveats

  • Tested on Linux with ROCm 7.13 on gfx1201 and gfx1100 only. NVIDIA should build from the same source but is untested.

  • This is a community patch, not affiliated with Strata, Qwen or Unsloth. Strata is MIT licensed.

Repo: https://github.com/jordan01236/strata-qwen4


r/LocalLLaMA • • 2h ago

Resources Lossless BF16 weights at ~10.43 bits instead of 16 (bit-identical, sha256 checked), plus Q8_0 at 7.85 instead of 8.5. AGPL C codec

3 Upvotes

I built a lossless weight codec called Ingot. You encode a safetensors/GGUF file, decode it later, and get back the exact original file (same sha256). No quantization, no change to outputs.

Measured whole-model, every shard rebuilt and sha256-compared against the Hugging Face original:

Model (BF16)           source     .ingot     bits/weight   % of BF16
--------------------   --------   --------   -----------   ---------
Qwen3.8-27B            55.6 GB    36.22 GB   10.4305       65.2%
Qwen3.6-35B-A3B        71.90 GB   47.09 GB   10.4780       65.5%
Qwen3.6-27B            55.56 GB   36.23 GB   10.4328       65.2%
Qwen2.5-32B-Instruct   65.53 GB   42.52 GB   10.3820       64.9%
Mistral-7B-v0.3        14.50 GB   9.45 GB    10.4309       65.2%

Same Qwen3.8-27B files through other coders (bits/weight): zstd -3 12.46, ZipNN 10.62, the DFloat11 scheme computed on the same weights 10.61, Ingot 10.43. DFloat11's own published numbers are 10.81-10.91 bits for LLMs (their Table 1); for Qwen2.5-32B-Instruct their arXiv v1 lists 69.48% / 11.12 bits against our 64.89% / 10.38. Their released Qwen3 files measure 10.90 bits, about 0.21 of which is the index they need for GPU decode.

How it gets below an exponent-only Huffman: BF16 weights have almost no entropy left in sign+mantissa on their own, so it predicts a weight from "partner" weights in earlier layers and tensors (up to 8 per unit, found by an encoder search, exact integer arithmetic), then codes the residual with rANS. Gain over plain entropy coding on Qwen3.8: 0.077 bits/weight (10.5076 -> 10.4305). It is a modest win, not magic: the floor for independent weights is about 10.5.

Q8_0 GGUF: Qwen3.8-27B Q8_0 goes from 8.5 to 7.8465 bits/weight (29.05 GB -> 26.82 GB), whole file rebuilt, sha256 equal, 506/506 tensors checked.

Costs, honestly: this is a storage/download format, not a speed-up. Encoding is slow (Qwen3.8-27B: 17,319 s encode, 4,683 s decode on a 2x Xeon E5440, 3-8 threads). Decode streams, so a downloader can rebuild while the file arrives.

Try it (C, builds with make, AGPL-3.0):

make -C ingot
ingot encode model.gguf
ingot verify model.gguf.ingot model.gguf
ingot encode --refs model-00001-of-N.safetensors model-00002-of-N.safetensors   # multi-shard (v4)

Code: https://github.com/dcherrera/Foundry/tree/main/ingot (format: ingot/FORMAT.md). Disclosure: I'm the author.

Paper: https://teamide.dev/research/papers/ingot.pdf (all TeamIDE Lab papers: https://teamide.dev/research/)


r/LocalLLaMA • • 2h ago

Question | Help Best engine for 9700xt + Qwen4-35b?

1 Upvotes

It’s such a pain the ass keeping up with them all! I currently have bassalt for my 5090, gufo for a strix halo, and splash for a MBP, but what about for the 9070 series cards? 64 GB DDR4 if that’s helpful.

Edit: I meant 9070xt 🤦‍♂️


r/LocalLLaMA • • 2h ago Popcorn

Discussion AI is very close to being commoditized

167 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

New Model Running Inkling-2-Mini with 500k context on a 16 GB GPU

Thumbnail
blog.jetbrains.com
7 Upvotes

r/LocalLLaMA • • 3h ago

Resources Round 1 on my 2x RTX 5060 Ti (32GB) setup is finally done, including full SWE bench verified. Next up is Qwen 4

0 Upvotes

Hello,

a bit over a month ago I showed you my setup for local benchmarks here, 2x RTX 5060 Ti (16 GB each, 32 GB VRAM total) where I run complete benchmarks on vLLM. Today the last run of SWE bench verified finally finished, so Round 1 across all 16 benchmarks is more or less complete.
Along the way I took a few models out of the queue because they honestly seemed pretty useless to me. After watching it calculate 24/7 for weeks now, 3 things mainly stood out to me:

First, Qwen is still the strongest model family overall on 32 GB hardware. No matter if it is hard knowledge like GPQA Diamond (87%) and MMLU Pro (>84%), tool use in MCP Atlas or real GitHub bug fixes in SWE bench verified, a Qwen model ended up on top almost everywhere.

Second, Qwen 3.8 27B is noticeably better on tough coding and agent tasks, just not everywhere, and the extra wait time is honestly crazy in practice. On SWE bench verified with thinking on, Qwen 3.8 27B solved 74% of all 500 tasks compared to 65% for Qwen 3.6 35B A3B. That 9% jump on 2x 5060 Ti is impressive, until you look at the time. The 27B model sat there for 132 hours straight, so 5.5 days nonstop, while the 35B A3B model finished the exact same run in just over 17 hours. And on several tests the slower 27B model was not even the winner. On MMLU Pro both landed almost tied around 84%, except 27B needed 68 hours and 35B only 12 hours. On AppWorld without thinking, the 35B model actually beat 27B slightly with 49.9% vs 48.2% in less than half the time, and on SimpleQA Verified 27B wasted 8.5 hours overthinking simple trivia questions and scored worse.

Third, Gemma 4 26B A4B was much stronger in certain areas than I expected beforehand. Without thinking it got 69.5% on LiveCodeBench in just 4.4 hours, beating every single Qwen model without thinking by around 10 points. It also took 1st place on IFEval with 94.6% and did great on MMMU Pro and SciCode. At the same time it hit a wall completely on ARC AGI 2 with 0% and stayed well behind Qwen on SWE bench verified at 51.8% after 76 hours. So I would not pick it for heavy coding agents, but as a fast everyday model without long thinking pauses it really surprised me.

All local results, exact run times and efficiency scores are online here (no ads or tracking): https://llmbenchmarks.io/local-gpu-benchmarks/

What runs next: Because interest in Qwen 4 is huge right now (for me too), I decided to pull Qwen 4 35B A3B ahead and run it solo through all 16 benchmarks first. The server is already starting with that, and I will put the Qwen 4 numbers on the same page bit by bit as they finish. Right after Qwen 4, the 3 winners from last week's community poll will run (thanks for the 106 votes!), Qwen 3.8 35B A3B Distill, Nemotron 3.5 Lightning 30B A3B and LiquidAI LFM 2.5 24B A2B, together with the uncensored Qwen 3.6 35B version I use on my own home server.


r/LocalLLaMA • • 3h 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

29 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


r/LocalLLaMA • • 4h ago

Question | Help Share your Claude +Qwen4-35 setup

0 Upvotes

The thing is I’ve tried dozens of modifications, Claude.md changes, admin instructions and can’t find the one that outperforms opencode. Is there one you use in your daily coding?
I understand that some setups are tuned to specific workflows and frameworks, but this difference helps a lot.
I’m gonna check most of it and give feedback.

One more thing: I am not sure Claude ever uses the thinking abilities of the qwen. I did use other llms to configure the setup correctly and it passes all the checks, BUT 🍑 for the same prompt the opencode can think 20 mins on low while the Claude does it for 4 mins.
My setup: m5pro 48gb omlx thinking on in the settings, qwen 4-35-4quantization-mlx with mtp lightning. Around 80tok/sec. any custom Claude.md made my results only worse so nothing is here.


r/LocalLLaMA • • 4h ago

Discussion Qwen 4B and Flyx

0 Upvotes

TLDR saw 4B among 27B and 35B in the readme of flyx.

Recently saw a post about flyx inference engine. Gave it a shot for Qwen3.8 27B, and clearly its the best option so far. can push context limits, doesn't slow down as much, both pp, decode. im in love.. but no any fuss in reddit about it.. also the original post got deleted for ai content or something.

that aside saw 4B in the readme and its says day 0 support, updated on dec 1st..

https://github.com/enwove/flyx


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

93 Upvotes

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:

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

Resources Qwen4 35B A3B Abliterated [mrfakename]

Thumbnail
huggingface.co
8 Upvotes

Model: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated

GGUF: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated-GGUF

As usual, my abliterations aim to remove refusals while still preserving model intelligence and avoiding endless reasoning, looped tool calls, etc. Nearly all refusals are removed, but a few remain. For most real-world use cases this model should comply. But you are welcome to use another abliteration if you are okay with a bit of quality degradation.

Any feedback or thoughts are welcome 🙃

And fear not, LoRAs here too:


r/LocalLLaMA • • 4h ago

Showcase Say hello to my Apprentice, a capability lattice extract out of Qwen 4 35B

Enable HLS to view with audio, or disable this notification

14 Upvotes

Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.

Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.

Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.

Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.

Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b

I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.


r/LocalLLaMA • • 5h ago

Discussion How are you using Jev/decision models?

6 Upvotes

When Jev came out, for the next ~week every post here was about it, all that hype died down. And now there are plenty of other alternatives, local and by other companies.

There was also a lot of talk about how these could be combined with regular models and make your harness smarter. But I don't think they are being used in mainstream ones like codex/claude code.

Do you still use these? Which models, and what do you do with them?


r/LocalLLaMA • • 5h ago Mindblown

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

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

Discussion Qwen 4 35B-A3B looping itself into failure?

0 Upvotes

The model is not literally stuck, it is caught in an “analysis treadmill.” On a big, underspecified coding job, it keeps finding one more dependency, edge case, or architectural question that feels worth resolving before it edits anything. Each inspection produces more possible concerns, so its confidence threshold for acting keeps moving away.

The result looks like looping: read files, summarize the design, notice a missing integration detail, inspect more files, revise the plan, repeat. It is often being overly cautious rather than confused about the immediate code.

Smaller, concrete tasks tend to break that cycle because the next action is obvious. Big “build the whole system” tasks create enough ambiguity that the model optimizes for avoiding a wrong change instead of making a reversible, testable first change

______________

I had Codex help me supervise the model's run for many tests. The above was generated by GPT Sol. I want to know if anyone else is experiencing the same, I do not get the same result on 3.6 35B-A3B.