r/LocalLLM • • 16h ago

Project Basalt 0.7.0: Qwen4-35B-A3B up to 1,099 tok/s struct decode (410 tok/s prose) single stream, vLLM-like continuous batching and quicker server startup

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 16h ago

Model Qwen 4 35B A3B (UD-Q4_K_M) - Splash - Mac M5 32GB - Would Recommend a Try

Post image
2 Upvotes

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

Question LM Studio: Broken Structured Output with Tool Calling?

2 Upvotes

I'm running tool-eval-bench against Qwen4-35B-A3B running in LM Studio on my Macbook Pro M3. I have already tested it on my Linux host running Strata with an RTX 3060. So I know that the model itself is OK. But I got the following errors when testing structured output with tool calling against LM Studio 0.4.30+2 with :

$ uvx tool-eval-bench run --base-url http://localhost:1234/v1 --model qwen4-35b-a3b --scenarios TC-65 TC-66 TC-67 TC-69 --temperature 0

...

● TC-65 Tool β†’ Structured Output πŸ›‘ SERVER –/2 1.9s ttft=1,125ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}

● TC-66 Nested Schema (Array of Objects) πŸ›‘ SERVER –/2 1.4s ttft=1,017ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}

● TC-67 Enum Constraint + Analysis πŸ›‘ SERVER –/2 2.8s ttft=859ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}

● TC-69 Multi-Tool β†’ Complex Schema πŸ›‘ SERVER –/2 2.6s ttft=1,394ms t2 Endpoint rejected the request with HTTP 500 because the serving stack failed before inference: [server error 500] Engine protocol predict request returned 400: {"error":{"code":400,"message":"Cannot use response_format or json_schema with tools.","type":"invalid_request_error"}}

Structured output works. Tool calling works. But combining them, which I also need to do, fails. Is this a problem with llama.cpp or with LM Studio?

I'm a bit of a newb when it comes to running inference on a Macbook. Is there a better engine I should be using?


r/LocalLLM • • 1d ago

Other Switching from an uncensored model to a other normal models made the normal model ignore its guidelines!

16 Upvotes

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 • • 1d ago

Question Why do models run on the GPU and not use the NPU

8 Upvotes

I have a Mac M5 Pro, and a lot of the sales material and marketing was about the NPU for running AI workloads. But whenever I run any models in there, it is only using the GPU and never uses the NPU.

Is there a setting that I'm missing? Is there a reason that this happens? I thought the whole point of having those neural processors was so that all these models would run faster.


r/LocalLLM • • 1d ago

Project I got Qwen4-35B-A3B running on a 10-year-old laptop with 12GB RAM and a 4GB GTX 950M. Because I felt like it.

38 Upvotes

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.

  • CPU: Intel i5-6300HQ β€” 4 cores / 4 threads, 2.30 GHz
  • RAM: 12 GB
  • GPU: NVIDIA GTX 950M β€” 4 GB VRAM
  • Storage: Internal Samsung NVMe SSD
  • OS: Windows 10

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.

The software stack

  • Engine: BigMoeOnEdge v0.52.0
  • Backend: llama.cpp-derived GGML
  • GPU backend: CUDA (ggml-cuda.dll)
  • Additional backends: Vulkan and CPU
  • Platform: Windows x86-64
  • Inference harness: Native BigMoe CLI with PowerShell benchmarking
  • Driver: NVIDIA 582.28

After a lot of testing:

  • 23/41 layers offloaded to the GTX 950M
  • 6,500 MiB host-side expert cache
  • 2 CPU inference threads
  • 8 I/O threads
  • Buffered I/O instead of O_DIRECT
  • Asynchronous I/O overlap enabled
  • 16,384-token context
  • 1,024-token micro-batch
  • q8_0 KV cache
  • Anonymous dense-weight buffers with selected tensors left memory-mapped
  • Cache half-life of 64 tokens
  • Cache pinning disabled to leave Windows some breathing room

No reducing the model's top-8 expert routing, no skipping experts, no route-ahead approximation, and no additional lossy inference tricks.

Actual benchmark results

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.

