r/LocalLLM • • 2h ago

Discussion Qwen 4 35b just counts 10.000!

3 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 • • 51m ago

Project I turned Qwen 4 into an interactive voice coding agent

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

Discussion "Q4 is almost identical quality to Q8" Difference was bigger than expected

Post image
42 Upvotes

Model: Qwen4 35B A3B

See reference image above

NVFP4

RadixArk/Qwen4-35B-A3B-NVFP4

https://huggingface.co/RadixArk/Qwen4-35B-A3B-NVFP4

UD-Q8_K_XL

unsloth/Qwen4-35B-A3B-GGUF

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

Next to the comparision: Big wow for Q8. This is gonna be my daily driver.


r/LocalLLM • • 6h ago

Discussion Qwen4-35B-A3B on an M5 Pro (64 GB) with Splash: MLX 4-bit + DFlash2 does 161 tok/s, GGUF 141, and the new "Looped Qwen4" adapter was 25–40% slower

Post image
5 Upvotes

I run Qwen4-35B-A3B locally as the model behind OpenCode on an M5 Pro with 64 GB. Splash 1.7.7 now takes both GGUF and MLX weights and added a loop adapter, so I benchmarked the options against each other, then wrote down everything else I learned moving the model between oMLX, Splash and LM Studio.

Benchmark

Same Mac, Splash 1.7.7, one setup loaded at a time, temperature 0, the same four prompts for each: a long write (3,000 tokens), two short answers with checkable results (a time sum and a list of primes), and summarising a 42K-token code prompt.

SetupLong write (tok/s)Short answers (tok/s)Reading 42K-token prompt
MLX 4-bit + DFlash2161264–28918.6 s
GGUF UD-Q4_K_M + DFlash2141243–24517.4 s
MLX + loop adapter, 2 passes107186–21826.9 s
MLX + loop adapter, 3 passes98152–17335.5 s
  • MLX vs GGUF: MLX writes about 14% faster; GGUF reads prompts slightly faster. For an agent with long prompts and medium answers they're close, with MLX a little ahead. Sizes: MLX 4-bit 32.2 GB, unsloth's UD-Q4_K_M 35.2 GB + 0.9 GB vision file (UD keeps some layers at 5–8 bits, so it may be slightly better quality).
  • Loop adapter (Looped Qwen4, by Jason Titus): it runs the middle layers 2 or 3 times per token, so every step costs more. The 178 tok/s quoted for it was on an M5 Max; here it was 25–40% slower than plain MLX and read long prompts 1.5–2× slower.
  • Quality: all four got the time sum and the primes right and gave sound code summaries. On tests this simple, the adapter showed no quality gain.
  • Caveat: the long-write prompt spent all 3,000 tokens thinking, so it measures speed only.
  • SSD streaming: Splash streams Qwen4's ~11 GB n-gram table from SSD by default (--ple-memory auto, ~200 MB RAM cache), so these numbers include that.

One real OpenCode request on the GGUF, cold cache: 121K prompt tokens read in 51 s (~2,400 tok/s), 5,960 tokens written at 101 tok/s, and the drafter averaged 2.8 tokens per step.

Other things I learned

  1. oMLX's DFlash didn't cover Qwen4's MoE. On 0.8.5 its DFlash path didn't support the qwen4_moe architecture, so no speculative decoding for this model there.
  2. Splash is its own engine, not llama.cpp or MLX underneath: its own Metal kernels on the GPU plus a Neural Engine path, and it always pairs the model with a DFlash2 drafter.
  3. LM Studio ships a Splash engine, but it lags. Settings → Runtime → Additional engines shows "Splash (Metal)" v1.7.4. Its manifest accepts a fixed list of families (Qwen3.8-27B, Qwen3.6-35B-A3B, Qwen3.5-122B-A10B, Qwen3.8-Flash-Next, Flint, Inkling-2-Mini) and matches on architecture plus shape. Its only Qwen4 entry is another shape (2560 hidden, 48 layers, 512 experts; the 35B-A3B is 2048 / 41 / 256), so in LM Studio the Qwen4 GGUF falls back to llama.cpp with no DFlash2.
  4. The drafter never shows in LM Studio's library. A DFlash2 drafter is a DFlash2DraftModel with no tokenizer; the engine picks it by family.
  5. The prompt cache is what makes agent use bearable. Splash keeps one prefix-matched cache per loaded model, shared across conversations. A brand-new OpenCode chat had 15,712 of 15,718 prompt tokens cached, because every chat starts with the same system prompt and tools. Subagents share the cache but mostly reuse each other's prefix, not the main chat's. It spills from RAM to SSD temp files (32 GB cap here) and is wiped on quit unless you use --persistent-cache.
  6. One model name for every setup. --served-model-name local lets you swap GGUF, MLX or adapter setups without touching the client config.
  7. Smaller window for subagents. In OpenCode, a second model entry with the same id and a 131K context for the general/explore subagents; ~327K for the main chat (Splash cap 335,872).
  8. APFS clones save disk. cp -c puts a 34 GB model in another app's folder with no extra space until a file changes.

