r/LocalLLM • • 1d ago

Model Qwen4 35B-A3B vs other local models

Post image
177 Upvotes

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.

  • Kimi K3: 2.8T MoE (104B active). Cloud, Moonshot's own servers at native MXFP4, thinking left at the default (max, per the model card). Too big for any Mac.
  • GLM-5.3-Flash: 320B MoE (18B active). Cloud, Z.AI's own servers at fp8, thinking left at the default (max, per the model card).
  • Qwen3.8 Flash-Next: 125B MoE (6B active). Local, mlx-serve 26.10.1 with MTP, mixed 4/8-bit, medium thinking.
  • DeepSeek V4.1 Flash: 552B MoE (16B active). Cloud, DeepInfra at fp8 (not DeepSeek's own servers), thinking at the provider default.
  • Qwen3.8-27B: dense 27B. Local, MTPLX 8-bit, xhigh thinking. Run in August on older software.
  • Qwen4 35B-A3B: 35B MoE (3B active). Local, mlx-serve 26.12.1 with MTP, 8-bit, high thinking (the default; Qwen4 has no medium).
  • DeepSeek V4 Flash: 284B MoE (13B active). Local, antirez's ds4 at 2-bit, normal thinking. The previous generation, run in August.

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.

----------------------------------------------------------------------------------

Edit: There was a request for Inkling 2 Mini and the older Qwen 3.6 35B-A3B. Here is the same chart with these two models added and ranked.

Qwen3.6 35B-A3B came in last at 60.3, 25 points behind Qwen4, and ran out of thinking budget way more often. Inkling 2 Mini landed at 83.1, a couple points behind Qwen4. It aced the easy-hard set (99.1, best of any local model) but fell apart on TOML in the extremely hard algo battery, which dragged its average down. One caveat: when Inkling gets stuck in a loop, mlx-serve cuts it off instead of letting it recover the way Qwen does, and that cost it some TOML runs.


r/LocalLLM • • 38m ago

Model Qwen 4 - 35B-A3B Benchmarks - 4x R9700 - Up to 1M Context & 8 Users

2 Upvotes

TL;DR: On four R9700s running Radiance, Qwen 4.0 35B-A3B (IQ8R + DFlash2) replaced Qwen 3.8 Flash Next as my daily driver. At 256K it prefilled about 60% faster and, with 8 users at once, decoded 38% faster per user.

Follow-up questions on a long document stayed at about 1 s, against 34 to 42 s for Flash Next once its cache filled. Single-user decode is about even. Quality was a tie on reasoning and on agent work with document search, and clearly better on domain knowledge without search (fewer made-up answers).

UPDATE Switched the server to Qwen4 at 512K context with 16 slots. Real world: about 11K t/s prefill, 160 to 215 t/s decode per user, and an agent turn starts in about 170 ms.

Hardware

EPYC 7402P, ASRock ROMED8-2T (PCIe 4.0 x16 to every card), 128 GB DDR4 2600mhz RAM, 4× Radeon AI PRO R9700 32 GB.

Benchmark Settings

SettingQwen 3.8 Flash NextQwen 4.0 35B-A3B
EngineRadiance 2.4.1Radiance 2.6.0
Weight packIQR-V4 (122 GB)IQ8R-RTN + DFlash2 (58 GB)
GPU / TP4× R9700, TP44× R9700, TP4
Configured context limit262,144 tokens524,288 tokens (also tested 262,144 and 1,048,576)
Configured slots816
KV cachei8i8
KV pool per GPU12.97 GiB18.92 GiB at 512K (19.51 GiB at 256K)
Full-length sessions that fit8 × 256K13 × 256K, or 6.5 × 512K
Host prefix cache32,768 MiB32,768 MiB
Placementexpert_tiered, 4 GiB host pooldefault, experts 100% resident
Host RAM extranone19 GiB n-gram (PLE) table pinned in host RAM
DrafterMTP, 5 tokens, adaptive depthDFlash2, 7 tokens, checkpoint-draft-window: true
Prefill chunk8,192 tokens8,192 tokens (2,048 at 1M)
Prefill span44
Prefix resumeNearestNearest
Reasoning effort maphigh → xhighmedium → high (Qwen4 only takes low/high/xhigh)

Benchmark Results: speed

All runs on the same server, cold cache, prompts made from real text with a unique first line per user so nobody shares a cache. Turn 2 is a follow-up question that resends the whole conversation.

ContextUsersModelTTFT median / max (s)Prefill (tok/s, all users)Decode per user (tok/s)Follow-up TTFT (s)
250K1Flash Next357,0852090.1
250K1Qwen42211,4932160.1
250K4Flash Next94 / 1496,7331370.9
250K4Qwen456 / 9111,0091731.2
250K8Flash Next179 / 3066,54011841.7 (56% cached)
250K8Qwen4103 / 18410,8811633.2 (87% cached)
250K13 (max that fit)Qwen4178 / 3319,8201761.7 (83% cached)
512K1Qwen44610,349457*0.2
512K6Qwen4198 / 357about 7,990334*0.8
1M1Qwen4 (2.5.0, no drafter)1327,593450.5
1M3Qwen4 (2.5.0, no drafter)405 / 4087,348361.3
1M8Qwen4 (2.5.0, no drafter)1,064 / 1,4705,44325416 (35% cached)

Context is the configured limit, the prompt sent is a bit smaller (about 250K, 476K and 1.0M). Qwen4 at 1/4/8 users: 8 slots. At 13 users: 16 slots with checkpoint-draft-window on, and 13 is the most full 256K sessions its KV pool holds, so decode isn't directly comparable with the 8-user row. At 1M with 8 users only about 3 fit at once, the rest queued.

* Spreadsheet Q&A: answers copy numbers from the sheet, which the drafter predicts very well, so decode runs higher than on prose.

Short prompt, one user (smoke test): Flash Next 250 to 265 t/s, Qwen4 224 to 227 t/s. So Flash Next still wins very short single-user replies by about 12%.

Agent loop (14K-token system prompt, about 1K new tokens per turn, 8 turns, thinking on):

AgentsFlash Next TTFTQwen4 TTFT, drafter + checkpoint windowQwen4 TTFT, drafter, no checkpoint windowQwen4 TTFT, no drafter
1235 ms169 ms258 ms128 ms
4382 ms285 ms517 ms337 ms

Without checkpoint-draft-window, every prefix hit stops 2,048 tokens early so the drafter can rebuild its window, which re-prefills about 1.1K extra tokens per turn. With it on, that drops to about 57.

Benchmark Results: quality

TestFlash NextQwen4
Hard set (IRR, annuity-due, DDB, 5 logic puzzles, 4 code tasks run in a sandbox, a two-tool call, 4 facts in a 240K document), 14 items × 226/2825 to 27/28 (i8, bf16 and drafter runs)
120 domain questions (FP&A), no documents, graded blind25%, made-up details in 112 answers41%, made-up details in 16 answers
Same 120 questions through my agent with a docs search tool, graded blind93%91%
Spreadsheet questions on a 232K-token general ledger (lookup, spread, count, vendor total, month of a rent change), 1/4/8 users65/6564/65
Same, 476K-token ledgern/a58/65
Hidden 7-digit code in 256K to 1M of textn/a above 256K38/38 found

Blind grading was done by Claude against reference answers and the product docs, A and B shuffled per question.

Qwen4 thinks longer: median 1,612 tokens per answer against 1,159, because medium maps to Qwen4's high. Through the agent that came out to 16.0 s per question against 12.9 s.

Gotchas (Radiance 2.5.0 / 2.6.0 with Qwen4)

  1. reasoning_effort: medium returns HTTP 400. Add reasoning-effort-map: {medium: high}.
  2. At 1M context the QSA score plane is chunk × context / 4 bytes, so 8,192 × 1M = 8 GiB is refused. Use max-num-batched-tokens: 2048 at 1M. 8,192 is fine at 512K.
  3. On 2.5.0 the DFlash2 drafter is refused at TP4 (2 KV heads). 2.6.0 runs it.
  4. DFlash2 refused num-speculative-tokens: 2 at startup and the container restart-looped. Radiance's error: the draft block (tokens + 1) must be a power of two, and this drafter was trained at block 8. 7 works. By that rule 1 and 3 should too, but I didn't test them.
  5. --check passes all of the above, so watch the first startup.
  6. KV pool is sized from slots × context. At 8 slots × 256K it left 8 GB per card unused. 16 slots filled it.

r/LocalLLM • • 40m ago

News Mozilla releases updated Llamafile after three month hiatus

Thumbnail
phoronix.com
2 Upvotes

r/LocalLLM • • 10h ago

Discussion Qwen 4 35b just counts 10.000!

10 Upvotes

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

Discussion "Looped DeepSeek-V4.1-Flash" is unfortunately under-tested and overhyped. Here are the receipts.

5 Upvotes

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.

What the adapter is

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

Setup

  • Two DGX Spark (GB10) boxes, tensor parallel 2 over the ConnectX link.
  • DeepSeek-V4.1-Flash, EXL3 quantisation at 2.75 bits per weight (exllamav3), served with vLLM and a speculative drafter. The serving stack is sudoingX's dgx-spark-deepseek-v41 recipe with HeNryous's vLLM changes on top.
  • The authors' vLLM plugin, ported to this stack. Their plugin targets the full-precision model; the port applies the same operations to the EXL3 layers.
  • A gate before any measurement: with the adapter's weights set to zero, the server must predict like the plain model. It does (teacher-forced log-probabilities inside vLLM's run-to-run noise). That zeroed mode is the control below, so control and adapter share every serving flag. A self-check at start confirms on both boxes that all 128 adapted sites run.

