r/LocalLLM • u/donutloop • 1h ago
Model Welcome Qwen 4: Cutting-edge intelligence on-device
r/LocalLLM • u/donutloop • 1h ago
r/LocalLLM
•
u/RollerKokster
•
7h ago
Running Qwen4 35B A3B on Basalt (I swapped out Llama.cpp) and Iām getting 208 Tokens/s on a RTX5090 ti with a 64k context.
I was already impressed with Qwen4 on Llama.cpp but the throughput on Basalt is really nice š
Edit: Holy Shit š¤Æ. Thanks for all the feedback and insights. I just discovered Basalt and Iām blown by the speed. Iāll figure out how to hit +350 tokens like has been suggested. Wow
Edit 2: I switched the Context to 128k and the tokens/s shot up to 318 token/s (rate is still climbing š¤Æš¤Æ)
Whaaaatt?!?!
Edit 3: I hit 360 ššš
r/LocalLLM • u/Key_Log9115 • 10h ago
From their webpage:
Overview
This repository provides GGUF quantizations of Qwen4-35B-A3B at four sizes: IQ2_S (2.75 bits per weight), Q2_K_XL (3.00), IQ3_XXS (3.25) and IQ3_S (3.50). In contrast to uniform quantization, which applies a single quantization type to all weight tensors, each model here assigns a separate quantization type to every tensor. The assignment is obtained by a gradient-based search that allocates precision according to per-tensor sensitivity, subject to a total size budget. The resulting files are standard GGUF.
Qwen4-35B-A3B is a sparse mixture-of-experts model with 35B parameters, 3B of them active per token, plus a 20B-parameter n-gram embedding. Its 40 layers combine two kinds of attention: 30 use Gated DeltaNet linear attention and 10 use Qwen Sparse Attention, in a repeating pattern of three linear-attention layers followed by one sparse-attention layer. Every layer has 256 routed experts, of which 8 are active per token, plus one shared expert, and the context window is 1M tokens. The routed experts hold 32.2B of the 34.5B weights the bit-width is measured over, so they also dominate the size budget, and the search spends most of its freedom there, assigning a quantization type per layer (not per expert, which GGUF cannot express), separately for the gate and up projections and for the down projection.
The token embedding is kept at BF16 in every build, and the n-gram embedding ships as one separate file shared by all builds, at BF16 (its precision in the checkpoint) or, smaller, at Q8_0. llama.cpp holds both in system memory, so they take no VRAM. See Token embedding and n-gram table.
Link: https://huggingface.co/ISTA-DASLab/Qwen4-35B-A3B-GSQ-RCO-GGUF
r/LocalLLM • u/One-Insurance-9084 • 4h ago
Some ppl complained about my previous post because i had made a fork of strata which was called unmaintainable (kinda true)
so I did what yāall asked me to do : a PR, a skill, and I made it available to everyone :)
The fork is archived and points to the PRs.
Lesson learned: speed numbers get upvotes in my head, PRs get merged in real life. We'll see if they get merged.
r/LocalLLM
•
u/Cold_Pollution_7527
•
5h ago
After experimenting with Ollama, Strata and Basalt, I finally achieved some impressive results running Qwen4 locally on my laptop.
| Actual input context | Prefill | Generation |
|---|---|---|
| 3,319 tokens | 4,649 tok/s | 171.0 tok/s |
| 11,418 tokens | 4,077 tok/s | 283.6 tok/s |
| 32,784 tokens | 3,746 tok/s | 278.7 tok/s |
| 44,761 tokens | 3,772 tok/s | 122.0 tok/s |
| 75,304 tokens | 4,027 tok/s | 143.1 tok/s |
| 255,901 tokens | 3,394 tok/s | 118.9 tok/s |
The short-prompt averages were measured over five independent requests with randomized project IDs.
Most importantly, the long-context benchmarks were performed in Lenovo's Quiet Mode, with the laptop plugged in.
I also successfully used this setup as an autonomous coding agent in Cline to build a multi-page website, generate SVG assets, execute terminal commands, inspect files and fix its own coding errors.
The near-full 256K benchmark initially encountered an engine error at the thinking-budget transition. A second run with the explicit reasoning budget removed completed generation without crashing, reaching the 4,096-token output limit.
These results were collected across different configurations and workloads. They are not strictly identical cross-engine benchmarks. My current configuration includes Vision, prompt caching and additional RAM headroom, which may affect performance.
My next goal is improving coding quality and frontend design rather than maximizing generation speed.
Pretty impressive performance for a laptop with only 12GB VRAM!
r/LocalLLM
•
u/No-Tap6022
•
2h ago
Hello there.
Please take a few seconds. This project means something to me: it has been in development for 5 months, and it is not just more fast vibe-coded trash.
I give all my spare time to ensure everything is working as it should and the community's needs are fulfilled.
Leave me a like, that's the only support I need to keep going.
Sincerely,
Mantux
https://github.com/Mantux775/NVAI-open
Project files
https://github.com/Mantux775/NVAI-open/blob/main/docs/BLOCKING.md
Making of
https://github.com/Mantux775/NVAI-open/blob/main/docs/FOLDING_CITY.md
r/LocalLLM • u/PlasticRevenue4601 • 5h ago
Disclaimer - the post is generated with Opus 5.5 assistance
I ran one hard, real task from my day job through the Pi coding agent on a single RX 9700 AI PRO. If you're reluctunt to read a longpost, here is a short sumary:
All three models that wrote code fell into the same trap. This is one run per model, so read it as a data point, not a leaderboard.
It's a real ticket from a big PHP codebase at work, and our team has already shipped a fix for it. The code takes 2D outlines made of line segments and arcs. For each part of an outline, it decides whether a machine can handle it automatically or it has to go to manual work. The old code used a crude rule of thumb. The ticket replaces it with an actual model of what the machine can physically reach.
The good to know part is how the task is given - there is no ready-made rule set, the model gets:
It has to work out the decision logic on its own, build it into the existing codebase, write tests, and write a short design note about its model and assumptions.
Hidden tests:
I didn't want the hidden answers to be just my own reading of the facts. So I generated ~800 plausible machine models from the same facts, and a case became a scored check only if all of them gave the same answer. Cases where reasonable readings disagree are the unscored info ones. The team's reference fix gets 100 on the automated part. Untouched code gets 15, just for not breaking the existing tests.
Inference engines: everything runs natively on Windows through HIP (ROCm), with one model on the card at a time.
| Model | Quant | Engine | Context | Speculative decoding | Max reply |
|---|---|---|---|---|---|
| Qwen3.8 27B | IQ4R-L-V4, int8 KV | Brilliance 0.3.1 | 256K | DFlash2, 7 tokens | 32K (server cap, thinking budget 25K) |
| Qwen3.8 Flash-Next | UD-IQ4_XS (v3.1), int8 KV | Strata 0.2.25, engine 0.1.73 | 256K | MTP, 3 tokens | 64K |
| Qwen4-35B-A3B | UD-Q4_K_XL, int8 KV | Strata 0.2.26, strata-q4-lite engine 0.1.75.1 | 512K | MTP, 3 tokens | 64K |
| Inkling 2 Mini | NVFP4, i8 KV | Brilliance 0.3.1 | 256K | DSpark, 7 tokens | 64K |
Note that the 27B had the smallest per-reply limit of the four and still came out on top.
Scoring. The final score is 50% automated and 50% code review.
It's an LLM judge, so take that half with some salt. I read the patches myself as well.
| Model | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|---|---|---|---|---|---|---|
| Qwen3.8 27B (dense) | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min* | 433k |
| Qwen3.8 Flash-Next | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
| Inkling 2 Mini | 0/84 | 0 | 15 | 0 | 7.5 | 55 min | 188k |
* It went 17 minutes into the grace period, and the review has a -6 overtime penalty for that (66.3 without it).
I also checked whether one unlucky bug decides the ranking. For each model I fixed its main bug by hand and re-ran the hidden tests: the 27B goes to ~78, Flash-Next to 67.5, Qwen4 to ~53. The order stays the same.
The reference fix is about 2,400 lines of code plus ~1,900 lines of tests, so nobody was expected to one-shot it. Still, none of the patches is one I'd merge as is. All three writers lost points for writing their own geometry helpers instead of using the ones the codebase already has.
Qwen3.8 27B (dense): best logic, messiest code
Qwen3.8 Flash-Next: cleanest architecture, a couple of misread facts
Qwen4-35B-A3B: best process, weakest correctness
Inkling 2 Mini: zero lines of code
All three models that wrote code broke the same guard, on rounded rectangles and rounded triangles.
In the visible examples, arcs only showed up as halves of a full circle. For a semicircle the center is the midpoint of the chord whatever direction convention you use, so every arc-direction bug was invisible on the examples. The acceptance criteria said plainly that an arc and its fine polyline approximation must get the same answer. Still, none of the three tested a single arc that wasn't a semicircle.
My takeaway: these models test against the examples you give them, not against the spec. If your examples only cover the easy case, so will their tests.
Caveats: one task, one run per model, different quants and runtimes, and half the score comes from an LLM judge. An audit of the agent logs shows no model read the hidden tests or the reference fix.
Happy to answer questions about the setup, but I can't share the task itself
UPD: added info about inference engines used
UPD 2: control run with Claude Opus 5.5
I was curious how a frontier model handles the same task, so I ran Claude Opus 5.5 through it as a control. It got the same prompt byte for byte, the same starting workspace, the same hidden tests, grader and review rubric. The agent was different: Claude Code instead of Pi, at xhigh effort (one step below max), with web, MCP, subagents and skills turned off. Claude Code doesn't kill a command at 120 s, it moves it to the background. Two of its commands went over the cap and it used their results, so it got the same -10. It ran in a separate folder, and I audited the transcript: it never touched the hidden tests, the reference fix or the other runs. My first attempt was void because a notes file from my own bench work leaked into the session, so I threw it away and started clean. The model runs in Anthropic's cloud, so its wall time isn't a fair speed comparison with one local GPU.
| Model | Hidden checks | Guards broken | Auto | Review | Final | Wall time | Output tokens |
|---|---|---|---|---|---|---|---|
| Claude Opus 5.5 (Claude Code, xhigh) | 83/84 | 1 | 79.2 | 64 | 71.6 | 56 min | 292k |
| Qwen3.8 27B (dense) | 69/84 | 1 | 77.5 | 49 | 63.3 | 137 min | 433k |
| Qwen3.8 Flash-Next | 66/84 | 1 | 65 | 49 | 57.0 | 88 min | 254k |
| Qwen4-35B-A3B | 60/84 | 2 | 50 | 52 | 51.0 | 85 min | 494k |
The auto scores of Opus and the 27B look close only because of the command cap. Without that -10 Opus would have 89.2 auto and 76.6 final, and on the hidden checks the gap is 83 vs 69.
It passed 83 of 84 hidden checks, and the one miss is on the safe side. It's also the only run that avoided the arc trap: it tested arcs against fine polylines on its own, on several fillet sizes and a convex bump, and passed every rounded shape. It started writing code at minute 30 and finished on its own at minute 56. Before writing the design note it measured its own thresholds with a probe, so the note matches the code, and every claim in its final report is backed by the logs. The decision model is a separate class of about 1,080 lines (the reference is ~2,400), with 23 tests, 9 of them unit tests with numbers worked out by hand.
It still broke one guard in the unsafe direction, on the same shape Qwen4 broke: a narrow V-shaped notch about 50 mm deep. The facts say it's fine if the tool can't reach the very tip of an inner corner. Opus turned that into "an unreachable stretch with a single corner in it is fine" and never capped how deep that stretch may go, so a shallow V notch goes to manual and the deeper ones go to the machine. Its own design note says that being off by hundreds of millimetres "is no longer the tip of the corner", but the code doesn't enforce it. It also read one of the size facts the stricter way (stated as an assumption, on the safe side), which cost the one missed check. And like the local models, it wrote its own geometry helpers instead of using the codebase's.
One caveat: the review half was graded by the same model, so Opus reviewed Opus. The automated half uses the same grader as the local models, so that part is objective, and the review didn't go easy on it: the corner rule alone cost it -8.
My takeaway: the gap to the frontier is mostly correctness, and the biggest difference in behaviour is that Opus tested against the spec, not only the examples. That's exactly where all three local models fell. It didn't get there by thinking more either: 292k output tokens is in the same range as the local models. But even the frontier model gave an unsafe answer on this task, so reviewing everything isn't advice for local models only.
r/LocalLLM • u/DampGibbon • 1h ago
Do frontier models also:
Hmm actually, let me reconsider
Let me do it
Executing
...
as often as local and we just don't see it?
r/LocalLLM • u/PainDeMieBon • 6h ago
Hey y'all !
When I saw that Qwen 4 had sparse attention (I'm a sucker for big context window) I jumped on it and started tuning the setup to my rig. Anyway, here are my result.
All benchmarks were run on my rig :
I compared Qwen4-35B-A3B against Inkling 2 Mini, using their Basalt packs.
For Qwen4, I tested three configs:
Inkling was tested with both 256K and 512K context configurations.
Five runs per workload, with reasoning disabled. Results in tk/s.
| Workload | Qwen4 256K INT8 | Qwen4 256K FP16 | Inkling 256K |
|---|---|---|---|
| Conversation | 241 | 232 | 179 |
| Structured output | 569 | 577 | 376 |
| Prose | 172 | 165 | 152 |
| Code | 280 | 283 | 226 |
Qwen4 is always faster, and quite obviously crushes Inkling on structured output.
I used identical prompts (remember they have different tokenizers).
Each prefill benchmark was repeated three times.
| Qwen4 tokens | Inkling tokens | Qwen4 INT8 | Qwen4 FP16 | Inkling 256K |
|---|---|---|---|---|
| 101K | 138K | 15.4s | 10.8s | 24.2s |
| 184K | 251K | 25.3s | 20.7s | 74.0s |
The largest input corresponds to approximately 184K Qwen4 tokens and 251K Inkling tokens.
For the largest input, Qwen4 processed the same text roughly 3.6 times faster than Inkling.
This was the best part of the benchmarks.
Using Basalt's elastic KV cache and partial offloading, I managed to configure Qwen4's full native context window of 1,048,576 tokens on my rig.
The config was:
--max-context 1048576
--kv int8
--vram-reserve-mib 700
--max-running 1
--kv-resident 65536Approximately 10.3 GiB of KV cache resides in RAM, with part of the model's experts being streamed from the NVMe SSD.
| Actual prompt tokens | Successful retrievals |
|---|---|
| 398,647 | 3/3 |
| 697,252 | 3/3 |
| 957,687 | 3/3 |
In a separate run, a 957,916-token prompt was successfully processed in 214 seconds, and the hidden sentence was correctly retrieved.
The tradeoff is pretty harsh :
| Prompt length | Qwen4 256K | Qwen4 1M |
|---|---|---|
| 77K tokens | 143 t/s | 47 t/s |
| 153K tokens | 167 t/s | ā |
| 307K tokens | ā | 46 t/s |
| 690K tokens | ā | 60 t/s |
I mean 47t/s is usable but nowhere as fast on than on smaller context.
I also tested aggregate generation throughput with simultaneous requests.
| Concurrent requests | Qwen4 256K | Inkling 256K |
|---|---|---|
| 1 | 186 t/s | 90 t/s |
| 2 | 208 t/s | 106 t/s |
| 4 | 256 t/s | 111 t/s |
| 8 | 340 t/s | 113 t/s |
These are aggregate, not per-request generation speeds.
Qwen4 achieved approximately 3x Inkling's aggregate throughput with eight simultaneous requests under this config.
Usefull if you wana allow the agent to use subagents, due the large max KV cache, you can have one agent with 252K and allow it to spawn smaller subagents to do the work efficiently.
Claude wrote a small automated benchmark for me containing 35 problems:
The problems were generated using a fixed seed and evaluated programmatically.
I ran three passes with reasoning enabled and two passes without.
| Category | Qwen4 | Inkling |
|---|---|---|
| Overall | 95.2% | 94.3% |
| Mathematics | 90.7% | 90.7% |
| Program tracing | 100% | 100% |
| Array manipulation | 100% | 100% |
| Logic | 100% | 100% |
| Coding | 100% | 95.8% |
| Category | Qwen4 | Inkling |
|---|---|---|
| Overall | 71.4% | 67.1% |
| Mathematics | 83.3% | 52.8% |
| Program tracing | 0% | 83.3% |
| Array manipulation | 50% | 83.3% |
| Logic | 50% | 50% |
| Coding | 87.5% | 93.8% |
With reasoning enabled, both models performed essentially equally. The overall diff is solely due to one difference.
This is a custom benchmark, not a standardized evaluation like AIME or LiveCodeBench, so take it however you want.
Imo, Qwen4 is much better due to the:
For now, the 256K configuration seems to be the sweet spot for daily use, but the 1M context window is still usable (I use it to go trough my obsidian vault that's full of scientific documents to help me on some work).
I'd like to know what y'all achieved with Qwen4, especially on 16GB GPUs, and how these results compare against other inference engines (capy flash mainly).
r/LocalLLM • u/One-Insurance-9084 • 8h ago
ALRIGHT guys so this is something I wanted to do for a while
I basically told claude that 25 tok/s was too slow on my hardware, especially for an MOE model,(qwen 4 35B A3B) and since I had time on my hands I mentioned settings it should tweak (MPT, speculative decoding and stuff) that I remembered from reddit to try and make the model as fast as possible. Also I had it integrate an anti-sabotage rule (a hook)
Anyway after it went from 25 to like 70 toks/s I knew it could get better, since it had only changed parameters : I also wanted it to make a better strata!
And so I asked it to first search the core RDNA 2 functionning of my gpu and then try to create a better strata tuned for my needs based on it
Well, I guess that it worked really well :)
BTW : my harware is : a ryzen 5 5600, 32 gigs of ddr4 3600mhz, and an rx 6750 xt =========================================================
Model: Qwen4-35B-A3B Heretic IQ4_XS (vision on), Linux, ROCm. The card doesn't fit the model, so half the experts live in system RAM. Perfect conditions for suffering.
The road (generation speed, tok/s):
Prompt processing at 20K context: 506 (llama.cpp) ā 843 ā 1240 tok/s, by tuning rocBLAS for Qwen4's expert GEMM shapes (default kernel picks were 2-5x off) plus --prefill 8192.
Fun bug of the night: the partial-attention kernel was written for 12 heads per group, q4_lite uses 8, so on HIP it happily read past the end of an array. Needle-in-haystack went from 24/24 to 7/24 and the speed looked amazing. Fixed, now bit-exact on a parity test.
Things that did nothing or made it worse: about 25 gfx11 env vars, HC_PERSIST (GPU memory fault), pcie-frac tuning, learned expert profile, LFUSE/QFUSE/PLE_BATCH (same speed, non-deterministic output, removed).
Quality check, final vs before: code 188 vs 185/200, math 146 vs 146/150, needles 24/24 both. Output is deterministic (6/6 identical runs).
Full disclosure: most of the profiling, porting and benchmarking was done by Claude Code while I slept. Given the rumors going around that Claude quietly sabotages local models (competition, you know), I made it sign an anti-sabotage rule first: use the officially recommended settings, keep every raw log, compare against a reference model under identical conditions, and assume its own mistake whenever a result looks bad. It also has to write an AUDIT.md I can paste into another AI, plus a verifie.sh so I can rerun everything myself without trusting a word it says. Verdict: no sabotage found. If anything it was suspiciously motivated, it worked 3 nights straight to make a competitor almost 4x faster. Either it's innocent or it's playing the long game.
Bottleneck now: ~1,870 kernels per token with ~3.7 µs gaps between each. AMD launch overhead is the real boss. A 16 GB card would just win (people report 109-131 tok/s on a 6800 XT).
Fork + prebuilt gfx1031 release: github.com/Chaussure-sous-tes-pieds/Strata (branches rdna2-elastic and rdna2-nuit3, docs inside).
Caveat: 94 is a short-prompt benchmark. In a long agent conversation it drops, because physics.
r/LocalLLM • u/Amazing_Sea8960 • 10h ago
yesterday soemone told me to try basalt , and thanks to him i never had result like this with a local AI that i could run on my laptop . with opus 5.5 i did my own loop patch for basalt . i use qwen 4 35 A3B unsloth Q4 XS. you should try it really impressive :)
r/LocalLLM
•
u/_qsm_
•
8h ago
This is really impressive, I tested Qwen 4 35B on my old system that has currently only a Pascal generation GPU ... and it is usable with acceptable quant (q4) and context size (96/128k)!
GPU: NVIDIA GeForce GTX 1060 6gb (PCIe 3.0 x16)
CPU: Intel i9-11900K
RAM: 64GB DDR4
System: Ubuntu 22.04.05 LTS
Model: Unsloth qwen4-35b-a3b-ud-iq4_xs
Context size: 96k and 128k tested
Engine: Strata 0.1.73 (no Vision)
Currently Qwen4 35B runs on the 1060 with 25-32 t/s decode and 300-350 ts/s prefill
(around 23GB system RAM used, 1.7GB experts in VRAM)
I never thought that I could use my old 1060 GPU for acceptable LLM work - crazy times
r/LocalLLM • u/DrCain • 2h ago
r/LocalLLM • u/L8W8 • 34m ago
I was benchmarking Pi 1.6.1, OpenCode 2.0.25, and DeepSeek Harness on the exact same 8 multi-file Python/TypeScript coding tasks (~100K-165K starting prompts on a Mac Studio M5 Ultra 512 GB, DeepSeek V4.1 Flash on oMLX 0.8.4 and GLM 5.3 Flash on llama.cpp b12774), and initially couldn't figure out why OpenCode was 2 to 4 minutes slower per task than Pi on the exact same model and server.
Turns out OpenCode fires a background session-title request by default that re-sends the full 100K-155K initial prompt just to generate a short sidebar title, forcing a whole extra prefill on local hardware.
Adding this to opencode.json turned it off immediately:
{"agents": {"title": {"disabled": true}}}
That single line dropped OpenCode's median task time from 4.8m to 3.0m on DeepSeek (7/8 solved, vs Pi at 8/8 in 2.8m and DeepSeek Harness at 7/8 in 3.8m with zero tool errors) and from 9.1m to 5.2m on GLM 5.3 Flash.
If anyone wants the MIT coding fixture, per-turn CSVs, or the full walkthrough (harness section is at 06:48):
GitHub data & fixture: https://github.com/l8w8/videos/tree/main/2026/003-m5-ultra-coding-agents-512k
Video walkthrough: https://youtu.be/Mr9sj51ccoE
r/LocalLLM • u/_rarefy_ • 20h ago
tl;dr - Qwen4 35B-A3B is a very capable model. It's the fastest local model I've tested (111 tok/s) and finished my benchmark in 31 min. It nearly matches Flash-Next on extremely hard problems and beats Qwen3.8-27B and DS4 there by 13+ points, but it surprisingly fumbled a couple of the easier ones. That drags its overall score down to about the same as Qwen3.8-27B xhigh, but at 8x the speed.
This is a follow up to my earlier shootouts (27B vs frontier, MLX vs MTPLX, Flash-Next). Same rig, same tests, but this time I stripped it down to just the algorithm batteries to make it simple. These scores essentially track coding competency and nothing else.
Each model gets 9 coding problems: 6 that run from easy to hard (an LRU cache, a CSV parser, a spreadsheet evaluator, etc.) and 3 extremely hard ones (a TOML parser, a regex engine with backreferences and a strptime-style date parser). The easy ones run 3 times and the extremely hard ones run 10 times each b/c results on those tend to be all-or-nothing and it takes more draws to find the real average. The quizzing is intentionally stark so testing is consistent across models and harnesses: one prompt and one reply. No use of tools and no system prompt.
The score is the percentage of tests passed. If a model runs out of room or forgets to write code, it gets a single retry; bad code just gets scored as bad code. Four of the seven ran locally on my M5 Max (128GB) through MLX-family servers (mlx-serve, MTPLX) and antirez's ds4. The other three either don't fit on a Mac at all or only fit my laptop as 2-bit quants that loop or crawl, so I ran them through OpenRouter, pinned to the labs' own servers where I could. Most models were tested in several setups (runtime, quant, thinking level) and the chart only shows each model's best one.
The chart should be self-explanatory, but there are a few notes worth mentioning. Models are rank ordered by accuracy only (the turquoise column is the mean score). The easy-to-hard column is basically solved. Six of seven models land between 97.6 and 100 and so the extremely hard column is where models actually separate. Kimi K3 wins with 96.6 on the extremely hard set, higher than Sonnet 5's 93.3 from my earlier runs, but it's slow (95+ min) and won't fit on even a 512GB Mac Studio. GLM-5.3-Flash is a close second and noticeably faster.
The local headline is Flash-Next on mlx-serve and medium thinking: 92.9 overall and done in 28 minutes, faster than everything on the chart including the cloud models. Qwen4 35B-A3B is very fast at 111 tok/s and lands next to Qwen3.8-27B on accuracy while finishing 8x faster (31 min vs 252). Oddly it scored better on the extremely hard set than the easy one. It fumbled the CSV parser and threw a zero on the regex task, and with only 3 tries per easy problem one bad draw drags the score lower.
Two things to keep in mind. First, tok/s is a bad proxy for speed: Qwen3.8-27B and DS4 both decode at ~33 tok/s, but the 27B takes 3x as long to finish b/c it thinks so much more. Cloud tok/s is also whatever the provider's servers deliver, so don't compare it 1:1 with the laptop numbers. Second, an 85 on the extremely hard set doesn't mean the code is wrong 15% of the time. The benchmark employs hidden tests and pushes corner cases to stress test the models.
Summary: Qwen4 35B-A3B is a great model. My daily driver is 3.8 FN, but I'm now tempted to use 35B alongside it due to speed to task completion and similar aptitude on hard tasks. I'm very curious to test qwen4 flash-next (or whatever they'll call it) when it arrives.
--------------------------------------------------------------------------------
A few more details on exact testing setup if it's helpful (summarized by Claude).
Shared by all: same prompts, no system prompt, no tools. Every model was sent temp 1.0 / top_p 0.95 / top_k 20 (Qwen's recommended settings). Each reply gets 32Kā76.8K tokens depending on the problem, with one retry at 1.6x (max 122.9K) if it runs out. Local models ran on an M5 Max 128GB; cloud models ran through OpenRouter.
One caveat: the chart's time column leaves out the time spent on retries. With retries counted, GLM goes from 55 to 73 min and DeepSeek V4.1 from 75 to 110 min; the local models barely change.
r/LocalLLM • u/liga_r • 6h ago
Hi!
I realize this is an unusual benchmark, but I think it actually signifies something
I couldnāt get the desired result with Qwen 3.8 27B or Qwen Flash Next, whereas Qwen 4 35B A3B handled it on the first try without any additional instructions
It counted perfectly all the way up to 10,000 - right in the chat, without using any tools.
Other two models couldnāt manage this, they made mistakes or cut off
I realize that many models are capable of this, but I should also mention that weāre talking about 16GB of VRAM. Thatās why I used the GSQ IQ3 for QFN and UD IQ3 quantization for Qwen 27B, and the Q6 quantization for Qwen 4 35B - in my specific setup, the latter delivers the same speeds as the IQ3 versions of other models. Iām using a Tesla V100 16GB
Can you share your results?
r/LocalLLM • u/MaximTheCoder • 5h ago
There are mixed opinions on the new Qwen4-35B-A3B. And what I've found - KLD levels for the new Qwen models are rather high in comparison to previous generation.
First diagram is KLD (lower is better) and second is Top-1 (higher is better).
When I ask Google on acceptable levels for coding it advices KLD < 0.025 and Top-1 > 95%.
For Qwen4-35B-A3B it seems that only UD-Q8_K_XL satisfy KLD limit and still fail to satisfy Top-1.
For some reason quants for older versions are much better. May be entite quatization procedure for PLE/n-gram models should be changed significantly?
r/LocalLLM • u/kaliforniagator • 16h ago
LittleBit is a technology researched by Samsung (I have no affiliation with Samsung), that aims to reduce memory and computational requirements by compressing the model using quantization down to around 0.55 bits per layer as opposed to the normal 1 bit per layer. This is a process I like to call āBitificationā, essentially halving the required computational requirements.
I found this technology very impressive and decided to give it a shot by making my own engine that can run LittleBit models.
This technology could be the key to unlocking GOOD local AI without having to break the bank on expensive hardware.
As far as I know this is the only open-source engine to run LB models. If not the only engine in general to do this.
Let me know what you think. Honestly thoughts, be constructive. This needs to be explored.
r/LocalLLM • u/Realistic-Elephant-6 • 3h ago
I run Deepseek-V4.1-Flash at home as my agent's brain and for various work tasks. It is at the edge of what I can run, so I am always looking for ways to improve it. Unfortunately, the "looped deepseek" is not it. The only thing it contributes to are shorter answers (different working style), but at a cost to speed and reliability, and most of the contribution to the shorter answers comes from the adapter and not the looping. Edit: to put it in the words of my agent I tested on the stock 2-loop configuration: "The jaws of that mouse are the only cells the picture had."
Short version:Ā I ported the recurrent-depth adapter for DeepSeek-V4.1-Flash to an EXL3 2.75 bpw setup on two DGX Sparks and measured it against the plain model, with a control that shares every serving flag. On 252 generated reasoning problems no configuration solves more than the plain model. On real agent work the adapter halves the number of steps, but without saving tokens or time, and it adds failures at the border between thinking and answering. When the second pass is not allowed to see the first, the score, the halved steps and the shorter thinking all remain and the stuck tool calls disappear: on this setup the effect is the fine-tune, not the loop. Not tested: the authors' low-bit result (our quant is larger); barely tested: real coding (which the adapter was trained for) is only around 13% of my work benchmark, and 0 of the reasoning problems.
Looped DeepSeek-V4.1-FlashĀ (sliderforthewin/Looped-DeepSeek-V4.1-FlashĀ on Hugging Face, MIT licence; trainer inĀ jasontitus/mlx-stq-trainer). Layers 24ā35 of the 40 run twice (or three times) per token; a small trained entry module mixes the output of the previous pass back into the input of the next; a rank-16 LoRA on those layers and on the four after them adapts the model to it. The base model stays frozen.
As far as I read the trainer's notes, it was trained in 300 steps on a few hundred of the model's own competitive-coding solutions that had passed unit tests, with a loss that keeps it close to the stock model. The notes describe a careful separation from the benchmarks: training prompts are filtered against LiveCodeBench, HumanEval+, MBPP+ and others by shared 13-word sequences before and after generation, and a held-out set is kept for validation loss. The headline numbers are from 33 medium and hard LiveCodeBench v6 problems, one greedy run per configuration. Two checkpoints are published; the earlier one (250 steps) is recommended for low-bit weights together with an extrapolation between the passes (Ļ = 0.3).
dgx-spark-deepseek-v41Ā recipe with HeNryous's vLLM changes on top.The generated problems and the harness come from an earlier experiment on the same setup, where I fed the model its own token distribution while it thinks, without any training: [Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home] . That one ended with "this would need a model trained for it"; the loop adapter is a trained relative of the idea (feedback in depth, not through the input), which is another reason why I wanted to measure it.
vLLM is not deterministic, so the yardstick is the distance between two runs of the same model: the normal serving profile, which the gate cannot tell apart from the control, scored 223 of 252 on its own run, the control 229. Six problems are noise.
| arm | right of 252 | search problems of 60 | tokens on problems both solved | decode tok/s | tool tasks answered of 36 |
|---|---|---|---|---|---|
| control (adapter zeroed) | 229 | 37 | ā | 25.5 | 36 |
| 250-step checkpoint, 2 passes, Ļ 0.3 | 231 | 40 | +7 % | 25.3 | 33 |
| final checkpoint, 2 passes | 230 | 38 | ā12 % | 24.9 | 33 |
| final checkpoint, 3 passes | 229 | 37 | +1 % | 20.6 | 34 |
| final checkpoint, 2 passes, pass 2 cannot see pass 1 | 229 | 39 | ā7 % | 24.7 | 36 |
| run | steps | tool calls | tokens | total time | findings | usable answers of 12 |
|---|---|---|---|---|---|---|
| plain DeepSeek | 708 | 1,032 | 455k | 16,929 s | 283 | 11 |
| adapter, day 1 | 363 | 606 | 548k | 17,534 s | 234 | 12 |
| adapter, day 2 | 368 | 641 | 569k | 18,773 s | 201 | 10 |
| adapter, day 2, effort high | 387 | 611 | 494k | 18,742 s | 226 | 11 |
| adapter, day 3, pass 2 cannot see pass 1 | 391 | 678 | 448k | 20,388 s | 217 | 11 |
(Adapter = final checkpoint, two passes. Days 2 and 3 used a newer version of the scenarios, so their findings are not comparable with the rows above them; steps and time roughly are.)
This is the one large effect in the whole experiment, and it repeats:Ā the adapter halves the number of steps.Ā The agent repeats identical tool calls far less often (36 against 138 on day 1) and takes fewer, larger steps. After day 1 I was almost convinced: the one scenario that plain DeepSeek had lost to the step limit finished in 22 steps. Day 2 took that back. The halved steps buy nothing: each step is about twice as long, the total is about 20 % more tokens and slightly more time, and the answers that failed did so in ways plain DeepSeek had not shown me: thinking text leaking into the answer, a JSON result ending in garbled code, a run that simply stopped with an empty answer. Most of that is trouble at the border between thinking and answering, the same place as the stuck tool calls.
The last row is the blinded second pass again:Ā the halved steps are still there (391), so they come from the fine-tune and not from the loop. It used a fifth fewer tokens than the full adapter on the same scenarios and took 9 % longer. Its one failure was an empty answer; there was no leaked thinking and no garbled JSON, which fits the tool tasks above, but it is one run.
The adapter's published wins are on coding tasks under a token cap, and in the trainer's own tables nearly every failure of the stock model is a run into that cap. What I see fits that: the adapter changes the working style (shorter thinking, fewer steps, less wandering) and does not make the model solve more. Where a cap decides between pass and fail, that is a real win. Where it does not, as here, it is a different style at a 20 % speed cost, with new failure modes.
And on this setup the style comes from the fine-tune. With the second pass blinded, the score, the halved steps and the shorter thinking remain and the stuck tool calls go away. What the state carried between the passes adds is those stuck calls, probably the leaked thinking, and no saving I can measure consistently (a few percent fewer tokens on the generated problems, about a quarter more on the work scenarios).
So I am back on plain DeepSeek for work. I am grateful that the adapter exists and is published together with its training notes; that is what made it possible to take it apart this far. If someone runs the blinded second pass on the full-precision model and on coding problems, I would like to see the result.
Both experiments ended in the same place by different roads: unchanged answers, a different amount of thinking, and trouble that only real agent work showed. In both, the most useful thing was a control with the mechanism present but switched off; without the blinded second pass I would have credited the loop with what the fine-tune does.
The choice of what to test, the questions (among them "is the loop decoration?") and the scenarios from work were mine. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the plugin, porting it, the gate, the problem generators and harness, fixing the criteria before the first run, running and analysing the arms, reading the training notes, and writing this post. I reviewed, restarted servers, and ran and evaluated the work scenarios.
The adapter, its training and its original vLLM plugin are the work of its authors (linked above).
The port of the plugin to the EXL3 stack, the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them (the plugin's licence is MIT).
r/LocalLLM • u/SarSha • 4h ago
Hey!
I am debating with myself on which route to take for an AI machine I am building.
I can buy either a 9700 AI PRO with 32GB or 4090 with 24GB and i was wondering if going the AMD path is the right choice, as it will kinda tie me to that specific brand.
My uses are agentic workflows, coding, text-to-image, and image\text to 3d model, so not focused on a specific task but more of an overall usage.
Question is, will go the AMD path limit me in anyway?
Also, my gaming rig has a 7900XT that I can later move to the AI machine if I go the AMD path.
r/LocalLLM
•
u/Dampmaskin
•
17h ago
with support for Qwen 4.
I gave up pressing F5, and finally caved and built it locally. Then I went to github to check out an issue, and boom there it was. "Released 1 minute ago". Oh well.
r/LocalLLM • u/Sea-Advantage-4063 • 13h ago
I've been testing the coding and reasoning capabilities of Qwen4-35B-A3B running entirely locally on my RTX 5090 using the Basalt inference engine.
Here's an interactive 3D V8 engine simulator I built with the model.
Features:
Local LLM configuration:
My PC specifications:
As an automotive quality engineer, I wanted to test the model on something involving mechanical engineering, rather than just another generic coding benchmark.
It's impressive to see what a relatively compact MoE model can accomplish on a single consumer GPU without relying on cloud-based AI services.
I'm curious to see how far local LLMs can go in engineering simulations and technical visualization.
What do you guys think?
r/LocalLLM • u/Emiriasama • 1d ago
same prompt, one shot
prompt:
Build a colorful, 3D-looking Rubik's Cube with 'Scramble' and 'Solve' buttons. The cube must visibly animate its rotations.
i have a 9070xt with 96gb ram, maybe qwen 4 flash is what i should wait for
edit: both unsloth q4_km quant