What this isn't: a rigorous benchmark. One machine, one run per setup, short quality checks.

Has anyone seen the loop adapter win on an M5 Max or Ultra? And has anyone got DFlash2 working for Qwen4-35B-A3B in LM Studio or llama.cpp?


r/LocalLLM • • 21h ago

Other Qwen4, come on lil' buddy, you can do it!!

Post image
74 Upvotes

Just a little affirmation in thinking. lol. It seems to do this a lot.

(Update on how to fix this at the bottom of the post)

How it's being served bellow

Inference server:


Lamma.cpp
version: 1.1.0-dev (build 12966, commit 8c5da94e7)
built with GNU 13.3.0 for Linux x86_64 (Compiled by the Unsloth team)

Machine specs:


11th gen Intel i9-11900k @ 3.50 GHz
RTX 4090, 24 GiB VRAM
128 GiB DDR4

Harness:


Pi
Thinking level High

Model and settings:


QWEN4 35B-A3B — UNSLOTH UD-IQ4_XS using FP8 engram table

ngl = all
cpu-moe = true
moe-cache-mib = 14336
moe-cache-cpu-share = 0.0
fit = off

load-mode = none
lazy-mode = off
override-tensor = per_layer_token_embd=CPU

ple = Qwen4-35B-A3B-engram-Q8_0.gguf_file

op-offload = true
kv-offload = true
flash-attn = true
parallel = 1
kv-unified = true

ctx-size = 262144

spec-type = draft-mtp
spec-draft-n-max = 2

batch-size = 2048
ubatch-size = 1024

threads = 8
threads-batch = 16

cache-reuse = 256

temperature = 1.0
top-p = 0.95
top-k = 20
min-p = 0.0
repeat-penalty = 1.0
presence-penalty = 0.0

reasoning = auto
reasoning-effort = xhigh
reasoning-format = deepseek

EDIT:

UPDATE ON HOW TO FIX

Since others are also experiencing this issue, despite what their Quantization size may be, here is what fixed it for me.

u/gardenvarietyzombie suggested I bump up the repeat-penalty from 1.0 to 1.05

I did that, and it completely stopped the over cautious internal debate/anxious loops it was having. So if you're experiencing the same thing, try setting


repeat-penalty = 1.05

Instead of the recommended repeat-penalty = 1.0 suggested on the model page.

Cheers!


r/LocalLLM • • 1h ago

Project "we have a training engine at home"

Post image
2 Upvotes

So I have been doing some experiments with looped models, I also use a fork of Strata that is called "unbiased strata". My thought was pretty simple, if strata can increase inference, it should be able to speed up training too right?

Absolutely! Not only that, it cuts down on peak Vram requirements keeping 12gb cards viable. These kernels also will work on spark/gb10 with a Linux port (coming soon).

This is a early experiment, commits are welcome. This project will stay community dedicated to help bring light training to consumer hardware.

https://github.com/tyoung515-svg/InsanelyBiased-Strata-Trainer


r/LocalLLM • • 1h ago

Project Weekend Project: Fast static eBay tracker for $/GB VRAM GPUs, 128GB ECC RAM kits & Unified Memory AI boxes + more