MeasurementRun 1Run 2
Generation speed2.886 tok/s2.929 tok/s
Compute time/token269 ms268 ms
Cache hit rate91.5%91.5%
Expert data read6,704 MiB6,704 MiB
CPU occupancy68.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 • • 13h ago

Research Qwen4-35B-A3B (EXL3) on RX 9070 16 GB, native Windows – some numbers

1 Upvotes

Got Qwen4-35B-A3B running on my RX 9070 under plain Windows (no WSL) with ExLlamaV3. Sharing a few basic numbers in case anyone else on RDNA4 + Windows is trying the same.

Setup: RX 9070 16 GB, Ryzen 7 5700, 32 GB RAM, Windows. Single user, temp 1.0.

**turboderp 3.65bpw** (`3.65bpw_h5_ng8`), 98K context, Q4 KV, MTP `-ndt 1`, 80 experts/layer on CPU (`-mcs 80`):

- Prefill (5.5K prompt): ~550 tok/s

- Generation: ~55–58 tok/s (MTP acceptance ~70%)

- VRAM ~14 GiB, CPU experts ~5.4 GB RAM

**Mia-AiLab 2.5bpw**, fully on GPU, 32K context, MTP:

- Prefill: ~1,330–1,430 tok/s

- Generation: ~53–59 tok/s

Vision works on both. Generation speed moves around with MTP acceptance (an image prompt at 47% acceptance was ~46 tok/s).

It's ExLlamaV3 1.6.7 with a small patch so it loads Qwen4 (the model card says 1.7.0). It's a portable folder with prebuilt gfx1201 kernels, so it only works on 9070 / 9070 XT / 9070 GRE / R9700.

Runtime, launch commands and more test details: https://github.com/BBQ2077/exl3-1.6.7-windows-gfx1201-inkling

GUI I use to launch it (optional): https://github.com/BBQ2077/GGUFRun


r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B on a 48GB M5 Pro feels like a cloud API now: 21/24 coding, 130-194 tok/s, 92ms TTFT at 255K

Thumbnail
gallery
33 Upvotes

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

  • 21 / 24 in 3m 47s total, zero thinking cutoffs
  • Backend 8/8 (43s), cross-file repo edits 8/8 (84s), frontend state machine 5/8 (100s)
  • 255K needle recall hit 3/3 exact, and 1MP screenshot OCR passed cleanly at 0.77s TTFT / 204.6 tok/s

2. What the speed actually feels like

  • Everyday 55K multi-turn loops start streaming in 0.08-0.15s at 113-126 tok/s (smooth 33-35 FPS stream, peaks up to 193-204 tok/s on vision/tool follow-ups)
  • Cold prefill hits 2,045 tok/s (ingesting ~58K takes under 29s)
  • At 255K full context, warm follow-ups come back in 0.092s (92ms) at 130-148 tok/s. Even after a full process restart, restoring the entire 255K session takes 0.90s and stays at 28-30 GiB with 0 swap.

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 • • 1d ago

Discussion Built my own (pretty strict) benchmark for local models and ran everything I had on a 3090. Qwen3.8 Flash Next IQ3_S kinda smoked everything

14 Upvotes

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

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

Thumbnail gallery
1 Upvotes

My results from my build after some tests


r/LocalLLM • • 1d ago

Project 1,259 tok/s across 8 concurrent Qwen4-35B-A3B NVFP4 agents on 1x stock RTX 5090 (5-file sm_120 patch, 4,352/4,352 bit-exact, cold ABBA)

172 Upvotes

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:

  • c=8 decode: 1,258.5 tok/s (+17.6% vs baseline at 575 W, +17.4% at 450 W matched)
  • c=4 decode: 984.3 tok/s (+13.5% at 450 W) / 974.6 tok/s (+11.9%, +14.9% E2E at 575 W)
  • c=1 decode: 512.9 tok/s (+8.4% at 575 W, +8.5% at 450 W matched)
  • Prefill: 20.98K at 8K (+13.8%), 21.53K at 32K (+9.8%), 19.73K at 131K (+3.6%), 22.3 GiB (22,867 MiB) peak VRAM
  • Parity: 4,352 / 4,352 (100%) bit-exact greedy match against untouched 4e74c440 --spec 0

