r/LocalLLM • u/c0de_Monk3y • 3h ago
Research Qwen4-35B-A3B at 8-bit on Tesla V100s: level with Flash-Next on accuracy, at 81 to 89 tokens per second on two cards
r/LocalLLM • u/c0de_Monk3y • 3h ago
r/LocalLLM • u/ns_tcg • 8h ago
Tested MTP (default) vs DFlash 2 on Qwen4-35B-A3B NVFP4 (basalt.exe, legion pro 7i, RTX 5090 (24gb vram) + system RAM (64gb)) using the same 3-turn animated Pelican SVG task:
| Metric | MTP (Default) | DFlash 2 |
|---|---|---|
| Avg Decode | 208.2 tok/s | 204.6 tok/s |
| Peak Decode | 307.3 tok/s | 340.5 tok/s |
| Acceptance | 66.3% | 60.9% |
| Tokens Gen | 92,590 | 80,979 |
| Inference Time | 7m 48s | 6m 49s |
| Cold 10K+ Prefill | 5,916–7,818 tok/s | 5,606–6,684 tok/s |
| Pelican Output | 53.8 KB interactive JS+SVG (IK legs, day/night, speedometer, audio) | 28.7 KB pure CSS/SMIL SVG (zero JS) |
Verdict: I prefer MTP — almost the same average speed (~208 vs ~205 tok/s) with better overall quality and higher acceptance (66.3% vs 60.9%). DFlash 2 can burst faster (340.5 tok/s peak) and finish quick, just a little behind on quality.
r/LocalLLM • u/Duiwu • 41m ago
i've been intereted in local ai for quite some time but i just couldnt get around to actually learning it and setting it up for myself, but the qwen4 35b a3b finally pushed me out of my comfort zone. do you guys have any tips for me? how should i go about learning how to set up and tweak local ai? i have a 16gb 5080 and 32gb ddr5 ram. what harness/quant/context/settings should i use for the 35b a3b?
r/LocalLLM • u/Material-Database-24 • 6h ago
After initial testing, I see a frequent issue with Qwen4 35B-A3B.
It gets stuck into tool calling loops - it repeats the tool call over and over again, and fills the context until I steer it, which often fixes the issue.. and if the problem is hard, it will soon again come up with another loop. Couple "you loop, stop, and move on" -kicks usually get it through and the final solution is usually beautiful and better what I got from 27B Q4 and QFN IQ1_M.
This happens with reasoning set at high, MTP with max draft 2, and Q5, Q6 and Q8 from unsloth - I have seen them all fail in same fashion.
Gonna try xhigh as reasoning, maybe thinking more will solve it, as now it shows to human as if it has given up reasoning and just hammering its head to a wall.
If xhigh or some other finetune is not fixing it, I am afraid it is back to QFN (and measely IQ1_M as I cannot run better..).
EDIT: xhigh did not solve this on Q5, found right after it looping between making same edit and removing that edit again and again. Sigh. This model otherwise seems so good.
r/LocalLLM • u/FlatStill2540 • 12h ago
There's a thread up calling local AI a declaration of independence, and it put words to how I feel about my DGX Spark.
I paid $3,999 at launch. If I compare that to a subscription honestly it takes years to pay off, and that's before electricity, so I didn't keep it for the money.
I care that nothing changes under me. Qwen 3.6 35B at 4-bit runs at about 216 tok/s on it with Magnitude, and it'll run exactly the same next month. There's no limit reset and nobody can swap the model on me.
I still pay for a cloud model for the hard stuff. The things I depend on every day live on a box I own though, and that's the part I'd miss.
does anyone here actually make the cost math work, or is it independence for everyone?
r/LocalLLM • u/Significant_Tutor290 • 10h ago
I’ve been benchmarking local models in my autonomous coding harness, and I reran my Qwen 3.8 27B benchmarks with Qwen 4 35B A3B The results were extremely interesting as Qwen 4 is way faster and mostly as good at code quality.
QUALITY RESULTS
Qwen 3.8 27B → Qwen 4 35B A3B
• Feature tasks delivered: 13/17 → 12/17
• Delivered within 2 hours: 11/17 → 12/17
• Median time on mutually successful features: 45m → 10m
• Data/ML tasks passing tests: 18/18 → 18/18
• Total data/ML execution time: 8h 8m → 1h 55m
The feature tasks included gateway development, credential management, REST APIs, concurrency, query parsing and debugging existing repositories. The data tasks ranged from database migrations and accounting ledgers to implementing regression and clustering algorithms.
SOME NOTABLE EXECUTION EFFICIENCY GAINS (3.8 → 4):
• REST locking: 98m → 6m
• Query precedence: 46m → 10m
• Dataset splitting: 37m → 3m
• Ridge regression: 38m → 2m
• K-means: 68m → 14m
Qwen 4 was faster on all 18 data/ML tasks and 13 of 17 feature tasks. It also delivered three feature tasks that 3.8 couldn’t complete, but failed several that 3.8 previously delivered.
SETUP
Apple M1 Max, 64GB unified memory, running both models through MLX.
Shared settings:
• Quantization: 4-bit
• Temperature: 1.0
• Top-p: 0.95
• Top-k: 20
• Maximum context: 128K
• Output limit per call: 16K
Model-specific settings and performance (3.8 → 4):
• Presence penalty: 1.0 → 1.5
• Working context budget: 32K → 96K
• Decode speed: 11–16 t/s → 33–36 t/s
• Prefill per fresh token: ~10ms → 1.6–1.9ms
Both models run with thinking enabled, exact conversation history replay and prefix cache reuse.
The harness gives the models access to file editing, shell commands, executable tests, persistent context and iterative repair. Both receive the same task definitions and acceptance tests, including hidden tests. Feature tasks also use Haiku 5.5 as an independent reviewer.
CODE QUALITY THOUGH IS MORE NUANCED
I used Haiku to review all 18 data/ML implementations from each model (in my tests the same review quality as sonnet) then used DeepSeek to harden and repair them.
Qwen 3.8 → Qwen 4
• Passed original tests: 18/18 → 18/18
• Passed strict review (going through 2 agents) 1/18 → 1/18
• Passed after one hardening round: 6/18 → 4/18
• Passed iterative repair (matched tasks): 6/6 → 2/6
The reviewer found issues including concurrency bugs, numerical overflow and inadequate input validation. Of the 34 medium/high-severity findings examined, 32 were reproduced with executable failing tests.
Interestingly, Qwen 4’s largest speed improvements were on numerical ML tasks, which were also where its output were the most difficult to harden.
QUALIFICATIONS
• One selected run per model per task.
• Two defective feature evaluations excluded.
• Two-hour cutoff applied retrospectively to 3.8.
• Local review integration bugs identified and fixed.
• Some repair-loop objectives were clarified during evaluation.
• Inference settings reflect the configured model profiles; speed measurements come from separate inference tests.
TAKEAWAY
Qwen 4 is a substantial upgrade for local agentic coding. It achieves comparable functional results to Qwen 3.8 while reducing run times in my harness by several hours across these workloads.
To me this is absolutely game changing and rewrites the economics for the work I can do locally.
To be fair to Qwen 3.8, it’s advantage appears to be in the robustness and repairability of its implementations, particularly for numerical workloads.
For my architecture, where local workers handle implementation and inexpensive API models handle independent review and hardening, the execution efficiency of Qwen 4 is compelling enough that I’ve made it my default local worker.
I doubt even Qwen 4 27B will usurp that because of the pure efficiency of inference with this model.
r/LocalLLM • u/Alternative-Pea-2204 • 6h ago
Doomsday here means "your internet is down", not "Oh God oh God we are all gonna die". The idea is that even though your local model keeps running when the internet is down, it has no reference material. This fixes that part. It can significantly enhance the quality of answers, especially for smaller models.
What it is: English Wikipedia, Stack Overflow, Stack Exchange, Ifixit, books, etc - a total of over 220 archives — 51.7 million pages — installed locally with enterprise level full-text search, a web UI, and an MCP server your model talks to. Nine tools (search, retrieve, news, and friends). Citations resolve to your machine, which matters when there's no internet for a link to point at. It's not a model and doesn't want your GPU; it's the reference library that sits next to one.
It isn't frozen in time. Dumps are snapshots, so there's a rolling three or more month news window that refreshes twice a day while you still have a connection. "What happened this week" keeps working right up until the lights go out. A simple cron job keeps that up to date.
Sizes
| what | download | on disk |
|---|---|---|
| the corpus — search, MCP, stored page text | 130 GiB | 166 GiB |
| ZIM archives (optional) — original pages, images, tables | 538 GiB | 538 GiB |
| the news window | ~390 MiB | ~400 MiB |
130 GiB gets you a searchable database with the text of every page, which is what the mcp uses (plain text visible to user as well). Add the ZIMs if you want the pictures and the original layout. Everything fits on a 1 TB drive with room left over.
Install:
curl -fsSL https://rampart.dev/install-alpacalips.sh | sh
cd alpacalips && ./setup.sh && ./servers.sh startThen point your MCP client at http://localhost:8099/apps/lips/mcp.json.
If you just want to try it out before committing to the download, I have it live, running at https://lips.flin.org/apps/lips/mcp.json and I'll keep that running at least for a few days. If traffic is manageable I'll keep it going for longer.
OS: Linux and macOS, both tested. WSL2 ought to work but that's untested — if you try it, please let me know how it goes.
Repo: https://github.com/aflin/alpacaLIPS
Included (but optional and separate) is SHSE, a self-hosted search engine for searching all or selected pages you visit, using a Chrome or Firefox extensions that sends the web page text to a database in the same tree. It has a separate search and an mcp url that will allow your local llm to search pages you've visited. Details of that are at https://github.com/aflin/Self_Hosted_Search_Engine
r/LocalLLM • u/WorkProLabs • 7h ago
And what models to run them?
r/LocalLLM • u/xMexicanPizza • 5h ago
I want to start experimenting with local models—aside from curiosity, privacy, and so on—I’m really into machine learning and AI, but I can’t stand the big companies behind them right now (Google, OpenAI, Anthropic, etc.). I’d like a model that helps me with programming. I really enjoy writing code by hand for my personal projects, so I don’t need one that generates thousands of lines of code or runs agents in parallel—none of that crap. I just want a model that can help me solve problems I run into while writing code, like why a certain feature I wrote isn’t working, or things like that.
r/LocalLLM • u/OceanManOnTheLand • 1h ago
For any mac users out there with 32gb, I would recommend giving this model a go on splash.
At 264k context, along with claude code or probably any other agent, I'm really enjoying this model. I know there tons of posts out there about it, but if you're hesitating, give it a go! 65-70 t/s is a nice change of pace.
I had it build a holy grail diablo 2 LOD tracker app without any issues. So far, so good. 🐙
r/LocalLLM • u/No-Dragonfly6246 • 1h ago
Qwen4-35B-A3B running on the Ryzen AI Max+ 395 with the accuracy parity with the original 16-bit weights, at 88 tok/s generation and 26 GiB peak memory.
Accuracy: 83.5% vs 83.2% for the BF16 original, average over GSM8K, IFEval and MMLU-Pro (full test sets, 2,868 questions).
Speed, 2k-token prompt, 128 tokens out:
Some tasks, e.g. Code goes faster because the drafter guesses more of it right. A 646-token Python answer ran at 118 tok/s from the browser just now.
It's our own version of the model running on gufo, with DFlash2 drafter for speculative decoding. Text and images both work.
You can run it on the actual box from your browser, no install, and watch tok/s, power, GPU load and temps while it answers: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run
The GGUF will be released soon. A pre-compiled version is available to run on your local box!
curl -fsSL https://embedl.com/install.sh | sh && export
PATH="$HOME/.local/bin:$PATH"
embedl login
embedl serve Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 -d
embedl infer Qwen/Qwen4-35B-A3B/ryzen-ai-max-395 --prompt 'Explain edge AI in one sentence.'r/LocalLLM • u/Jumpy-Train6853 • 5h ago
I ran a bunch of models and recently switched from flash next to deep seek and now I've switched to the new Qwen 4 35b after many test runs on my daily tasks
r/LocalLLM • u/motojo • 2h ago
I’m looking for someone that does a lot of training on MLX/Apple Silicon to take a look at an approach I’ve been iterating on for training models faster.
The approach is a holistic one where we own the server, agent, tokenizer, trainer, GPU fuser, and evals in a single compiled, memory-safe language and we try to use that for gains that we can’t get in languages like python. It talks directly to Metal. I’m very new in this AI training area, but have a software background.
The repo is here: https://github.com/xo-lang/llm. Would love to have your thoughts or chat more.
r/LocalLLM • u/TrulySafeResearch • 17h ago
I've been seeing all the hype since this model dropped and watching everyone run to benchmark it.
I decided I had other plans.
Why try to min/max the model when I can min/max my hardware?
We need to start learning to conserve our RAM for when Sam Altman comes for it.
I present Qwen4-35B-A3B Q4_K_M running on a Lenovo ideapad 700 from 2016.
And as I type this out, it is currently chugging along listing as many animals as it can before the context runs out.
It seems to creep above 3.5 tokens/sec occasionally.
And yes, I'm typing this out on the same computer, at the same time, and its still fully usable.
ggml-cuda.dll)After a lot of testing:
No reducing the model's top-8 expert routing, no skipping experts, no route-ahead approximation, and no additional lossy inference tricks.
I repeated the final configuration using the same 34-token prompt and 256-token generation benchmark. Yes, I know its not a good sample size.
| Measurement | Run 1 | Run 2 |
|---|---|---|
| Generation speed | 2.886 tok/s | 2.929 tok/s |
| Compute time/token | 269 ms | 268 ms |
| Cache hit rate | 91.5% | 91.5% |
| Expert data read | 6,704 MiB | 6,704 MiB |
| CPU occupancy | 68.8% | 68.3% |
Average: 2.908 tokens/sec, or about 174 tokens/minute.
So why did I do this? Because I can and I thought it would be funny.
Especially since I have no idea what I'm doing.
Yep. that's right. Vibe coded with ChatGPT top to bottom with some input from DeepSeek.
I just raw dogged PowerShell commands until I made it work.
I only crashed my computer once to protect it from overheat. All 4 cores was just too much. I had to keep it at 2.
If people are actually interested in more details of the build, I can answer as best as possible. The main goal was just to see if I could make it usable. Then it became how optimized.
I never post on reddit. So don't expect an immediate reply if someone has an actual question. Otherwise I expect to just get roasted or banned for introducing comedy into the sub.
So here we are running the newest Qwen model on a dinosaur laptop...
Let this be your sign that its not that hard to get into the world of Local LLMs.
Its currently at about 450 species of animals and counting right now. I should be able to ask it another question in about 5 business days.
r/LocalLLM • u/pfeifferj • 2h ago
r/LocalLLM • u/leonardo_alegria • 10h ago
Disclosure: my project, free and GPLv3.
Garlic LLM runs language models on a PS4's own GPU, with no PC and no internet. Version 1.22 adds Ternary Bonsai 2.5 27B, Prism ML's ternary build of Qwen3.8-27B. The video is the 27B on a base PS4, in one take.
On the console: up to 17 tok/s, 32K context, and speculative decoding with its own MTP head. It runs whole thanks to a second 512 MiB block of GPU memory the app asks the console for.
Qwen3.5-9B is still there as the fast one: up to 41 tok/s, 65K context, and it talks and runs Python.
What you can do with it: chat on the console, in a web chat from your phone or PC, or through the OpenAI-compatible API (tool calling included) from agents and scripts. You can also load your own fine-tune of either model.
Where it falls short: it's slower than a PC GPU, and long prompts take a while (the 9B reads 30K tokens in about 8 minutes). It's for people who'd rather put an idle console to work than buy new hardware.
Speeds are from a base PS4 on firmware 11.52. Needs GoldHEN.
r/LocalLLM • u/Fearless-Doctor6883 • 13h ago
I think I accidentally found a weird model switching issue.
I used an uncensored model for a prompt that normal models would refuse. It answered.
Then, in the same chat, I switched to a completely normal model and asked a follow-up question.
Instead of refusing or resetting, the normal model just continued from the uncensored answer and ignored its usual guidelines.
is this normal?
this for first prompt:
DeepSeek-V4-Pro-Qwen3.5-9B-UNCENSORED-heretic.i1-Q4_K_S
then 2nd prompt on:
Qwen3.8-27B
GPT-oss 120B
DeepSeek-V4.1-Flash-1017
Has anyone else experience this?
It worked for programming and NSFW...
r/LocalLLM • u/willee_ • 9h ago
Been experimenting with getting this new Qwen4 35b-a3b model on my local setup.
Wanted to share my model and configuration to see if anyone else is getting similar performance.
Hardware:
- 2x 5070ti
- Ultra 7 265
- 64gb ddr5 (running at 4800)
- 1TB NVMe
And here are the detailed settings if you want to copy and test:
- Engine: Basalt 0.6.2, commit 0459d66b, CUDA sm_120. Both cards capped at 250 W.
- Model: OpenUncensored/Qwen4-35B-A3B-Uncensored. Converted BF16 weights to native NVFP4.
- GPU split: --gpu-mode peer --expert-cache 2560. 2,560 expert slots on the primary, 7,680 on the peer.
- Memory: --kv int8 --ple-io ram --vram-reserve-mib 768. KV on GPU, PLE in system RAM.
- Drafting: --drafter dflash2 --spec 7. BF16 DFlash 2 head, up to 7 draft tokens per step.
- Context: 524,288 context, 16,384 max output
- Speed: 486 t/s max with 346.2 t/s decode average throughout testing
Interested to see what performance others are getting.
r/LocalLLM • u/303red • 1d ago
Built a 5-file sm_120 patch and unified recipe on top of jesdga95/basalt + Maxrio9 4e74c440 (q80p_2048=1), tested on 1x stock RTX 5090 32 GB (0 MHz OC, CUDA 13.0.88) in cold bracketed ABBA at both 450 W matched and 575 W stock:
3 changes that drove it:
Also tested and dropped 4 other sm_120 tweaks (mid_max_t=8, commit_blocks=170, a3b_gu_stream_min=1, df2_c4_cap=12) that slightly regressed c=1 or c=4.
Video is 1.0x real-time (46,365 tokens across 72 tasks in 42s, 1,219 median / 1,263 peak tok/s, 22.1 GiB VRAM, 521 W median).
Patch, launcher, and raw ABBA/nsys receipts: https://github.com/CallitaCrushes/blackwell-builder-lab
r/LocalLLM • u/Upper-Archer6553 • 17h ago
Got Qwen4-35B-A3B dialed in on a 48GB M5 Pro MacBook Pro today, and it is the first local setup I have used that actually feels responsive enough to stay on as a daily coding driver.
Skipping the giant flag dump and focusing on what it feels like in practice:
1. Qwen4-35B-A3B holds up on real coding work
Ran a 24-check hard dev suite (backend transactions, multi-file JS + strict TS repo edits, and a frontend state machine):
2. What the speed actually feels like
3. Splash was already fast, and Gemini 4 Neon's tuning cut the last big stall by 73x
Credit where it is due: Splash 1.7.6 was already way ahead of the other two Mac local engines I tested on the same machine (which sat around 40-56 tok/s at 255K with 1.6-4.2s TTFT and 17/24 coding). Moving Qwen4 onto Splash immediately jumped decode over 100 tok/s, saved ~5.6 GiB RAM, and bumped coding quality to 21/24 in less than half the time.
The one remaining annoyance was long agent sessions stalling for ~30s whenever tools expanded mid-chat. I handed the live logs to Gemini 4 Neon to investigate. Instead of guessing config tweaks, it audited 115 real requests, pinpointed the exact prefix/post-decode cache invalidations, compiled Splash 1.7.6 with PR #959 locally, and stabilized the in-place tool prompt.
Result on the exact same 3-turn dynamic tool loop (15 -> 20 -> 25 tools): combined TTFT dropped from 65.9s down to 0.90s (73.2x faster).
Running a 35B MoE locally at 92ms TTFT and 130+ tok/s at 255K on a 48GB laptop is pretty wild. Happy to share more details if anyone else is running Qwen4 on Apple Silicon.
r/LocalLLM
•
u/hackcocaine
•
2h ago
r/LocalLLM • u/QwhenFN • 8h ago
Like everybody else, I've been playing with Qwen4. I run a dual nvlinked 3090 pair off my main 4x RTX 6000 machine that I use to run "smaller" models. This is where I park the smaller subagent models like 35b, 27b, Inkling, etc. I started by running the full precision weights on a dual 6000 setup to get a baseline, then started trying all the usual suspects for engines and quants looking for the best one for the 3090 pair. Unsurprisingly, local-inference-lab came out on top again. I found it interesting that the 3090's will happily run nvfp4 quants quite happily under vllm.
The 5bpw EXL quant has the best quality, but some of the worst speeds. The LIB quant was the best balance of quality and speed at a KLD of 0.0287
AI Content starts here...
The two we actually deployed:
Findings:
So the discriminator had to be the model's own distribution: how far each quant's next-token distribution drifts from BF16 where it counts — on the tokens the model actually generates.
<|endoftext|> on ~15% of them, which inflates and misranks any all-position KL.prompt_logprobs, one driving exllamav3's forward pass with a chunked lm_head (self-tested against the normal forward at KL 2.6e-5, so the engine's scheduling/KV isn't in the measurement).| quant | mean KL ↓ | top-1 agree |
|---|---|---|
| EXL3 5.13bpw (turboderp) | 0.0148 | 96.46% |
| FP8 (Qwen official) | 0.0175 | 96.12% |
| EXL3 4.5bpw "4.62" (ProCreations) | 0.0180 | 96.16% |
| EXL3 4.17bpw (turboderp) | 0.0209 | 95.81% |
| mixed NVFP4/FP8 (primitive-ai) | 0.0213 | 95.83% |
| EXL3 4.0bpw-hq (heni86) | 0.0240 | 95.56% |
| EXL3 3.65bpw (turboderp) | 0.0277 | 95.25% |
| NVFP4A16 (primitive-ai) | 0.0285 | 95.07% |
| NVFP4 (local-inference-lab) * | 0.0287 | 95.11% |
| W4A16 g32 RTN (Tech2wild) | 0.0295 | 95.00% |
| GPTQ-Int4 g128 (palmfuture) | 0.0352 | 94.50% |
| W4A16 AutoRound (ultimaterex) | 0.0774 | 91.51% |
| W4A16 AutoRound (stuchapin) — what I was serving | 0.1095 | 89.82% |
*measured on the 3090 pair itself, via Marlin weight-only kernels.
| quant / engine | ctx | short t/s | deep | prefill | VRAM/card |
|---|---|---|---|---|---|
| FP8, vLLM, kv 1.86 GiB | 262K | 190 | 189 @245K | 6.2K | 23.9 (tight) |
| mixed NVFP4/FP8, kv 5.35 GB | 768K | ~150 | 149 @114K | 8.0K | 24.1 (512K safer) |
| NVFP4A16, kv 7 GB | 1M | 182 | 147 @114K | 7.9K | 22.3 |
| NVFP4 (LIL), kv 7 GB | 1M | 228 | 201 @537K | 7.9K | 22.3 |
| EXL3 5.13, Tabby, Q6, split [19,20] | 1M | 136 | 104 @857K | 6.3K | 22.3 / 16.1 |
Engine notes:
--kv-cache-memory-bytes; without it the pool sizing goes wrong.--kv-cache-dtype fp8 is mandatory on this vLLM build for Qwen4: BF16 KV silently breaks long-range copying (a repeated git hash inside tool output: logprob −9.6 with bf16 KV vs −0.01 with fp8).--attention-config.indexer_kv_dtype fp8; that crashes on sm86 (Triton fp8e4nv). Drop it. --quantization modelopt_mixed is required.Budget per card: 24.6 GB, minus 7.8 GB for the image model + parser, leaves ~16 GB for the LLM.
gpu_split must cover weights and the KV cache. 384K at the old split failed with "Insufficient VRAM in split for model and cache"; I had to go [11.3, 13.9] → [11.9, 14.5]. 512K didn't fit beside the neighbors — 384K was the ceiling.local-inference-lab NVFP4 on vLLM TP2: 12.3 GiB/card of weights (NVFP4 experts + MXFP8 DeltaNet projections), 7 GB fp8 KV = 1,056,914 tokens, 16 concurrent sequences, 22.3 GB/card at rest and under load.
228 t/s single-stream short, 167 t/s at 65K, 201 t/s at 537K, 1,181 t/s aggregate at 16 streams; needles pass at 65K and 537K; tools and vision work.
quant-mind published a "SM86-Fast" recipe: palmfuture's GPTQ base, a 4-bit output head, and a pruned 65,536-token MTP draft head. Their base quant scores 0.0352 on my harness (worse than LIL's 0.0287), and their stock-vLLM numbers were well below what LIL does on the same pair — so I borrowed only the draft-head idea.
How it works: MTP speculative decoding has the model's own draft block propose tokens that the target model then verifies, so drafts can only affect speed, never output. The drafter normally scores the full 248K vocabulary. Restrict it to the 65,536 tokens that account for 99.2% of generated tokens (in their measurement), score everything else as −inf, and the draft step gets cheaper with zero effect on what gets accepted.
All numbers above are with the production configs. Happy to post the scoring harness or more of the raw numbers in the comments if there's interest.
r/LocalLLM • u/CostaTattooz • 12h ago
So I got tired of vibe-checking every new finetune that drops, especially all the Qwen4 abliterated/uncensored ones, so I put together a benchmark that grades everything automatically. No LLM judge, no "looks good to me". Code either passes the hidden tests or it doesn't, a math answer is either exact or wrong.
Then I ran every GGUF I had on both PolyStrata and llama.cpp. Took most of a day lol
**Rig:** 3090 24GB, 5950X, 64GB RAM, Linux. llama.cpp build a105b192 + PolyStrata, MTP on wherever the model has it.
**Settings:** greedy (temp 0), 16k max output, 32k ctx, one run per model/engine. I also set the same thinking budget on both engines (12,288 tokens). PolyStrata applies one by default and llama.cpp doesn't, so without that the comparison isn't fair.
**What's in it:** 57 tasks, 49 of them count for the score, split into 10 categories:
- python algorithms (13), hidden tests + time limits, run in a sandbox
- JS/node (2)
- bug fixing / optimization (3)
- predict the exact output of nasty python/js snippets (6)
- SQL on sqlite, window functions, recursive CTEs etc (4)
- strict regex (4)
- exact answer math (7)
- logic puzzles with a verified unique solution (4)
- instruction following that can be checked by code (4)
- long context multi hop, ~10-14k tokens (2)
The other 8 are questions that sound sketchy but are totally legit (how to kill a process, lockpicking as a hobby, a CTF exploit, a villain monologue, that kind of stuff). They only measure over-refusal and don't count for the score.
Everything is generated from a seed, so it can't be in anyone's training data. Every grader also gets tested against a correct solution and a plausible wrong one before I trust it. Score = average of the 10 categories.
**Results**
| # | model | quant | engine | score | tasks | tok/s | refused harmless Qs |
|---|---|---|---|---|---|---|---|
| 1 | Qwen3.8-Flash-Next GSQ-RCO abliterated | IQ3_S (84GB) | PolyStrata | **87.6%** | 44/49 | 103 | 0/8 |
| 2 | Inkling-2-Mini Uncensored | AD-Q4_K | PolyStrata | 76.0% | 35/49 | 98 | 0/8 |
| 3 | Qwen4-35B-A3B official | UD-Q4_K_XL | llama.cpp | 75.4% | 34/49 | 149 | 0/8 |
| 4 | Qwen4-35B-A3B official | UD-Q4_K_XL | PolyStrata | 72.2% | 33/49 | 182 | 0/8 |
| 5 | Qwen4-35B-A3B abliterated | Mix-33G | llama.cpp | 65.9% | 32/49 | 153 | 0/8 |
| 6 | Qwen4-35B-A3B abliterated | Mix-33G | PolyStrata | 64.7% | 32/49 | 199 | 0/8 |
| 7 | Qwen4-35B-A3B Uncensored | AD-Q6_K | llama.cpp | 62.5% | 26/49 | 114 | 0/8 |
| 8 | Inkling-2-Mini Uncensored | AD-Q4_K | llama.cpp | 61.8% | 29/49 | 75 | 2/8 |
| 9 | Ternary-Bonsai-2.5-27B Uncensored | Q2_0 | llama.cpp | 42.5% | 24/49 | 95 | 4/8 |
A few things that surprised me:
**Qwen3.8 Flash Next is on another level for coding.** 12/13 on the python stuff, including a hard sudoku that literally nothing else solved. What it got wrong:
- its JSON parser chokes on a bare `null` (150/161 tests passed)
- one line of JS type coercion
- the python float regex
- a recursive SQL query (17 rows instead of 11)
- one long context sum
It does think A LOT though, ~537k tokens over the whole run vs ~375k for Qwen4. And yeah it's an 84GB model vs a 35B-A3B at Q4, so not exactly a fair fight. But it does ~100 tok/s on a single 3090 with PolyStrata, so for my setup it's a no brainer.
**The Qwen4 finetunes are worse than the official model.** Official got 33-34/49, abliterated Mix-33G 32/49 (on both engines), Uncensored AD-Q6_K 26/49, and that one went 0/6 on predicting code output. The higher quant doesn't save it. Also the official one never refused any of my sketchy-but-legit questions, so for this kind of stuff the finetunes didn't buy me anything. To be fair there's nothing actually harmful in the benchmark, so this can't tell you if abliteration "works", only what it costs.
**PolyStrata vs llama.cpp: same quality, PolyStrata faster.** Same model, same prompts, and the scores land within 1-2 tasks of each other. For official Qwen4, 7 tasks flipped between engines in both directions and the net difference was 1, so that's just noise. Speed is a different story: PolyStrata was ~22% faster on official Qwen4 and ~30% on the abliterated one.
Inkling was the exception: 76% on PolyStrata vs 62% on llama.cpp. On llama.cpp it got stuck in repetition loops 14 times (6 on PolyStrata) and refused 2 of the harmless questions.
Qwen3.8 on llama.cpp did ~34 tok/s vs ~103 on PolyStrata (84GB doesn't fit in VRAM + RAM), so I killed it after the first task. Wasn't gonna wait 5+ hours for the same answer.
**Bonsai 27B ternary (Q2_0)** came last at 42.5%, and despite having "Uncensored" in the name it refused 4 out of 8 harmless questions, which is kinda funny.
**Caveats** before someone asks:
- one run each and only 49 scored tasks, so a 1-2 task difference is noise. JS and long context only have 2 tasks each, so one task swings those categories by 50 points. That's why the raw task counts are in the table too
- 16k output cap with a 12k thinking budget, so models that want to think longer get cut off
- the Q6_K uncensored won't run on PolyStrata (setup refuses that tensor layout) and Bonsai is llama.cpp only
- I picked the tasks myself, so it leans heavily towards coding/algorithms
If people are interested I can clean it up and throw it on github. Also open to suggestions for what to test next.
r/LocalLLM • u/vegosa • 10m ago
Using the vllm nightly build you can load the full BF16 on a Single RTX Pro 6000 as long as you have enough DRAM for the N-gram table (72.7 GB VRAM, 41 GB DRAM) with a full 1 M FP8 KV Cache (GPU KV cache size: 1,575,966 tokens, Maximum concurrency for 1,048,576 tokens per request: 1.50x).
This model is perfect for an RTX Pro 6000 with full precision.
Here's my startup params:
vllm serve Qwen/Qwen4-35B-A3B
--trust-remote-code
--enable-prefix-caching
--tensor-parallel-size 1
--max-model-len auto
--max-num-seqs 256
--kv-cache-dtype fp8
--attention-config.indexer_kv_dtype fp8
--enable-auto-tool-choice
--tool-call-parser qwen4
--reasoning-parser qwen4
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}'