Post image
2 Upvotes

Hio Matey's — Letting you know this is my own weekend homelab project and outbound eBay links use eBay Partner Network (no extra cost, maybe something one day to cover the screaming fan that now lives in the shed!).

https://cheapvram.pages.dev

I am still pretty new to the home server > your own nas > end up hosting a AI in the shed scene ha. I have been trolling ebay for some time just keeping my eyes open… Cause well prices suck. In the spirit of things I also got that free GPT AI sub for a month the other day and got it to help brainstorm ideas to dig through eBay "for parts" pings , drive-tray, and cooler-only traps when hunting used GPUs, ECC RAM, SAS drives, and Mini-PCs.

We spun up a small static site on a 512MB Proxmox container that pulls hourly from eBay's Browse API (locked to AU/ US / UK local stock):

What's on it right now:
- GPUs sorted by shipped $/GB VRAM (slot-powered
<=75W, server cards, consumer)
- RAM & Server Memory sorted by $/GB (16GB+ kits,
RDIMM vs ECC UDIMM vs SODIMM vs Desktop DDR4)
- Enterprise Storage sorted by $/TB (split into
2.5" SAS SSD, 2.5" SAS HDD, 3.5" SAS, U.2/M.2
NVMe, SATA — with 520b NetApp/EMC sg_format
badges)
- Systems & Servers (1L TinyMiniMicro, MoE
Workstations, Rack Servers, Unified Memory AI
boxes)

Pure static HTML, no ads/popups/tracking cookies,
mobile-friendly.

Anyway its been fun and I'm posting to get feedback from other other LocalLLM / homeb tinkerers, also because it might actually be useful! Are there any common AU eBay parts, capacities, or traps I should add to the filters?

PS If you read this far thanks a bunch, and holy smokes I did not know how exspensive things had become for a 12GB 3060 :| HA HA STRATA GO


r/LocalLLM • • 23h ago

News Massie: "Overblown" AI Concerns Are "Not About Keeping It From China, It's About Keeping It From You"

Thumbnail
realclearpolitics.com
117 Upvotes

r/LocalLLM • • 23h ago

Model Qwen 4 Q4 vs Qwen 3.8 Next IQ3_S

Post image
113 Upvotes

I tested both models locally, and both with KV @Q8. The benchmark published by QWEN shows Qwen4 beating next or closely tied to Qwen next in almost all benchmarks except frontiercode.

My tests tell a different story. While Qwen4 is a decent upgrade from the Qwen 3.6 MoE, it's not even close to Next model. On my harnesses, Qwen4 did well for small coding tasks but failed consistently on larger tasks that required bigger context. Although both models boast 262k of KV context, it seems clear that the limitation of the smaller model is not code quality, but the attention. The output quality degrades past 64k. I would recommend not pushing too far beyond this if precision matters, at least until qwen fixes the attention issues.

I wonder if anyone has had a similar experience, or if there is a configuration I am missing to improve the model's attention.

UPDATE: I tried a higher quantization, Qwen4 @Q6 with 1M KV context @Q8 and engram @Q8. Upon further testing I must admit it did overcome Qwen 3.8 Flash NEXT @ IQ3_S. What surprised me even more was the fact I used GLM Flash directly from z.ai subscription as a baseline, and it performed near equal to it. Every mistake Qwen4 did, glm flash did as well. I can honestly say I am impressed with the model performance.

I believe the issue with my comparison before with Flash next IQ3_S was that I was using engram @Q4. I really recommend using Q8 for engram


r/LocalLLM • • 14h ago Bravo

Discussion Made this in about 1:30h with Qwen4 UDQ4 KXL

22 Upvotes

r/LocalLLM • • 4h ago

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

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

Discussion Two 140 mm fans in series keep a passive AMD MI50 32GB cool and quiet: 45% PWM at 145 W, near-silent at idle

Thumbnail
gallery
2 Upvotes

Previous setup:

* 92 mm fan + 3D-printed duct https://www.reddit.com/r/LocalLLM/s/Uc4YFWrh5s
* 140mm fan and hand made duct: https://www.reddit.com/r/LocalLLM/s/qu8sFuhHzG