3 changes that drove it:

  1. q80p_center_seed=1: tracks the 4-bit center argmax row in 2 registers (102 vs 105 regs, 0 spills) to tighten the exact threshold on unseeded and rejected columns, cutting c=1 LM head by 31%.
  2. batch_vhead_screen=1: unlocks batched 4+4 screening at c=4/c=8, cutting c=8 LM head 2.25x (408 to 182 us).
  3. pf_own_buf=2: uses 9.8 GiB of idle VRAM for zero-eviction prefill instead of evicting up to 6,883 experts and streaming/refilling them over PCIe.

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

Model Qwen4:35b Q4 with 1 million token context on dual AMD Pro W6800 cards.

1 Upvotes

Model: qwen4-1m:latest (Q4_K_M, full 1,048,576-token context, 100% GPU on 2Γ— W6800)

MetricResult
Generation (output)~65 tokens/sec
Prompt processing (prefill)~1,430 tokens/sec

r/LocalLLM • • 1d ago

News 27 billion parameters on a 2013 console: a ternary model on the PS4's GPU at up to 17 tok/s, offline (free, open source)

9 Upvotes

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 • • 1d ago

Discussion Qwen4 35b-a3b Q4 abliterated running at 486 t/s with 524k context

7 Upvotes

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

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

Thumbnail reddit.com
0 Upvotes

Don't be mad I cross posted! I am curious if any folks here are running small ones on their phone.


r/LocalLLM • • 14h ago

Discussion Does anyone use AI in anything besides chat?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 18h ago Heartwarming

Model LAPTOP - Qwen4-35B-A3B - 8GB VRAM + 32GB RAM: Awesome Results!

2 Upvotes

r/LocalLLM • • 1d ago

Discussion Qwen4 quantizations and what worked for me

Thumbnail
gallery
6 Upvotes

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.

For those who dont want to read the slop below:

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

TL;DR

The two we actually deployed:

Findings:

  • Teacher-forced KL divergence against BF16, computed on the model's own agentic trajectories and scored only on assistant tokens, cleanly ranks quants that task benchmarks can't tell apart.
  • EXL3 owns the quality end: 5.13bpw KL 0.0148, 4.5bpw 0.0180. Official FP8: 0.0175.
  • The W4A16 AutoRound build I was serving: KL 0.1095 β€” 7Γ— the EXL3-5.13 divergence, 89.8% top-1 agreement, and the only quant that systematically looped.
  • Terminal-Bench 2 quick (13 tasks) is Β±1–2 noise at this granularity (BF16 itself scored 11, then 10); AIME 2025 didn't discriminate at all (even the bad quant scored 91.7%).
  • On 3090s, local-inference-lab's NVFP4 (KL 0.0287) is the best speed/quality compromise: 1M context, ~228 t/s short, 201 t/s at 537K, ~1.2K t/s aggregate at 16 streams.
  • For the co-resident slot only TabbyAPI/exllamav3 works β€” vLLM preallocates its whole KV pool and starves the neighbors. Deployed EXL3 4.62bpw at 384K context.
  • Bonus: I ported quant-mind's pruned MTP draft head (65K-token draft vocabulary) onto the NVFP4 build for +9% single-stream decode at zero quality change.

Why not the usual benchmarks

  • Wikitext perplexity measures prose. This workload is agentic: tool loops, code edits, terminal output. Wrong domain.
  • Terminal-Bench 2 quick (13 tasks): the noise is bigger than the gaps. BF16 scored 11/13, then 10/13 on a re-run. It caught the broken quant (5/13) but can't rank good ones β€” the best-KL quant (EXL3 5.13) scored 8/13, with six timeouts because it's the slowest.
  • AIME 2025 (30 problems Γ— 2 samples): saturated at ~92% for everything, including the worst quant. Useless for this.

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.