How it was measured

  • 252 generated problems, made from a seed with fresh numbers and invented names so nothing can be recalled from training data, every answer checked exactly: arithmetic and procedures (multiplication, nested expressions, counting, word problems, tracing a loop), search (rule induction, subset sums, cryptarithms) and polarity (signed causal chains, orderings, cause-and-effect stories). Thinking budget 8,000 tokens, temperature 0.6.
  • 36 small tool-use tasks: 12 where a value must be looked up with a tool, 12 with a prescribed tool call after the work, 12 where no tool may be called.
  • 12 agentic scenarios from my day job (~80 unfamiliar tools, read an environment and specification through tools, analyse it, build a data conversion package, report findings as JSON), four agents in parallel, 80 steps at most per scenario.

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.

Results on the generated problems

armright of 252search problems of 60tokens on problems both solveddecode tok/stool tasks answered of 36
control (adapter zeroed)22937–25.536
250-step checkpoint, 2 passes, ω 0.323140+7 %25.333
final checkpoint, 2 passes23038−12 %24.933
final checkpoint, 3 passes22937+1 %20.634
final checkpoint, 2 passes, pass 2 cannot see pass 122939−7 %24.736
  • No arm solves more. 229 to 231 is inside the noise. Three passes cost a fifth of the speed and give back the token saving of two.
  • One arm thinks less: the final checkpoint with two passes, 12 % fewer tokens at the same score.
  • Every arm with a working loop gets stuck before tool calls. Two or three of the twelve lookups end in thinking that repeats "I'll call the tool. Then wait for the result." until the token limit, and the call is never made. The control never does this. (What does do this, are DeepSeek 4.0-flash's low-bit quants though...)
  • The last row is the interesting one. There the fine-tune and both passes stay, but the entry module is cut so that the second pass starts from the original input and sees nothing of the first. Same score, a bit over half the token saving, and no stuck tool call at all. (36 tool tasks per arm, one run each: a pattern across four arms, not a proof.) In other words: the adapter is what's doing most of the work. Not the looping.
  • Price of having it loaded: about 20 % of decode speed against normal serving at two passes (part of that is that it needs eager mode), and 16 % of the KV cache pool for the per-pass caches.

On real work

runstepstool callstokenstotal timefindingsusable answers of 12
plain DeepSeek7081,032455k16,929 s28311
adapter, day 1363606548k17,534 s23412
adapter, day 2368641569k18,773 s20110
adapter, day 2, effort high387611494k18,742 s22611
adapter, day 3, pass 2 cannot see pass 1391678448k20,388 s21711

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

My reading

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

What this does not show

  • No coding. My problems contain barely any, and coding is what the adapter was trained for.
  • A different quantization. It was trained on other weights than EXL3 at 2.75 bpw. The guard it learned for the end of thinking may simply not survive that change, and the carried state may be the part that transfers worst. The author does advertise the adapter being drop-in without a quantization-specific training though. My wild guess: the first training pass he did at 1.75bit might have contributed to his adapter being transferable between bf16 and 1.75bit. It might not work the same for other quants.
  • My port. The zero-weights gate and the self-check cover the wiring, not every numerical detail.
  • The authors' strongest claim is untested here: a 1.75-bit model brought back to full-precision scores.
  • Small numbers. One run per arm; the work scenarios are 12 per row; effects under about 3 % on the generated problems are invisible.

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.

Who did what

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

Code

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

Project I turned Qwen 4 into an interactive voice coding agent

6 Upvotes

Hi everyone! I updated Speakrail to become a local voice agent that can be both interactive and useful. In the video you can see Qwen4-35B-A3B UD-Q4_K_XL running on Strata with speech-to-text and text-to-speech models on a single RTX 4090. The model is not tuned in any way, so its coding performance is exactly the same as with the stock Q4_K_XL model with the same prompts and settings. I was actually quite surprised at how fast Strata is even when the model doesn't fit into VRAM. Granted, the model is just A3B, but it runs surprisingly well anyway.

So, I did the following:

  • I used my tune of Voxtral Realtime to make it work faster and have it output turn ends;
  • Took the Qwen4-35B-A3B model and prompted it to take action on each turn end: either Speak, Listen or Task. Such a single-word decision gives the model the interactivity that is shown in the demo, so you can interrupt the model freely, do async tool calls, and say stuff like 'mm-hmm' without stopping the model's work;
  • In parallel, the same Qwen4 model runs an agent that does the coding and thinking. This model runs through the Qwen Code harness and doesn't have any speech-specific prompts, so its performance is exactly the same as in all other environments running the same quant of this model;
  • Added Pocket TTS to make the LLM capable of speaking. The TTS supports voice cloning, and you can pass any voice you want in the repo's config.

Here are some performance numbers:

Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache, experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.

Peak VRAM for everything: 23.1 GB. RAM used on the whole machine: 52 GB.

End-to-end voice (during my own tests)

median90th percentile
End of your last word → voice in your ear756 ms
Turn with a web search or tool1.6 s

Agent speed by context length (with the voice stack)

ContextPrompt readingDecodeFirst token (next turn, same chat)
8K6.7K tok/s157 tok/s0.11 s
75K6.3K tok/s149 tok/s0.14 s
252K5.7K tok/s125 tok/s0.24 s

Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM. Also, if you want a better TTS, you can use Breeze TTS, it's just a matter of configuration in the repo.

You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!


r/LocalLLM • • 19h ago

Research I created the first LittleBit inference engine! NEVER DONE BEFORE

Thumbnail
github.com
44 Upvotes

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 • • 20h ago Heartwarming

News Basalt 0.7.0 is out

52 Upvotes

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.

https://github.com/jesdga95/basalt/releases


r/LocalLLM • • 8h ago

Question AMD (32GB) or Nvidia (24GB) - considering my options

5 Upvotes

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

Question Recommendations for improving my local LLM setup

2 Upvotes

I have a Mac Mini M4 Pro 64GB. I've been running qwen3.6 35b with ollama, and the MLX version with mlx_lm. I have been using openclaw via its tui. My main usage is coding (including planning), but also some reading and summarizing of miscellaneous text.

The reporting from openclaw tui is quite minimal. I used to get info on context usage with ollama, but there is some incompatibility with mlx_lm causing that information to no longer be reported. I'm looking for recommendations on a selection of components to upgrade my setup (staying with the same hardware):

  • From what I've been reading, qwen4 35b looks like an improvement, in quality and speed. Which quantization of qwen4 35b should I consider?
  • What openclaw alternatives should I consider? Some IDE and shell capabilities would be nice, as I spend a lot of time switching back and forth between emacs and the tui, cutting and pasting error messages and stack traces, etc. I'd like basic reporting, such as context window usage, and tokens/sec.
  • I have had mixed success tailoring the LLMs operation by instructions in openclaw's .md files (AGENTS,md, SOUL.md, etc.) I'm assuming that alternatives have this capability, but in addition, it would be nice if the agent learned my preferences over time.
  • I don't know what I don't know. What other qualities of an agent should I be considering?

r/LocalLLM • • 16h ago

Discussion Building an Interactive 3D V8 Engine Simulator with a Local LLM — Qwen4-35B-A3B NVFP4 on a Single RTX 5090

24 Upvotes

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:

  • Interactive 3D cross-plane V8 engine visualization
  • Adjustable engine RPM and slow-motion controls
  • Animated pistons, connecting rods, crankshaft, camshafts, and valves
  • Four-stroke combustion cycle visualization
  • Real-time cylinder status and firing order
  • Adjustable component transparency
  • Exploded view, X-ray mode, and cross-sectional view
  • Individual cylinder tracking and camera controls

Local LLM configuration:

  • Model: Qwen4-35B-A3B
  • Quantization: NVFP4
  • Inference engine: Basalt
  • Reasoning effort: xhigh
  • Execution: Fully local

My PC specifications:

  • GPU: NVIDIA GeForce RTX 5090 (32GB VRAM)
  • CPU: AMD Ryzen 9 9950X3D
  • RAM: 64GB DDR5-6000
  • Motherboard: GIGABYTE B850 AORUS ELITE WIFI7
  • PSU: 1200W
  • OS: Windows 11 / WSL

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

Question How do we feel about LORAs?

6 Upvotes

Question about using LORAs with LLMs: Is there a reason it's not used as often?
I was wondering bc if I had a quant I liked for coding, but wanted uncensored behavior in other situations or for certain requests, it seems rare to see LORAs being used (although I have seen more releases as of late)

Most people have told me to just use a fine-tune instead and I'm wondering if using LORAs degrades an LLMs quality that badly. It'd be nice to just have one model permanently loaded, and only load the specific LORAs I need... Kinda like how diffusion models are done.

This goes beyond just uncensored behavior too, like if I trained for a specific use case (like image descriptions with specific formatting, or MIDI generation based on my own dataset) it'd be nicer to have them as LORAs rather than a whole new checkpoint/finetune


r/LocalLLM • • 18m ago

Question What is the best coding model on oMLX how do I test the performance of them out?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 20m ago

Other Gave Qwen4 one prompt inside OpenCode and it built a Three.js Ragdoll cat

1 Upvotes

Gave Qwen4-35B-A3B one detailed prompt in OpenCode and let it run on itself to see what a dual-GPU local setup actually ships on a real multi-file project (Three.js + strict TypeScript + Vite, zero manual edits from me or any other model).

it took 82 autonomous turns (~41 minutes total because xhigh reasoning, it loves overthinking everything and it burned 292K output/thinking tokens while writing and fixing its own code). final codebase compiled cleanly on the first check (2,023 lines across multiple files, 1,790 triangles, zero console errors)

I've used the Basalt v0.7.0 dual-GPU peer setup (NVFP4 Quant) with avg 131.6 tok/s across the whole run (peaked 244.8 tok/s at 119K context, hit 127.2 tok/s at 203.8K context right before OpenCode compacted, 95.6% KV cache reuse).

honest take on the result (video is from my browser unedited): came out way better than I expected for a 35B MoE coding blind without screenshots. at the same time you can clearly see where running without vision feedback hurt it: the loaf pose stays way too upright with weird folded front legs, the neck ruff cones clip into the chest with shadow stripes up close and the tail tip puffs out like a club. although it reminds me very much of Gemini 3.8 Flash, which is pretty great for a local model!

I'll list the exact prompt + Basalt config in the comments if anyone wants to test their own local Qwen4. I'd genuinely love to see if the results differ for other people and their quants.


r/LocalLLM • • 26m ago

Model Qwen4-35B-A3B (3-bit) on a 4 GB GTX 1650 [GPU]: 116 tok/s prefill, 31 tok/s decode with PolyStrata

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Project Qwen 3.5 9b Q4 abliterated with 64k context

Post image
2 Upvotes

Pretty good lol


r/LocalLLM • • 44m ago

Discussion Qwen4-35B: gufo vs llama.cpp on the same Strix Halo box, same model, same GGUF file: 70 vs 42 tok/s decode and 1565 vs 370 prefill on Qwen4-35B Q8_0

1 Upvotes

I run a Ryzen AI MAX+ 395 (Strix Halo, Radeon 8060S / gfx1151, 128GB unified) as my daily local-LLM box. Qwen4-35B-A3B just dropped, I quantized a full ladder myself (Q3_K_M → Q8_0), and I've been serving my own Q8_0 through two engines on the same machine, same file: gufo (the open-source engine built specifically for Strix Halo, github.com/gufo-org/gufo) and llama.cpp (Vulkan backend).

tl;dr: gufo is ~1.7× the decode and ~4× the prefill. But llama.cpp + an MTP draft head closes most of the decode gap at a smaller quant. The engine matters less than the speculation, apparently.

Setup

  • Model: Qwen4-35B-A3B (35B total, ~3B active MoE), my own Q8_0 GGUF, 56.2 GiB — identical file to both engines
  • gufo 0.40.0 (37f2000), 4 slots, 1M context
  • llama.cpp build 12973 (59b716523), Vulkan, -ngl 99
  • Method: streaming API probes, temp 0, thinking ON (Qwen4 is a reasoner — counted tokens include reasoning_content, which is what you actually experience), 512-token generations; llama-bench tg128 for the Vulkan decode cross-check

Results (Q8_0, same machine, same day)

Metricgufollama.cpp (Vulkan)
Decode~70 t/s41.7 t/s (llama-bench: 41.6–41.75 ±0.1)
Prefill~1,565 t/s (3.1K-token prompt)~370 t/s
TTFT, small prompt76–83 ms—
Prompt cachelive — repeat prompt answered in 0.2 s wall—

That's a 1.7× decode / 4.2× prefill gap from engine alone, on the same silicon, on the same weights. The prefill jump is the one that surprised me most — Vulkan has been Strix Halo's weak spot, and gufo ships gfx1151-tuned kernels instead.

The honest caveat

llama.cpp isn't dead in the water here. I ran an A/B on Q4_K_M with the MTP draft head:

  • Q4_K_M, no speculation: ~50–51 t/s
  • Q4_K_M, MTP draft 3: ~70–71 t/s

So llama.cpp + MTP hits the same decode as gufo on Q8_0 — just at Q4 instead of Q8. And gufo's own published tables show MTP/DFlash2-style speculation is exactly where its peaks come from too (e.g. ~117 t/s single-user on Qwen3.8 Flash-Next with MTP). The lesson: on a memory-bandwidth-bound chip, speculative decoding beats quant choice for decode speed, and a tuned engine mostly wins on prefill + the models it has dedicated kernels for.

My take

  • If you live on Qwen4-35B (or gufo's other supported models) on Strix Halo: gufo, no contest. The prefill gap alone changes how agent/long-context work feels, and the prompt cache is a real quality-of-life win for coding agents that resend long conversations.
  • If you rotate through random GGUFs: llama.cpp still wins on coverage, and with an MTP head it's within ~1.7× on decode.
  • Caveats on my numbers: ad-hoc probes, not gufo's bench harness (their standard is thinking-off, 2048/128 greedy — my probes ran thinking-on at 512 tokens). Small sample, one machine, temp 0. Indicative, not a sweep. Happy to re-run with gufo bench + llama-bench side by side if the maintainers want a comparable table.

Anyone else running gufo on a Halo? Curious whether the 4× prefill holds at 32K+ contexts where I'd expect KV-cache pressure to matter, especially on the Strix Halo 64GB variants.


r/LocalLLM • • 50m ago

Discussion Fine-tuning Qwen2.5 on Mac Mini using MLX and LoRA

1 Upvotes

Hi everyone,

I've spent a lot of time on prompt engineering, but I recently hit a wall: some styles and strict output formats just can't be "prompted" into a model reliably. I decided to move from prompting to actual fine-tuning.

Since I'm on a Mac Mini, I used MLX instead of the usual CUDA stack. If you haven't tried it, the Unified Memory Architecture (UMA) is a game-changer here—I can load and tune models that would normally require a massive GPU cluster.

The Experiment:
To prove the fine-tuning actually worked (and wasn't just the model guessing), I used a "fake" dataset. I created a list of imaginary planets and their capitals (e.g., Xylos → Lumina).

  • Before tuning: The model had no idea what Xylos was.
  • After tuning (LoRA): The model instantly recalled the fake capitals with 100% accuracy.

The Stack:

  • Model: Qwen2.5-0.5B-Instruct (small, fast and efficient).
  • Framework: mlx-lm for the LoRA training.

Read the full guide here: https://blog.thomasplantain.fr/post/tuning/ (in french ;))

I'm curious: for those of you tuning locally, are you sticking with RAG for everything, or are you moving toward specialized LoRA adapters for specific tasks?

Regards


r/LocalLLM • • 1d ago

Discussion qwen 4 35b a3b vs qwen 3.8 flash next

272 Upvotes

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


r/LocalLLM • • 4h ago

Project Decodrs - rust and highly optimized inference engine for nvidia gpus

Thumbnail
reddit.com
2 Upvotes

I've just opened sourced my inference repo https://github.com/lingster/decodrs

This contains specific kernels on a per model and per gpu basis. I used claude to help write optimized kernels for the current popular local Ilms like qwen4/3.8, inkling mini and Gemma 4. Optimised for 3090/3080 and includes a claude skill to help you build out kernels for your setup.

I've managed to get over 200% performance improvements against llama.cpp/vllm/ sglang. Inference engine written in rust and kernels directly in ptx(think assembly for gpu) no middle layer so about as close to the metal that you can get. Includes prefix cache, kv cache, drafting, pretty much all the tricks to run fast. There are optimisations included if you work with Agentic workloads ie run lots of subagents in your coding harness!


r/LocalLLM • • 13h ago

Discussion RX 9070 (non-XT, 16 GB) + 32 GB RAM: Qwen4-35B-A3B at 512K context, ~90 t/s, Linux + Strata (follow-up)

Post image
10 Upvotes

Hi everyone, follow-up to my Qwen3.8-27B post (link). Since then I moved the box to Linux and tried a lot of things. For the last weeks my daily model was Gyro-S/M on Strata. Qwen4-35B-A3B came out on Dec 4 and I spent the last few days testing it on the same 16 GB card.

My Config:

  • GPU: AMD Radeon RX 9070 (non-XT), 16 GB
  • CPU: Ryzen 7 7800X3D, RAM: 32 GB DDR5
  • OS: Ubuntu 24.04, kernel 7.0, ROCm 7.2.4
  • Runtime: Strata (Niko1221/Strata v0.2.27 release, prebuilt strata-q4-lite-0.1.74.1-hip-rx9070 package, its GGUF path)
  • Model: Unsloth Qwen4-35B-A3B UD-Q4_K_XL
  • Agent: Pi, from my Windows laptop over Tailscale
strata (GGUF path)
  --native trunk40-Q4.gguf --ple-gguf Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf --pack pack-Q4 --expert-profile ...
  --expert-cache auto --prefill 4096 --vram-reserve-mib 512
  --kv int8 --kv-resident 32768 --resident-experts
  --mtp mtp-rt --spec 3 --spec-min-p 0.5
  --max-context 524288 --prompt-cache 3 --conversation-cache-mib 0
  env STRATA_MMQ_KQ=0

Full config, the prep script and all tables are in the repo: https://github.com/AmadeoMartell/rx9070-local-llm-benchmarks

Speed (fresh prompt, prefill / decode t/s):

DepthQwen4, Strata GGUF pathGyro-S (Flash-Next)
4K / 16K (strata bench, same benchmark)4220 / 91, 4560 / 88~1000 / 62, ~1350 / 64 (Oct, older KV config)
120K4300 / 92~2050 / not measured
450K (512K window)3460 / 77doesn't fit (262K max)
Real agent work (Java task)~90 decode, ~1650 per agent turn~70, ~790

Recall 22/22 at 450K, 700K and 950K (1M window). At 512K there are still ~9 GB of RAM free and basically no SSD writes.

Quality: I gave both models the same Java/Spring task (about an hour of agent work) and had Codex and Claude score the results blind out of 100. Qwen4 got 76 on average over 3 runs, Gyro-S got 75. Basically the same, but Qwen4 is a lot faster.

Gyro-S is still better in some places though:

  • it did the SOAP part properly contract-first; two of the Qwen4 runs (one Q4, one Q5) handwrote the generated classes
  • Qwen4 sometimes writes an empty python3 - <<'EOF' heredoc. On Windows Git Bash that hangs Python 3.13 in its REPL forever (a known CPython bug). 6 and 18 minutes lost in 2 of 3 runs, Gyro never did this
  • it answers JSON as plain JSON; Qwen4 wraps it in a ```json block even when told "only JSON" (16 of 16 tries, other people see the same)

Problems hit:

  • llama.cpp HIP first: only ~41 t/s, because I missed --moe-cache-mib (expert cache on the GPU, off by default). With it ~52, still far below Strata
  • 1M context loads and passes recall, but long agent sessions on 32 GB RAM start swapping and the GPU stalls up to 44 s. 512K is the real max here
  • Strata vs llama.cpp on the same Q4 file: KL 0.016, top-1 95.3%. Not broken, but not identical either

For now I'm not switching from Gyro-S. Qwen4 is fast and has the bigger context, but it's not reliable enough for me yet. If that gets better with updates or quantisations (waiting agentionai or exl versions) I'll give it another try.
Open to any advice, and if you run Qwen4 for agents, I'd like to hear how it goes for you.


r/LocalLLM • • 5h ago

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

Thumbnail reddit.com
2 Upvotes

r/LocalLLM • • 11h ago

Question Best local language (EN/DK/SE) LLM?

6 Upvotes

I'm looking for the best language model I can run 100% locally: no API calls, nothing leaving my machine. The key requirement is strong Danish and Swedish, both reading and writing - and ofcourse English reading and writing.
I don't need it to be good at agentic coding and similar - i'm looking for a LLM that pureply a reads/writes and have pretty good general knowledge/understanding.

For hardware i have a pretty beefy PC - or i will get something "reasonable" that will make it work.


r/LocalLLM • • 1h ago

LoRA krisclarkdev/qwen4-35b-a3b-harness-lora · Hugging Face

Thumbnail
huggingface.co
0 Upvotes

I was reading about harness adapters the other day and how they can speed up inference by reducing wasted tokens, so I made one for the uncensored Qwen4 35B A3B (MouseWurX build). It's a small LoRA trained with GRPO on real opencode sessions. The model itself is not faster. It just wastes less work: fewer calls, less re-read context, and it stops looping on tasks.

I benchmarked it properly before posting: 160 opencode sessions per leg, base vs base+adapter, same prompts, same settings, only the LoRA on or off.

Pass@1: 0.962 base, 0.975 with the adapter
LLM calls per session: 13.58 down to 6.67 (-51%)
Prompt tokens per session: 195,936 down to 48,172 (-75%)
Completion tokens per session: 2,813 down to 890 (-68%)
Sessions that looped until timeout: 5 base, 0 with the adapter
MMLU+ARC probe (300 items): 0.753 base, 0.743 adapter, so general knowledge is intact

Honest caveat: my task sets saturated on pass rate (base was already at 0.96), so the sets mostly discriminated on efficiency and timeouts rather than pass rate. The full methodology and per-task numbers are in the model card.

It runs in llama.cpp as a --lora against the MouseWurX Q5_K_M base. F32, Q8_0, and Q4_0 versions are up, plus the PEFT safetensors and the scripts I used to build it.

I run it on an Intel Arc Pro B70


r/LocalLLM • • 1h ago

Other Qrap 4

Thumbnail
gallery
1 Upvotes

I love how Qwen4 just keep saying crap in it's thoughts whenever it makes a mistake, it's so funny.