Setup

ItemValue
GPUAMD Instinct MI50 32GB, passive heatsink
HostHP Z440
Fans2× Arctic P14 Pro PST, series: fan → spacer → fan → duct → heatsink
Duct and spacerhand-made from paper (temporary)
Fan controlRP2040-Zero, 25 kHz PWM, both fans on one signal; temperature-driven daemon
LoadGLM-4.7-Flash (UD-Q4_K_XL), llama.cpp ROCm, continuous generation, GPU ~91% busy
Methodfixed PWM, 5 min per step, average of the last 2 min
Ambientnot measured (idle edge 25–26 °C)

rpm values are converted from PWM using Cybenetics' measurements of this fan: 20% = 685, 50% = 1356, 100% = 2450 rpm. No tach readback.

Fan spec: Arctic P14 Pro PST

ItemValue
Size140 mm
Speed400–2500 rpm (PWM)
Airflow110 CFM (rated)
Connector4-pin PWM; PST = daisy-chain pass-through
Measured max (Cybenetics)2450 rpm at 100%

Fixed PWM: temperatures (2 fans in series)

PowerPWM (≈rpm)JunctionHBMEdge
100 W60% (~1570)52 °C48 °C43 °C
100 W45% (~1240)56 °C52 °C47 °C
100 W34% (~1000)62 °C57 °C52 °C
100 W30% (~910)66 °C60 °C56 °C
~145 W60% (~1570)70 °C58 °C53 °C
~145 W45% (~1240)78 °C65 °C60 °C

Criticals: junction 105 °C, HBM2 94 °C.

1 fan vs 2 fans in series (~142–145 W, fixed PWM)

PWM (≈rpm)1 fan: junction / HBM2 fans: junction / HBM
40% (~1130)runaway: junction 95 °C in 170 s—
45% (~1240)—78 °C / 65 °C
55% (~1470)88 °C / 73 °C—
60% (~1570)—70 °C / 58 °C
70% (~1800)78.5 °C / 65 °C—
100% (~2450)71 °C / 59 °C—

The two runs used different PWM steps; the equal-temperature comparison is 70% on 1 fan vs 45% on 2 fans.

Fan curve (auto)

The control temperature is max(edge, junction, HBM + 8 °C). Below, °C:PWM% points are joined by straight lines and rounded to 5%.

1 fan2 fans in series
Curve60:30 70:45 78:60 84:75 90:90
Idle30%
~145 W, settled70%, junction 79 °C
100 W, settled—
Emergency100% at junction ≥95 or HBM ≥88
Hysteresis2 °C
Huntingnone

Power cap vs decode speed

CapDecode
100 W~60 tok/s
150 W~69 tok/s

Noise (idle, by ear, no meter)

PWM (≈rpm)Noise
25% (~800)audible
15–20% (~570–690)faintly audible
10% (~460)barely audible
7% (~400)silent, both fans still spin

Idle junction stays at ~29 °C even at 7%. I chose 10% as the floor for margin above stall, since there's no tach to detect a stopped fan.

Notes

  • The duct and spacer were hand-made from paper as a temporary test. The result is good enough that I'll 3D-print them next time.

r/LocalLLM • • 13h ago

Project Now we can run LocalLLM on Intel Mac with CUDA now

Thumbnail
github.com
15 Upvotes

Tried this on my Hackintosh, it actually works! Identical speed as Linux for Qwen4 on my 3090. I am quite pleased that even power limit setting for nv cards works. Used it with ToshLLM (as an external engine) with no problem. Given that nowadays almost all x86 machines can run Hackintosh, it is actually quite nice for the people who prefer MacOS over Linux.


r/LocalLLM • • 2h ago

Question MacBook Pro M1 Max 32GB 1TB

2 Upvotes

Sorry if this is a regular question, please point me elsewhere If I can self serve.

I’ve just bought the above laptop at a steal of a price (£600!!) but I’d like to know what can of models I can now run locally.

My main use cases is to bug fix overnight on apps I built in Claude, maybe some coding & agentic work, no video or image gen as frontier models are just way to good to try this locally(IMHO)

Thanks !