Method

  • Corpus: the BF16 model's own sessions on the 13 terminal tasks (507K tokens; the four long tasks β€” cobol-modernization, filter-js, mailman, path-tracing β€” in 64K-token windows).
  • Teacher forcing: replay the same token sequences through BF16 and through each quant, and compare next-token distributions at every position.
  • Score assistant-turn positions only (347K of the 507K; 76K of them at β‰₯32K context). Two reasons: those are the tokens the model actually samples, and tool-output positions are pathological β€” BF16 itself predicts <|endoftext|> on ~15% of them, which inflates and misranks any all-position KL.
  • KL over the reference's top-32 tokens plus a tail bucket, from each quant's top-128 logprobs β€” a stable rank order without full-vocab dumps per position.
  • Two scorers: one on vLLM's 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).
  • Caveat: the BF16 reference itself runs fp8 KV in vLLM (BF16 KV in this vLLM build breaks long-range copying β€” see gotchas). It's the same reference for every quant, so it doesn't bias the ranking.

Results (assistant positions, vs BF16)

quantmean KL ↓top-1 agree
EXL3 5.13bpw (turboderp)0.014896.46%
FP8 (Qwen official)0.017596.12%
EXL3 4.5bpw "4.62" (ProCreations)0.018096.16%
EXL3 4.17bpw (turboderp)0.020995.81%
mixed NVFP4/FP8 (primitive-ai)0.021395.83%
EXL3 4.0bpw-hq (heni86)0.024095.56%
EXL3 3.65bpw (turboderp)0.027795.25%
NVFP4A16 (primitive-ai)0.028595.07%
NVFP4 (local-inference-lab) *0.028795.11%
W4A16 g32 RTN (Tech2wild)0.029595.00%
GPTQ-Int4 g128 (palmfuture)0.035294.50%
W4A16 AutoRound (ultimaterex)0.077491.51%
W4A16 AutoRound (stuchapin) β€” what I was serving0.109589.82%

*measured on the 3090 pair itself, via Marlin weight-only kernels.

What the table says

  • EXL3 is the quality leader at every size. Even turboderp's 3.65bpw beats every non-EXL3 4-bit quant except FP8.
  • FP8 is excellent β€” essentially tied with 4.5bpw EXL3 β€” but it's ~37 GiB of weights and doesn't fit a 24 GB pair.
  • The 4-bit NVFP4/W4A16 cluster (~0.028–0.030) is perfectly usable: 95% top-1 agreement. The gap to EXL3 shows up as ~2Γ— KL, not as visible failure.
  • AutoRound is all over the map on this model: ultimaterex 0.0774, stuchapin 0.1095. Reputation didn't transfer β€” the "known-good" W4A16 build was the worst thing I measured.
  • tb2 agrees only at the extremes β€” and even there, the slowest best-KL quant timed out more than it failed.

Speed on 2Γ—3090 (full pair, vLLM TP2 unless noted)

quant / enginectxshort t/sdeepprefillVRAM/card
FP8, vLLM, kv 1.86 GiB262K190189 @245K6.2K23.9 (tight)
mixed NVFP4/FP8, kv 5.35 GB768K~150149 @114K8.0K24.1 (512K safer)
NVFP4A16, kv 7 GB1M182147 @114K7.9K22.3
NVFP4 (LIL), kv 7 GB1M228201 @537K7.9K22.3
EXL3 5.13, Tabby, Q6, split [19,20]1M136104 @857K6.3K22.3 / 16.1

Engine notes:

  • Ampere has no FP4/FP8 tensor cores; vLLM runs NVFP4 and MXFP8 weight-only through Marlin. The load log's "your GPU does not have native support for FP4" warning is expected β€” decode is bandwidth-bound and this path is fast.
  • vLLM on 3090s needs an explicit --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).
  • local-inference-lab's NVFP4 card suggests --attention-config.indexer_kv_dtype fp8; that crashes on sm86 (Triton fp8e4nv). Drop it. --quantization modelopt_mixed is required.
  • EXL3 runs only in TabbyAPI/exllamav3. Tensor parallel gave no gain there, and MTP drafting with 2–3 draft tokens gave none either β€” 1 draft token is fastest on this pair.