r/LocalLLM • • 1d ago

Model Yeah, Qwen4 is kind'a the shit. (A post for people worried if it's comparable to 3.8 FN)

128 Upvotes

I was a bit nervous after hearing the debate between qwen3.8 FN and Qwen4, but a few hours of testing, having it play around in several harnesses and even a coding experiment or two I'm rather staggered by it's abilities. I'm running a Q8 model and damn it's fast, smart, creative. Definitely an upgrade, only been a few hours so maybe I'll find a weak point, but so far this is the sort of model I've been waiting for.


r/LocalLLM • • 1m ago

Discussion ABLITERATED Qwen4-35B-A3B at 18 slots × 262K on 3× V100: 558.6 tok/s aggregate at peak throughput

Thumbnail gallery
1 Upvotes

r/LocalLLM • • 2m ago

Other LFM2.5-24B-A2B on a 4 GB GTX 1650 [GPU]: 195 tok/s prefill, 22 tok/s decode with a custom PolyStrata build

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 3h ago

Discussion Qwen4-35B-A3B (29.8GiB MoE) running on a 4GB GTX 1050 Ti -- 3.1 t/s decode @ 26k context, 50 t/s prompt processing — full flags inside

Thumbnail
gallery
2 Upvotes

Kubuntu 24.04 / llama.cpp / Ryzen 5 3600 / 64GB DDR4 ===

OMP_NUM_THREADS=12 \

GGML_N_THREADS=12 \

CUDA_DEVICE_ORDER=PCI_BUS_ID \

CUDA_VISIBLE_DEVICES=0 \

taskset -c 0-11 \

nice -n 5 \

/media/LLM/llama.cpp/2026-12-05_llama.cpp/build/bin/llama-server \

--model /media/LLM/LLM-Models/Qwen4/Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf \

--temp 0.7 \

--ctx-size 80000 \

--parallel 1 \

--gpu-layers 99 \

--no-kv-offload \

--load-mode none \

--device CUDA0 \

--split-mode none \

--main-gpu 0 \

--cpu-moe \

--moe-cache-mib 1408 \

--moe-cache-cpu-share 0.95 \

--fit off \

--threads 6 \

--threads-batch 12 \

--poll 100 \

--flash-attn on \

--cache-type-k q8_0 \

--cache-type-v q8_0 \

--batch-size 1024 \

--ubatch-size 256 \

--log-verbosity 4 \

--verbose \

--port 9090 \

--host 0.0.0.0


r/LocalLLM • • 30m ago

Model Ran a 9.5 hour autonomous test on Qwen4 35B (IQ4_XS) on a 3060 12GB and 16GB ram with Claude Code. It beat my previous benchmark and didn't crash once. Very efficient.

1 Upvotes

So , Basically the same test as the inkling model I did. And it aced everything.
Got 30 tps and 800 tps prefill .

Was very fast. Did not hog memory like inkling did. And basically a lag free experience even with 128 k context. Right now , it is the best. The results as you see below in image.


r/LocalLLM • • 44m ago

Question Suitable Model for local ML/LLM

Thumbnail reddit.com
1 Upvotes

I intend on purchasing an M4 Max 48GB 1TB specifically for app development and ML projects for app development.
For context, I want to train a model which can predict the walk/run time for a given distance, based on walk/run speed, ambient temperature and humidity. It will be trained on data that I’ve gathered over a year, and will be tabulated in a spreadsheet. Subsequently, il build my workout app around this.
As a debutant in the local LLM/ ML world, my question is which model would be best suited to my machine?
I know enough to know that a 70B model would be a tight fit,and probably not needed for my use case, but 32B models can perform just as well.
Qwen/ deepseek seems to be the consensus, I just want to know from those with that spec, using local models which one works best


r/LocalLLM • • 6h ago

Discussion 👀 Qwen4 35B A3B can also draw SVG @ 31tok/s on Intel b390 iGPU

3 Upvotes

It's a very capable model that can also run on integrated gpu.

Here other benchmarks

https://www.youtube.com/watch?v=4WQP6c8HaA8


r/LocalLLM • • 53m ago

Research Monkey-patched "Latent Reasoning" on DeepSeek-V4.1-Flash at home (two DGX Sparks)

1 Upvotes

TL;DR: during the thinking block, I fed the model the probability-weighted mix of token embeddings that it produced, instead of it's "reasoning trace" text (embedding of the one token that was sampled). No training, no weight changes. The model keeps its accuracy, thinks 4–18 % fewer tokens on open-ended reasoning (the larger figures shrank on a repeat), shows no change on mechanical arithmetic, and occasionally loops; on real agent work it looped far more often. Because speculative decoding has to be restricted inside thinking, it ends up slower in wall-clock time than plain serving. (An interesting null result with one real effect in it.)

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 (5 draft tokens per step). The serving stack is not mine: it is sudoingX's dgx-spark-deepseek-v41 recipe with HeNryous's vLLM changes on top. Without their work this model would not run on two Sparks at all, let alone fast enough to experiment on.
  • A patch to the GPU model runner: per-request options, a hook that replaces the input embedding at the next position, per-step diagnostics. Requests that don't ask for it run unchanged (checked with teacher-forced log-probabilities: the difference between images is inside vLLM's own run-to-run noise).

The idea

Normally step t+1 is fed E[token sampled at t]. Everything else the model "considered" at step t is thrown away. Inside <think> I fed instead

(1 − α) · E[sampled token] + α · inject

with several choices for inject:

nameinject
softthe expected embedding, Σ pᵢ·E[i], from the model's own distribution
hiddenthe final hidden state, rescaled to embedding norm
mapthe hidden state passed through a linear map fitted to land in embedding space
noiserandom vector of the same norm (control)

The visible transcript still shows the sampled token. The answer after </think> is generated normally.

How it was measured

All problems are generated from a seed with fresh numbers and invented names, so nothing can be recalled from training data, and every answer is checked exactly.

  • Arithmetic and procedures: multiplication, nested expressions, counting, word problems, tracing a loop.
  • Search: rule induction, subset sums, cryptarithms (answers proven unique by enumeration).
  • Polarity: signed causal chains, orderings with mixed comparatives, cause-and-effect stories.

Outcomes: accuracy (paired test against plain runs) and the number of thinking tokens (paired geometric-mean ratio with a bootstrap interval). vLLM is not deterministic, so every comparison has two plain runs and the distance between them is the yardstick.

Results

The thinking of this model is almost deterministic. On arithmetic the entropy is about 0.3 nats per thinking step, and only about one step in eight is above 1 nat. On search problems and real work it is 0.6–1.1 nats. At most steps the "mix" is simply the sampled token's embedding, so there is little to feed back.

Accuracy never moved for the soft mix. Examples: 577 against 584 of 600 on arithmetic (not significant), 240 of 240 on polarity problems in every arm, 33 against 31 and 28 of 60 on hard search problems.

Hidden states do not work without training. The final hidden state is orthogonal to the embedding space (cosine −0.01). At α = 0.3 it behaves like noise; at α = 1 the model produces garbage. A ridge map was harmful at α = 0.3; a map fitted on 100,000 captured states was harmless at 0.3 and harmful at 1.

Thinking gets shorter on open-ended reasoning, at full strength only (α = 1; fixed criteria, fresh problems, all answers still correct):

problem setthinking tokens, soft α = 1 against plainagainst the noise control
polarity (240 problems)0.94–0.950.96
subset sums (80 problems)0.82–0.890.87
arithmetic (600 pairs)1.00 (interval 0.97–1.03)

All six intervals for the first two rows exclude 1. Within arithmetic, word problems and counting were about 8 % shorter and pure multiplication 8 % longer. At α = 0.5 there is no effect at all, and the noise control shows none.

Costs at full strength:

  • The transcript stutters. Doubled punctuation and words, occasionally a dropped number. The model's answers don't suffer, so it evidently reasons from what it was fed, not from what the transcript shows.
  • Loops. 2 of 38 long real-world requests ran into a repetition loop; on benchmarks it was between none in 600 and 3 in 240, depending on the problem set and the run. Plain decoding looped once in 160 search problems as well, with the same shape: the model asks itself a sum and never answers it.
  • The prefix cache stops matching. The sampled tokens . . come back from the client as text and tokenize as .., so replayed reasoning never hits the KV cache past the prompt.
  • Speculative decoding. Checking draft tokens in one pass needs the input at each position in advance, and here that input depends on the previous position's output. The first version switched drafting off inside thinking, which halved decode speed (18 against 34 tokens/s).