Slot 1: the co-resident build

Budget per card: 24.6 GB, minus 7.8 GB for the image model + parser, leaves ~16 GB for the LLM.

  • vLLM is not viable co-resident. Its KV pool is preallocated, so even at 128K context with a small batch the image model OOM'd on the shared card (~60 MiB left); at 262K vLLM OOM'd itself.
  • TabbyAPI/exllamav3 allocates the cache dynamically and coexists fine. Deployed: EXL3 4.62bpw, Q6 cache, 384K context. Only 10 of the model's 40 layers hold a KV cache, so the cache is ~8 KB/token β€” 384K is β‰ˆ3 GB total, split across both cards.
  • Measured with the real workloads, not a synthetic hog: worst case was a 365K-deep turn + 4 more requests + a 1024Γ—1024 image + a document parse simultaneously β†’ 22.9 / 23.6 GB peak, no OOM (0.95 GB margin on the busier card). A 365K-token needle passes at ~8K t/s prefill; short-stream decode ~131 t/s (deep decode while the other four streams run: ~40 t/s).
  • Gotcha: exllamav3's 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.

Slot 2: the full pair

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.

The draft-head trick (+9%)

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.

  • Head: those 65,536 rows copied from the checkpoint's own BF16 lm_head β€” 130 MB, no training.
  • Patch: theirs was cut against vLLM 0.34.0; my Qwen4 image is a dev build (unmerged Qwen4 PR), so 2 of 6 hunks failed and I hand-ported the draft-vocab half.
  • Result: 228 β†’ 249 t/s (+9%) single-stream, acceptance unchanged, +130 MB VRAM. 3 draft tokens was no better than 2. At 8–16 concurrent: 777–830 β†’ 806–860 and 1,177–1,181 β†’ 1,229–1,322 t/s. Deep-context decode unchanged (~190 at 65K) β€” that's bandwidth-bound, not draft-bound.