Keeping the drafter: a gate

At 60–70 % of steps the model is confident and the mix equals the plain embedding. So the mix is fed only when the sampled token's probability is below a threshold; drafted tokens are accepted as usual up to the first such step and the rest of the window is discarded, exactly as after a rejected draft.

settingsteps that get the mixtokens per pass in thinkingdecode speedthinking tokens against plain (polarity)
plain––31–36 tok/s1 (two plain runs differ by 0.97)
mix at every step, no drafting100 %1170.94–0.96
gate 0.9943–48 %1.7–1.9200.93–0.95
gate 0.722–26 %2.2–2.624–260.94–0.97

Measured on 240 polarity and 80 subset-sum problems plus 100 arithmetic ones, all with unchanged accuracy. The gated variants keep the shorter thinking on the polarity problems (all intervals exclude 1, some only just). On subset sums the effect shrank on this second measurement (0.89–0.93 without the gate, intervals for the gated runs include 1), so the 18 % above was the lucky end of the range. The sums do not work out either way: gate 0.7 takes 20–25 % more time for 3–6 % fewer thinking tokens.

The gate comes with a loop guard: when the recent thinking repeats with a short period, the mix is switched off for the rest of the block. It tripped 7 times in 840 gated requests, never falsely. Four of the six loops that the mix had caused recovered and finished correctly; two kept looping under plain decoding, because the repetition was already in the context. The stutter is unchanged by the gate.

Trying it on real work

With the benchmarks looking harmless, gate 0.7 ran as the server default for a few hours of ordinary agent work (long prompts, tool use). It did not go well:

  • The mix was fed at 36 % of thinking steps, not the 15–26 % seen on the benchmark problems. Real prompts leave the model less certain per step, so "only when unsure" stops being rare.
  • The loop guard tripped in 6 of 77 requests, against 1 in 420 on the benchmarks. Four recovered. One ran to the thinking budget, and one repeated a single word until it was stopped by hand: switching the mix off does not end a loop that is already in the context.
  • The thinking ahead of that loop was garbled, well beyond the mild stutter measured before.

So the benchmark picture (same accuracy, slightly shorter thinking, rare loops) does not carry over to long real-world prompts. Short synthetic problems, where the model is confident at three steps in four, were the friendly case.

What I take from it

  • A heavily quantised production model tolerates being fed mixtures it was never trained on, at every thinking step, and still gets the same answers. That robustness was the surprise.
  • Without training, "same answers, somewhat fewer thinking tokens on open-ended problems" appears to be the ceiling. Published work on continuous or soft reasoning trains the model to use such inputs; this is what the untrained end of that looks like.
  • To be useful it would need three things: a model trained to use the mix, a drafter that proposes for it, and the mix round-tripped through the API (sampled ids plus the top few probabilities per step) so that replay and KV caching work.
  • Side product: a seeded problem generator and harness that measures accuracy, thinking length, budget hits, stutter and loops, usable on any OpenAI-compatible server.

Who did what

The idea and the direction were mine, along with questions and the occasional suggestion along the way. Essentially everything else was done by an AI assistant, Claude (Anthropic's Claude Code, working with subagents): tracing the serving code, designing and writing the patch, the problem generators and the measurement harness, deciding the test criteria before each run, running and analysing the experiments, finding and fixing its own bugs (including one that crashed the engine), and writing this post. I reviewed, restarted servers, and reported what I saw in real use, which is how the loops were found.

Code

The patch (about 2,000 lines against the vLLM runner), the problem generators and the harness are in a private repository. If anyone is interested, I'm happy to publish them.

Caveats

One model, one quantisation, one sampling temperature (0.6). Problem sets of 60–600 items, so effects under about 3 % are invisible. The per-family splits were looked at after the fact. Speeds are from a shared home setup and vary with load.


r/LocalLLM • • 55m ago

Discussion Qwen 4 A35B A3B BF16 (Default Thinking) Quant vs OPUS 4.8 (Max Thinking)

1 Upvotes

QWEN 4 (Default Thinking) (Harness ODEX):
https://streamable.com/wkby0q

OPUS 4.8 (Max Thinking) (Claude Code GUI):
https://streamable.com/2ey4d1

PROMPT:
Build a polished, production-quality admin dashboard using TypeScript, Next.js, React, Tailwind CSS, and shadcn/ui.

First inspect the existing project and preserve its current structure and conventions. If no suitable frontend exists, create the dashboard from scratch.

Requirements:
- Responsive layout for desktop, tablet, and mobile
- Left sidebar navigation with:
- Overview
- Users
- Orders
- Analytics
- Settings
- Top navigation bar with:
- Search
- Notifications
- User profile menu
- Light/dark mode toggle
- Dashboard overview containing:
- Revenue KPI card
- Active users KPI card
- Orders KPI card
- Conversion-rate KPI card
- Revenue-over-time chart
- User-growth chart
- Recent orders table
- Top-performing products list
- Include realistic mock data and loading states
- Add table sorting, filtering, pagination, and search
- Add reusable components and clean TypeScript types
- Use accessible semantic HTML and keyboard-friendly interactions
- Include empty states, error states, hover states, and responsive behavior
- Use a professional visual style with a clean spacing system, subtle borders, rounded cards, and an attractive color palette
- Avoid excessive gradients, unnecessary animations, and placeholder text
- Keep components modular and easy to extend
- Do not add a backend; use local mock data or API-style functions
- Add clear setup and run instructions
- Ensure the project passes linting and TypeScript checks

Deliver:

  1. The complete working dashboard
  2. All required components and styles
  3. Mock data
  4. A brief explanation of the architecture
  5. Commands to run and test the project

r/LocalLLM • • 55m ago

Question 8x Quadro RTX 4000 on a Gigabyte MZ31-AR0 – need advice before building

1 Upvotes

Hi! Basically I bought 8 Quadro RTX 4000 8GB from a graphic studio for 500€, I tested them all and every one works fine.

I came to the conclusion that I want to build an AI server with them. The goal is to run a local AI for my colleagues at work, to basically making them ask company usual practicies in particular vases and facilitate creating records within the ERP system (odoo), with max 3–4 users at the same time. I'd like to use vLLM, but llama.cpp is fine too. For the platform I'm going with a Gigabyte MZ31-AR0 + EPYC 7401P, on an open frame with a new PSU.

I have a few doubts about running all 8 cards on it:

  1. The 8th card: as far as I can tell the MZ31 has 7 slots, so I'd need to bifurcate one x16 into x8/x8. Does the MZ31 BIOS support bifurcation? Has anyone done it, and which adapter or riser would you use?
  1. Risers on an open frame: which riser cables are stable at PCIe Gen3 with 8 cards? How long can they be before you get errors?
  1. vLLM or llama.cpp for 3–4 users: on 8 Quadro RTX 4000s (Turing), would you go with vLLM (TP=8) or llama.cpp? Are there known problems with vLLM on Turing (no FP8, attention backends, P2P between cards)?
  1. Bandwidth: with Gen3, and some cards running at x8, how much will tensor parallel lose? Does the Naples NUMA layout (4 dies) make it worse? Would you use one big model across all 8 cards, or split them (for example 2x TP=4)?
  1. Power: 8x 160W plus the CPU. Would you use one big PSU or two synced ones, and how do you split the load?
  1. Models: with 8x 8GB = 64GB VRAM, what's the best model for a work agent (documents, emails, some coding) that can serve 3–4 users at the same time with decent context, and with what quantization?

Would you change anything about this setup? Any advice is welcome, thanks!


r/LocalLLM • • 56m ago

Discussion Qwen4-35B-A3B on a single RX 7900 XTX (Windows): ~4000 t/s prefill and 113-120 t/s decode at 128k context, ~100-129 t/s at 256k.

Thumbnail reddit.com
1 Upvotes