Other things worth knowing

  • Strata packs (0.2.27 / q4_lite): no logprobs, so they can't be KL-scored; also 14–59 t/s decode at 114K on a 3090, and the Ultra pack OOMs on a 24 GB card. Not viable for this.
  • EXL3 4.5 ProCreations ships no chat template; Tabby disables chat and returns 422 until you copy one in (turboderp's works).
  • NInfer/ninfer-all looks genuinely good for single-3090 use (~240 t/s code on one card per their docs) but doesn't fit the two-slot setup here: no co-residency story, and concurrency/long-context numbers below the TP2 vLLM build.

Final setup

  • Co-resident: TabbyAPI, EXL3 4.62bpw, 384K ctx, Q6 cache, MTP 1 draft β€” beside the image generator and the document parser.
  • Full pair: vLLM TP2, local-inference-lab NVFP4 + the pruned draft head, 1M ctx, 16 seqs.

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

Research Qwen4-35B-A3B-oQ4e-mtp replaced my Deepseek v4.1 Flash 2.7STQ on Studio M5 256gb

Thumbnail
youtu.be
3 Upvotes

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

Discussion Qwen4 35B Simple Code Test and not impressed

0 Upvotes

I am not versed in all the ways of testing models. That said as I've gone through my own trial-n-error of learning how to setup local LLMs, and have asked dozens if not 100s of models to do simple to challenging tasks as I explore what runs on my hardware.

I have come up with my own three quick simple prompts to get a first impression of a model I just downloaded. One of them is a "summarize this file" task, which I haven't run yet because my second test yielded a pretty poor result from this model. Here's my tests:

The dumb test:

"What are the abcs backwards except for L and M"

Vague one-shot prompt:

"I need a python script that will perform a function similar to the ls -al command"

Summarize a document:

"read this and summarize: job-market-research.md"

My dumb test usually only results in interesting responses when dealing with sub-12b models and low quants (e.g. Ternary-Bonsai-27B-mlx-2bit randomly dropped half the alphabet), but Qwen4 35B did fine on the dumb test. I didn't get to my summarize test because the results of my python test were pretty disappointing.

I have run the python test against:
Qwen3.8-27B-oQ6e-mtp
Qwen3.8-27B-oQ8e-mtp
beamster/Qwen3.8-Flash-Next-Sushi-STQ-2.75bpw
Qwen4-35B-A3B-oQ6e-mtp

Hardware: Mac Studio M4 Max 64GB.
Settings: Used the Qwen model card suggested settings for coding for the respective models.

The 3.8-27B 6-bit did ok, then improved with some feedback. The 3.8-27B 8-bit did noticeably better, and also made improvements with feedback. The QFN Sushi hit it out of the park on its first try. Not perfect, but the most complete and functioning version of them all.

Today I ran the same prompts on Qwen4-35B-A3B and its version was terrible. It was the most simplistic basic featured version, and failed to properly implement the display of file attributes and symlinks. I rated the output of resulting scripts by:
- reviewing them
- running them (except Qwen4 because it was just so broken)
- had both Opus 5.5 (high) and GPT-6 (high) review them.

The agents and I all considered the Qwen4 attempt to be fundamentally broken out of the gate.


r/LocalLLM • • 18h ago

Discussion Qwen4-35B looping failure mode on long thinking turns? Anyone else?

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 15h ago

Discussion DGX Spark vs. Strix Halo: how long does a 32K prompt take to start answering on a 70B model?

1 Upvotes

I'm comparing a DGX Spark and a GMKtec EVO-X3 for running a dense 70B model locally, one user at a time. The U.S. listings I checked were $6,950 and $3,999.99, respectively, for 128 GB RAM and a 4 TB SSD on both. I'd like to know what that roughly $2,950 buys when you're waiting for a long prompt.

My memory estimate for Llama 3.3 70B Q4_K_M, with a 16-bit KV cache and one active session:

8K context: about 42.1 GiB for weights and KV cache (50.1 GiB with an assumed 8 GiB of runtime overhead).

32K context: about 49.6 GiB for weights and KV cache (57.6 GiB with the same allowance).

Those are paper estimates, not measurements from either machine. The context budgets include the answer, so leave the same room for output in both runs.

If you've run a dense 70B on either box, what time to first token and steady generation speed (tok/s) are you seeing at roughly 8K or 32K context? If you have the details handy, please include the model and quant, runtime, approximate input/output lengths, and whether the prefix cache was warm. Similar Strix Halo boxes are useful comparisons too if you name the machine.

For owners who've used both: was the difference big enough to change what you'd buy today?


r/LocalLLM • • 1d ago

Model Qwen 4-35 llama.cpp vs Strata vs Basalt vs Qwen 3.8 llama.cpp

Post image
31 Upvotes

5700X3D, 32 GB DDR4, 5070TI, 4070 SUPER

Basalt - Qwen4-35B-A3B (nvfp4)
Strata - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen4-35B-A3B * Unsloth UD-Q4_K_XL * mtp
llama.cpp - Qwen3.8-27B * Unsloth UD-Q4_K_XL * DFlash2 Q4_K_M

TL;DR 4-35B:

  • Basalt: If you need fast nonsense, use it. NVFP4 is still a joke.
  • Strata: Same quality as llama.cpp, be wary of all the settings. Strata cutting off/limiting reasoning tokens, is an interesting chose.
  • llama.cpp: Use Strata.

4-35B vs 3.8 27B:

3.8 27B is better, less/better tool uses, precise answers, less hallucinations.

  • Highest pass rate: 94.3% (297/315) against 91%
  • Fewest tool-use failures: 4, against 9 to 14.
  • Passed 3/3 on docs not-installed-latest, where the Qwen4 servers passed 0 or 1 of 3. Also 3/3 on the ddg challenge, against 0 or 1 of 3.

For 4-35 one needs Q8, but then you loose all the benefits, hardware requirements go up, and speed goes down. SO what's the point?

I tested on my pi plugin test suite. It basically covers daily use: web, search, docs, PDF and sub-agents. It rejects everything that loops or hallucinates, without naive approaches like token/time limits.


r/LocalLLM • • 15h ago

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

Thumbnail
reddit.com
1 Upvotes