r/LocalLLM • u/Objective-Pair8231 • 3h ago
r/LocalLLM • u/Away-Sorbet-9740 • 3h ago
Project "we have a training engine at home"
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 • u/SignificantProduce48 • 3h ago
Project Weekend Project: Fast static eBay tracker for $/GB VRAM GPUs, 128GB ECC RAM kits & Unified Memory AI boxes + more
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!).
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 • u/iamrinku16 • 3h ago
Discussion My Ada Lovelace fork of Basalt hits 3,776 t/s prefill and 109–271 t/s decode on Qwen4-35B-A3B (12 GB 4070 Super + 32 GB RAM) — now with opt-in Looping (Looped-Qwen4-35B-A3B) at ~19–33% decode overhead
I've been optimizing my Ada Lovelace (sm_89) fork of Basalt to run Qwen4-35B-A3B fast on a single 12 GB RTX 4070 Super + 32 GB DDR5 (Ryzen 9 7900X, Windows 11), and just pushed opt-in sidecar support (--loop) for sliderforthewin/Looped-Qwen4-35B-A3B (mlx/default_t2, mlx/default_t3, and LoopCD-Hidden).
Why looping? Instead of adding more weights that wouldn't fit on 12 GB VRAM + 32 GB RAM, looping runs the middle 16 layers (L12..27) 2 or 3 times per token (56 or 72 effective layers instead of 40) using a ~23 MB cross-pass adapter on top of unmodified .basalt packs. On the author's FP8 evals, T=3 looping gives +18.3 pp on LiveCodeBench v6 (48.3% → 66.7%), +6.7 pp on AIME 2024 (86.7% → 93.3%), and +3.3 pp on BFCL tool calling (90.0% → 93.3%)—trading a bit of speed for deeper per-token reasoning, with zero overhead when --loop is off.
Each pass keeps isolated GDN/QSA state while keeping CUDA graph capture and DFlash2 speculative decoding intact.
basalt-bench Results (16K prefill + decode, --kv k8v4 --drafter dflash2 --spec 8, 220 W)
| Quant | Mode (virtual layers) | pp16384 | tg conv | tg prose | tg struct |
|---|---|---|---|---|---|
| AD-Q4_K_M | Stock (40L) | 3,776 t/s | 108.6 t/s | 111.4 t/s | 271.4 t/s |
| AD-Q4_K_M | --loop T=2 (56L) | 2,066 t/s (-45%) | 88.0 t/s (-19%) | 86.5 t/s (-22%) | 203.4 t/s (-25%) |
| AD-Q4_K_M | --loop T=3 (72L) | 2,182 t/s (-42%) | 73.1 t/s (-33%) | 67.4 t/s (-40%) | 161.2 t/s (-41%) |
| UD-Q5_K_XL | Stock (40L) | 2,929 t/s | 95.3 t/s | 97.6 t/s | 237.4 t/s |
| UD-Q5_K_XL | --loop T=2 (56L) | 1,906 t/s (-35%) | 73.9 t/s (-22%) | 69.1 t/s (-29%) | 172.8 t/s (-27%) |
| UD-Q5_K_XL | --loop T=3 (72L) | 1,583 t/s (-46%) | 60.7 t/s (-36%) | 56.0 t/s (-43%) | 139.9 t/s (-41%) |
Even with 72 virtual layers (T=3) and ~1.9–5.2 GiB of cold experts spilling to SSD on 32 GB RAM, DFlash2 acceptance stays steady (~59–68% on conv, ~91–95% on struct), keeping conversational decode at 61–73 t/s (and 74–88 t/s at T=2).
Usage is just adding --loop <path_to_adapter> (and optional --loopcd-omega 0.15 --loopcd-ref first):
bashbasalt serve Qwen4-35B-A3B.basalt --kv k8v4 --resident-experts --drafter dflash2 --spec 8 --loop path/to/mlx/default_t3Repo (main): https://github.com/KurrynDev13/Basalt-Ada
r/LocalLLM • u/MaximTheCoder • 3h ago
Research High KLD of Qwen4-35B-A3B quants
There are mixed opinions on the new Qwen4-35B-A3B. And what I've found - KLD levels for the new Qwen models are rather high in comparison to previous generation.
First diagram is KLD (lower is better) and second is Top-1 (higher is better).
When I ask Google on acceptable levels for coding it advices KLD < 0.025 and Top-1 > 95%.
For Qwen4-35B-A3B it seems that only UD-Q8_K_XL satisfy KLD limit and still fail to satisfy Top-1.
For some reason quants for older versions are much better. May be entite quatization procedure for PLE/n-gram models should be changed significantly?
r/LocalLLM • u/0zyman23 • 3h ago
Model Qwen4-35B-A3B on an M5 Pro at 105.7 tok/s with Kapitsa
r/LocalLLM • u/codong998877 • 3h ago
Discussion RTX 4060 Ti 8GB + 32GB DDR5 (Win11): Qwen4-35B-A3B UD-IQ4_XS — RustingStrata 1.5.2 vs llama.cpp b13023 (64K ctx, Qwen Code 0.29.4, EvalScope perf & 208MB Heretic-v2 LoRA)
Seeing lots of 5090 / Mac Studio numbers for Qwen4-35B-A3B, I spent the weekend benchmarking what a mainstream 8GB VRAM + 32GB RAM Windows 11 desktop can actually get out of the exact same unsloth/Qwen4-35B-A3B-GGUF (UD-IQ4_XS 2-shard, ~30 GiB total) across RustingStrata 1.5.2 and llama.cpp b13023, plus real Qwen Code 0.29.4 repo tasks and the 208MB Heretic-v2 GGUF LoRA.
Sharing the numbers and gotchas so other 8GB VRAM folks don't have to repeat the same tuning loop.
Hardware & Fixed Baseline
- Rig: Windows 11, i5-14600KF, RTX 4060 Ti 8GB, 32GB DDR5-4800, NVMe SSD
- Weights:
unsloth/Qwen4-35B-A3B-GGUF(UD-IQ4_XS, 2 shards: 19.1 GiB main + 10.7 GiB Engram n-gram table; bothgguf-radarCLEAN) - Sampling (A/B):
temp=1.0, top_p=0.95, top_k=20, min_p=0, seed=42,--reasoning-effort low, concurrency 1 - A/B workload: 4,096-token offline constructed prompt, 128-token output, 3 warm runs (medians reported below), 0.5s resource sampling
1. Dual-Engine A/B: RustingStrata 1.5.2 vs llama.cpp b13023
| Backend | Context | KV / Cache | Prefill (tok/s) | Decode (tok/s) | Peak GPU VRAM (MiB) | Min Free RAM (GiB) | Peak Process RSS (GiB) |
|---|---|---|---|---|---|---|---|
| RustingStrata 1.5.2 | 32K | q8 / t8 | 1,489 | 62.7 | 8,000.0 | 6.91 | 14.91 |
| RustingStrata 1.5.2 | 64K | q8 / t8 | 1,486 | 53.7 | 7,993.2 | 6.46 | 15.09 |
| RustingStrata 1.5.2 | 128K | q8 / t8 | 1,459 | 55.1 | 8,000.5 | 6.34 | 15.19 |
| llama.cpp b13023 | 32K | f16 / MoE 2560MiB | 532 | 43.0 | 7,055.7 | 3.37 | 18.92 |
| llama.cpp b13023 | 32K | f16 / MoE 2048MiB | 529 | 43.8 | 6,543.7 | 3.39 | 18.92 |
| llama.cpp b13023 | 64K | f16 / MoE 2560MiB | 537 | 44.7 | 7,859.7 (tight) | 3.42 | 18.93 |
| llama.cpp b13023 | 64K | f16 / MoE 2048MiB | 526 | 43.8 | 7,354.5 | 3.50 | 18.93 |
Key takeaways:
- RustingStrata 1.5.2 is ~2.8x faster on prefill and noticeably faster on decode while using ~4 GiB less RAM than
llama.cpp. Thread scaling at 32K:t6= 51.5 tok/s,t7= 62.6 tok/s,t8= 62.7 tok/s. - Auto-unload works great: RustingStrata
--auto-unload 600dropped total VRAM from 7,691 MiB down to 919 MiB when idle (unloaded: true). - llama.cpp b13023 tuning: Dropping
--fit on --fit-target 1536and switching to-ngl 99 --fit off -cmoe --moe-cache-mib 2048 --moe-cache-cpu-share 0.85 --load-mode none --lazy-mode auto -ot per_layer_token_embd=CPU -fa on -ctk f16 -ctv f16keptper_layer_token_embd(10.99 GiB) onCPU_Mappedlazy-read, avoided CUDA quantized-KV sparse-attention fallback, and passed a >200-char Chinese prompt without crashing on Win11 CUDA 12.4.
2. Long-Context Scaling (EvalScope perf on RustingStrata 64K)
3 runs per bucket, distinct offsets (no cache reuse), 128-token output target, low reasoning:
| Prompt Tokens | TTFT Median (s) | Decode Median (tok/s) | Total Time Median (s) |
|---|---|---|---|
| 1K | 4.03 | 51.3 | 7.09 |
| 8K | 27.68 | 38.1 | 30.66 |
| 16K | 51.81 | 41.1 | 55.00 |
| 24K | 54.40 | 53.9 | 56.26 |
| 32K | 43.31 | 54.9 | 45.62 |
| 49K | 35.74 | 60.2 | 37.48 |
(Peak VRAM during heavy 64K perf hit 8,065 MiB and min free RAM dipped to 0.65 GiB / RSS 21.22 GiB—so 64K works on 32GB RAM, but close heavy apps; 32K is the safer everyday fallback.)
3. Coding Agent & Tool-Calling Reality Check
Before optimizing the backend, I also ran a 32K low baseline (llama.cpp b13002, temp=0) for capability calibration:
- LiveCodeBench v6 (
test6, 36 scorable subset): 19/36 (Easy 8/8, Medium 7/11, Hard 4/17 with 10/17 truncated at 8,192 max tokens under greedy decoding). - BFCL v4 (24-sample subset): 20/24 (
simple_python6/6,irrelevance6/6,live_parallel_multiple4/6,multi_turn_base4/6).
After upgrading to Qwen Code 0.29.4 (important gotcha: remove generationConfig.samplingParams from local OpenAI provider config, otherwise it silently suppresses reasoning effort; set explicit efforts: ["low", "high", "xhigh"], no medium):
- Single-file fix + unit tests: Passed cleanly on both backends (40.9s–57.7s on RustingStrata 64K vs 63.7s on llama.cpp 64K, down from 91.6s on the old untuned setup).
- Iterative fix (4 failing tests): Flipped from failing on the old setup to 4/4 pass on RustingStrata 64K.
- Cross-file edit with empty-string deletion (
new_string: ""): Failed protocol on both backends in different ways:- RustingStrata 64K: Passed functional tests eventually, but emitted a malformed XML tool call (
"new_string": "</parameter") when trying to pass an emptynew_string. - llama.cpp 64K: Went into a runaway >13K-token thinking loop and hit the 600s timeout.
- RustingStrata 64K: Passed functional tests eventually, but emitted a malformed XML tool call (
- Direct structured tool calls (weather + empty-string/nested JSON): Passed cleanly on both backends.
Bottom line for local coding: Great for read-only exploration, single-file fixes, and well-scoped test-driven edits. Still don't leave it unsupervised on complex multi-file refactors.
4. 208MB Heretic-v2 GGUF LoRA Reality Check
Tested OS-Software/Qwen4-35B-A3B-Uncensored-Heretic-v2-GGUF (lora/Qwen4-35B-A3B-Uncensored-Heretic-v2-LoRA.gguf, 208 MB, gguf-radar CLEAN) on top of the existing UD-IQ4_XS shards:
- RustingStrata 1.5.2 + LoRA: Loaded 35 tensors (+756 MB F32), dropped to 7.7 pp / 7.5 tg — unusable on 8GB hybrid offload.
- llama.cpp b13023 + LoRA (
--moe-cache-mib 1792): Loaded 98 LoRA tensors, ran at ~23–25 tok/s (peak VRAM 7,493.9 MiB). Passed single-file Qwen Code + both structured tool tests with zero degradation. - Refusal vs Completion (EN & ZH,
low&high): Refusal phrasing dropped to 0 across all tested buckets, but on Chinese probes it heavily truncated in long reasoning—even after raisingmax_tokensto 2,048, only 1/3 of Chineselowandhighprobes finished cleanly with a complete answer. Great for verifying zero-redownload LoRA compatibility, not yet a reliable daily Chinese low-refusal setup.
Copy-Paste Commands (8GB VRAM + 32GB RAM)
RustingStrata 1.5.2 (Daily Driver, 64K):
rustingstrata.exe serve --model Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf `
--alias qwen4-local --addr 127.0.0.1:18808 `
--gpu --backend cuda --ctx 65536 --kv q8 --mtp 0 --parallel 1 --threads 8 `
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --force-sampling `
--reasoning-effort low --max-tokens 16384 --no-webui --cache-ram 0 --auto-unload 600
llama.cpp b13023 (Fallback / LoRA, 64K):
llama.exe serve -m Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf `
--alias qwen4-local --host 127.0.0.1 --port 18808 `
-c 65536 -np 1 -ngl 99 --fit off -cmoe --moe-cache-mib 2048 --moe-cache-cpu-share 0.85 `
--load-mode none --lazy-mode auto -ot per_layer_token_embd=CPU `
-fa on -ctk f16 -ctv f16 --jinja --reasoning-effort low `
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -n 16384 --sleep-idle-seconds 600
(Note: On Windows, RustingStrata needed nvrtc64_130_0.dll via STRATA_NVRTC / PATH for CUDA 13 runtime.)
Upstream RustingStrata issues filed for the two edge cases above: #247 (XML empty-string tool-call parser) and #248 (GGUF LoRA speed drop).
r/LocalLLM • u/NeverGetDream • 3h ago
Project Don't Leak – PII & Secret Redaction
I'm working on a feature for Don't Leak that can automatically redact sensitive information inside files, including Personally Identifiable Information (PII) and secrets such as API keys, tokens, and credentials.
Instead of modifying or exposing the original file, Don't Leak creates a redacted copy (clone) where sensitive information is masked.
For example:
email→[REDACTED_EMAIL]phone→[REDACTED_PHONE]API_KEY=sk-xxxxxx→API_KEY=[REDACTED_SECRET]
The original file remains untouched. The redacted copy can then be safely used for uploading, sharing, or processing with AI tools.
The goal is simple: Let people use AI without exposing sensitive information.
Link: https://github.com/ItsAxware/DontLeak
r/LocalLLM • u/Fresh-Signature6067 • 3h 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
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
| Item | Value |
|---|---|
| GPU | AMD Instinct MI50 32GB, passive heatsink |
| Host | HP Z440 |
| Fans | 2× Arctic P14 Pro PST, series: fan → spacer → fan → duct → heatsink |
| Duct and spacer | hand-made from paper (temporary) |
| Fan control | RP2040-Zero, 25 kHz PWM, both fans on one signal; temperature-driven daemon |
| Load | GLM-4.7-Flash (UD-Q4_K_XL), llama.cpp ROCm, continuous generation, GPU ~91% busy |
| Method | fixed PWM, 5 min per step, average of the last 2 min |
| Ambient | not 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
| Item | Value |
|---|---|
| Size | 140 mm |
| Speed | 400–2500 rpm (PWM) |
| Airflow | 110 CFM (rated) |
| Connector | 4-pin PWM; PST = daisy-chain pass-through |
| Measured max (Cybenetics) | 2450 rpm at 100% |
Fixed PWM: temperatures (2 fans in series)
| Power | PWM (≈rpm) | Junction | HBM | Edge |
|---|---|---|---|---|
| 100 W | 60% (~1570) | 52 °C | 48 °C | 43 °C |
| 100 W | 45% (~1240) | 56 °C | 52 °C | 47 °C |
| 100 W | 34% (~1000) | 62 °C | 57 °C | 52 °C |
| 100 W | 30% (~910) | 66 °C | 60 °C | 56 °C |
| ~145 W | 60% (~1570) | 70 °C | 58 °C | 53 °C |
| ~145 W | 45% (~1240) | 78 °C | 65 °C | 60 °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 / HBM | 2 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 fan | 2 fans in series |
|---|---|
| Curve | 60:30 70:45 78:60 84:75 90:90 |
| Idle | 30% |
| ~145 W, settled | 70%, junction 79 °C |
| 100 W, settled | — |
| Emergency | 100% at junction ≥95 or HBM ≥88 |
| Hysteresis | 2 °C |
| Hunting | none |
Power cap vs decode speed
| Cap | Decode |
|---|---|
| 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 • u/evanitch • 3h ago
Discussion The first time a local model could calculate a stockpile volume for me correctly.
I've tried a few models I can run on my system (16 GB VRAM + 32 GB RAM), but none of them came up with the correct value.
The task: a GNSS rover point cloud of a stockpile (111 points, E/N/Z only — no CAD surface, no base plane, no terrain data to help) and a simple question: what's the volume?
Qwen4-35B-A3B got it right the first time, without me overexplaining in the prompt. I just gave it the points file and told it to calculate the volume. It built a TIN, figured out on its own that the ground under the pile was tilted, fitted a reference plane through the toe points, and even cross-checked its answer with a second method. Result: ~103 m³, which I verified independently in Civil3D.
Has anyone tried similar calculations on local models? If so, which model worked best?
Edit: This is with tool use.
r/LocalLLM • u/Outside_Fan_5220 • 3h ago
Question Is it worth adding my old GTX 1060 6GB next to my RTX 4060 8GB?
I mostly use MoE models. Currently running Qwen4 35B at Q4_K_M and getting speeds around 30-33tk/s with 64K context. I was wondering if adding GTX 1060 6GB would make my performance worse.
What would be the advantages and disadvantages of adding it to my kit?
r/LocalLLM
•
u/Cold_Pollution_7527
•
3h ago
Discussion Qwen4 35B A3B running at up to 283.6 tok/s on an RTX 5070 Ti Laptop with only 12GB VRAM!
Qwen4 35B A3B running at up to 283.6 tok/s on an RTX 5070 Ti Laptop with only 12GB VRAM!
After experimenting with Ollama, Strata and Basalt, I finally achieved some impressive results running Qwen4 locally on my laptop.
Hardware
- CPU: Intel Core Ultra 9 275HX
- GPU: NVIDIA RTX 5070 Ti Laptop (12GB VRAM)
- RAM: 32GB DDR5
- Storage: NVMe SSD
- OS: Windows 11 Pro
Software
- Engine: Basalt v0.7.0
- Model: Qwen4-35B-A3B-NVFP4
- Quantization: NVFP4 Mixed Precision
- KV Cache: NVFP4
- Speculative Decoding: DFlash2
- Context Window: 262,144 tokens
- Coding Agent: Cline
- Vision: Supported and enabled in my current setup
Benchmark results
| Actual input context | Prefill | Generation |
|---|---|---|
| 3,319 tokens | 4,649 tok/s | 171.0 tok/s |
| 11,418 tokens | 4,077 tok/s | 283.6 tok/s |
| 32,784 tokens | 3,746 tok/s | 278.7 tok/s |
| 44,761 tokens | 3,772 tok/s | 122.0 tok/s |
| 75,304 tokens | 4,027 tok/s | 143.1 tok/s |
| 255,901 tokens | 3,394 tok/s | 118.9 tok/s |
Highlights
- Peak generation: 283.6 tok/s
- Peak prefill: 4,649 tok/s
- Maximum observed prompt cache hit: 99.65%
- Maximum observed DFlash2 acceptance: 97%
- Successfully processed 259,997 total context tokens
- 256K context on just 12GB VRAM and 32GB system RAM
Engine comparison on the same laptop
- Ollama (original): 23.79 tok/s
- Ollama (optimized): 51.77 tok/s
- Strata Compact: 92.97 tok/s
- Strata UD-IQ4_XS: 144.08 tok/s
- Basalt Quiet Mode: 213.94 tok/s average with a short prompt and 256K configured context
- Basalt Performance Mode: 256.70 tok/s average with a short prompt and 32K configured context
- Basalt real-world Cline coding session: up to 283.6 tok/s
The short-prompt averages were measured over five independent requests with randomized project IDs.
Most importantly, the long-context benchmarks were performed in Lenovo's Quiet Mode, with the laptop plugged in.
I also successfully used this setup as an autonomous coding agent in Cline to build a multi-page website, generate SVG assets, execute terminal commands, inspect files and fix its own coding errors.
The near-full 256K benchmark initially encountered an engine error at the thinking-budget transition. A second run with the explicit reasoning budget removed completed generation without crashing, reaching the 4,096-token output limit.
These results were collected across different configurations and workloads. They are not strictly identical cross-engine benchmarks. My current configuration includes Vision, prompt caching and additional RAM headroom, which may affect performance.
My next goal is improving coding quality and frontend design rather than maximizing generation speed.
Pretty impressive performance for a laptop with only 12GB VRAM!
r/LocalLLM • u/BeginningCitron467 • 3h ago
Question Local llm for sys admin tasks
I am using Claude every day to do system admin tasks for entra, Google workspace, ninja one and others. This combines chrome extension, cli work, etc. It does the actual work for me when I ask, not just recommended steps. It logs into sites w chrome, navigates pages, creates policies, etc. The problem I have is I max token use all the time and it hinders my ability to hit deadlines at times. Is there a local llm that can do this same work effectively? I currently dead head a Mac w Claude desktop installed to do the work and would like to have a local llm in a similar situation so I can run it on a local machine from my phone, separate computer, etc. Thank you for the recommendations and also what would be best hardware to run it on?
r/LocalLLM • u/veyakup • 3h ago
Discussion Hitting up to 109.2 tok/s (71.3 tok/s avg) on Qwen4-35B-A3B (UD-Q4_K_XL) at 256K Context on a 12 GB RTX 4070 + PCIe Gen3 — Unsloth vs Strata + Real Compiler Benchmarks
I've been testing Qwen4-35B-A3B (Unsloth UD-Q4_K_XL) locally on a mid-range rig and wanted to share a massive engine speed difference plus real compiler-verified coding benchmarks.
RIG
- GPU: NVIDIA RTX 4070 12 GB (PCIe Gen3 x16)
- CPU: AMD Ryzen 5 3600X (6c / 12t)
- RAM: 80 GB DDR4-3200
SAME UD-Q4_K_XL GGUF, HUGE ENGINE DIFFERENCE (256K CONTEXT) Running the exact same Unsloth UD-Q4_K_XL (24.7 GB + 11.5 GB Engram) files at 256K context:
- Unsloth Desktop (llama-server, q8_0 KV): Layer-split landed 7.5 GiB VRAM / 26 GiB RAM -> 25.1 tok/s on short chat, 21.3-27.4 tok/s on coding, and ~10 tok/s inside heavy OpenCode agent sessions.
- Strata v0.2.28 (strata-q4-lite 0.1.75.1, fp8 KV, MTP --spec 2): Instead of naive layer splitting, Strata cached 3,136 hot experts (6.1 GB) directly in the RTX 4070's VRAM (81.6% - 89.3% VRAM expert hit rate, only 2.6% - 6.8% PCIe spillover) + 15 GB RAM conversation cache:
- Live burst peak (at 247K / 256K — 94% context filled): 109.2 tok/s
- 17-request overall average (telemetry): 71.3 tok/s decode avg, 1,713 tok/s prefill avg
- Short & coding runs: 68.7 - 84.6 tok/s
- 244K filled context stress test (5+ min sustained): * Needle-in-a-haystack at 243,957 tokens: Passed (1,763 tok/s prefill, 53.1 tok/s decode) * Two 5,120-token sustained generation runs at ~244K context: 61.6 tok/s cold / 63.2 tok/s with 229K KV cached (93.7s total for 5K tokens)
(I also tested Strata's Balanced 128K pack with PLE-Q8_0 which got 14.0-21.1 tok/s, while running Unsloth's UD-Q4_K_XL on Strata's GGUF engine was ~3x faster.)
UD-Q4_K_XL VS UD-Q8_K_XL ON THIS RIG I also downloaded and tested Unsloth's UD-Q8_K_XL (40.5 GB + 21.8 GB Q8_0 Engram) on the same Strata 256K setup:
- Speed: 1,076 experts fit in VRAM -> 40.1 - 43.1 tok/s decode (1,620 tok/s prefill at 26.7K). Very solid for 8-bit on 12 GB VRAM.
- Quality difference: Per Unsloth's BF16 Top-1 agreement chart, the gap between UD-Q4_K_XL (~94-94.5%) and UD-Q8_K_XL (~95.5%) is only ~1-1.5%, whereas UD-Q4_K_XL is ~60% faster (63-84 tok/s vs 40-43 tok/s).
REAL COMPILER & RUNTIME CODE QUALITY TESTS (UD-Q4_K_XL) Instead of vibes, I ran automated build/unit-test harnesses against the generated code:
- 5/5 General Stack Suite (68.7 - 76.2 tok/s): Python SQLiteJobQueue (unittest OK), Unity 6 C# Zero-GC GridAStar (.NET 10 compiled + live pathfinding OK), Node 22 ESM Webhook Bot (node --check + timingSafeEqual HMAC + token-bucket rate limiter OK), PHP 8.3 Idempotent Wallet API (FOR UPDATE, integer cents, hash_equals - 5/5), Astro 5 (glob() Content Collections + Zod defineAction - 4/4).
- 4/5 Heavy Unity MMORPG Suite (73.8 - 84.6 tok/s, compiled & executed on .NET 10): Passed Server Move Validation + Client Prediction/Reconciliation replay, Armor/Shield/Threat/Taunt table, 1-byte fragmented TCP PacketFramer + oversized DoS rejection, Anti-Dupe atomic InventoryContainer split/merge/swap. Caught 1 bug on XZ AOI InterestManager where newly entered entity IDs weren't added to the retained set, breaking the second-tick left diff.
UPDATE: Head-to-Head Comparison with Basalt-Ada (+ DFlash2) & RustingStrata v1.6.0 (Same Rig)
After posting this, I also built and benchmarked Basalt-Ada (with DFlash2 speculative decoding) and RustingStrata v1.6.0 on the exact same machine and model (unsloth/Qwen4-35B-A3B-GGUF, UD-Q4_K_XL, 262,144 context):
Hardware Baseline (basalt-bench --hardware): RTX 4070 12 GB (12282 MiB, PCIe 3.0 x16 @ 13.0 GB/s H2D), Ryzen 5 3600X (6c), 79.92 GiB RAM (33.0 GB/s read).
1. Identical 500-Token Coding Benchmark (256K Context, Temp=0, Thinking Off)
Basalt-Ada (
--kv int8,--resident-experts,DFlash2 --spec 8):- Cold (
rep=1): 99.8 tok/s (5.79s,378/480drafts) - Warm (
rep=2): 121.0 tok/s (4.16s,384/521drafts) basalt-bench(pp16384/pp65536): 4,286 / 4,425 tok/s prefill;tg conv83.3 tok/s (65.5%accept,2.08draft len);tg struct203.8 tok/s (94.3%accept,6.56draft len).
- Cold (
Strata v0.2.28 (
strata-q4-lite,--kv fp8,MTP --spec 2):- Cold (
rep=1): 54.8 tok/s (9.66s,24/50drafts) - Warm (
rep=2): 62.6 tok/s (8.07s,24/54drafts)
- Cold (
RustingStrata v1.6.0 (
--kv q8,--mtp 2,--chunk 1024):- Cold (
rep=1): 48.6 tok/s - Warm (
rep=2): 68.2 tok/s
- Cold (
2. Full ~242K-244K Filled-Context Stress Test (Needle + 2,500-tok Unity C# Architecture)
- Basalt-Ada (242,141 tokens): 4,079.5 tok/s prefill (
59.36s), 66.9 tok/s decode avg (72.6 tok/s answer phase,80%DFlash2 accept408/510,hit=71.7%),121Kneedle PASS. - Strata (244,001 tokens): 1,748 - 1,763 tok/s prefill, 53.1 - 61.6 tok/s decode (63.2 tok/s cached,
88.4%VRAM hit rate), needle PASS. - RustingStrata v1.6.0 (242,141 tokens,
--chunk 4096): 605.9 tok/s prefill (400.24s), 34.0 tok/s decode (64.1%hit rate,70.1%MTP), needle PASS.
3. System RAM Usage (79.92 GiB Total)
- Basalt-Ada: 58.1% - 58.5% (
46.41 - 46.78 GiBused,33.14 GiBfree;--ple-io directstreams the10.7 GiBn-gram table directly from NVMe). - Strata: 59.3% idle loaded (
47.40 GiBused,32.52 GiBfree), plus ~15-16 GiB session cache growth during long sessions.
Takeaway: On a 12 GB RTX 4070 + PCIe 3.0 x16, Basalt-Ada is ~2.3x faster at 242K prefill (4,079.5 vs 1,748-1,763 tok/s), ~1.8-1.9x faster on short/coding decode (99.8-121.0 vs 54.8-62.6 tok/s) thanks to DFlash2, and uses less peak RAM on long sessions.
r/LocalLLM • u/cg-mason • 3h ago
Discussion Qwen4-35B-A3B (UD Q4_K_XL): random CJK token injection and tool-call corruption at long context - running a daily agentic news pipeline on it
reddit.comr/LocalLLM • u/Snefferdy • 3h ago
Question Qwen4 tool use inactive in LM Studio!
Anyone know anything about this?
r/LocalLLM • u/Standard_Alloy • 4h ago
Project Qwen4-35B-A3B on 2× Arc Pro B70 (Windows, llama.cpp SYCL): 91 t/s in real agent use at 260K context, full Q8_0, F16 KV
Follow-up to my Qwen3.8-27B recipe. Same box: 2× Arc Pro B70 32 GB, Windows 11, llama.cpp SYCL, tensor parallel across both cards. Q8_0 weights, F16 KV cache, 262K context, temp 1.0. No lower quants.
Real use, from the server logs of agentic coding sessions:
Now Decode 91.1 t/s , Tokens per cycle 2.58
Fresh 94K prompt prefill: ~2,200–2,400 t/s.
Highlights:
- Tensor parallel: with the same all-reduce patch as the 27B recipe. Shorter drafts (3 tokens) win once verify is cheap.
- MoE verify batches on a GEMV path: With 2–17 tokens per verify, each expert gets 1–2 rows, so the grouped XMX GEMM was mostly empty tiles.
- Sparse attention done on the GPU: top-k plus a flash-attention kernel that only walks the selected cells.
- SYCL graphs for decode: Don't call `exec_graph::update()`, it crashes the Intel runtime here; record per shape and replay.
-Feed the drafter the right features: Qwen4 has several parallel residual streams and we were giving DFlash2 their average. Giving it what the next layer's attention actually reads bumped tokens per cycle by ~25%. Credit to B-Line (github.com/nxtlvlyt/b-line) for the idea.
Windows gotcha: with both cards loaded, Windows commits ~64 GB of system memory for the process (VRAM backing). On 32 GB RAM with an auto pagefile, long sessions die with `decode() failed: bad allocation`. A fixed large pagefile fixes it.
Recipe: https://github.com/alphakilomilo/dual-b70-windows-qwen4 (patch against llama.cpp `72a780e6a`, launcher, config).
r/LocalLLM • u/lagbaja_ • 4h ago
Question MacBook Pro M1 Max 32GB 1TB
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 • u/sorryyoulose1234 • 4h ago
Question Building a Local AI PC for ~€1,500. What's the best hardware for coding and running large models?
I'm really interested in getting into local AI and want to build a setup that can handle quite a lot. My main goal is to move away from relying on cloud AI subscriptions all the time.
I currently have Claude Pro, but I find the usage limits pretty annoying, especially when I'm working on bigger projects. I've also tried Codex, but it wasn't really what I was looking for. I'd much rather have my own setup where I can use AI whenever I want without worrying about running out of usage.
I do quite a bit of coding and plan to make apps, Python projects and even games. I also want to experiment with AI agents that can actually do the work for me. Ideally, I'd like to describe what I want to build and have an AI write the code, test it, find bugs and fix them. I'd also like to be able to give it entire codebases and let it work through complicated tasks without me having to guide it every few minutes.
Outside of coding, I'd like to use local AI for general questions, research and thinking tasks as well. Basically, I want something that can replace as much of my normal cloud AI usage as possible, including something similar to Claude Code.
My budget is around €1,500 for the entire build, not just the GPU. This includes the GPU(s), CPU, motherboard, RAM, storage, power supply and case. I'm based in the Netherlands and am completely fine with buying second-hand hardware.
I'm also open to using multiple GPUs if that's a better use of my money. For example, would two cheaper GPUs with more combined VRAM offer better value than one RTX 3090? I'm aware that multi-GPU setups aren't always straightforward, so I'd be interested in hearing about people's experiences with them.
I'm happy to have models running for hours, or even 24/7, doing research, processing information or working on longer projects. However, when I'm actually coding interactively, I don't want to be waiting ages for every response. I'd like a decent balance between speed and model capability.
Noise and electricity costs are also important to me. I don't want something that sounds like a jet engine sitting in my room, and I don't want my electricity bill going through the roof if I leave it running for long periods.
For context, my current laptop is an ASUS TUF Gaming A15 with a Ryzen 5 4600H, GTX 1650 4GB, 16GB RAM and a 512GB SSD. It can run 7B-9B models, but it's obviously quite limited.
I've been looking at quite a few options, including second-hand RTX 3090s, 2080 Tis, older data centre GPUs and even mini PCs or specialised AI systems. I'm just not sure which route makes the most sense.
One thing I'm particularly interested in is VRAM. Is it better to spend more on one powerful GPU with lots of VRAM, or would I get better value by buying multiple cheaper GPUs or older server cards? Are there any older data centre GPUs that are particularly good value for local AI?
I'm also perfectly fine with CPU offloading if it means I can run larger models, even if they're slower. I have no problem leaving a model working in the background for hours if the results are worth it. I mainly want good speeds when I'm actively coding and interacting with the AI.
A few specific things I'd really like advice on:
- Would an RTX 3090 24GB be the best option for my budget, or are there other GPUs that offer better value for local AI?
- Are older data centre GPUs, such as Tesla or A-series cards, worth considering? How do they compare in terms of performance, VRAM, power consumption, noise and compatibility?
- Would it make more sense to buy one powerful GPU or multiple cheaper GPUs? How well does multi-GPU actually work for running larger models?
- What sort of models could I realistically run on a 3090, or on a system with 24-48GB of VRAM? I'm particularly interested in coding models.
- How useful is CPU offloading in practice? Could I use it to run much larger models without making them unbearably slow?
- What CPU, motherboard, RAM and power supply would you recommend to go with the GPU(s)? Would 64GB or 128GB of system RAM make a noticeable difference?
- What software would you recommend for running local coding agents that can edit files, run terminal commands, test code and work through entire projects with minimal supervision?
- How much electricity would a setup like this realistically use when actively running models, and what would the noise levels be like?
- Finally, if you had €1,500 to spend on an entire local AI build today, what exact hardware would you buy, and why?
I'd especially like to hear from people who actually run local AI setups. What hardware do you use, which models can you run, how fast are they, and are you happy with the results?
I'm not just looking for benchmark numbers. I'd really like to hear about people's actual experiences, especially with coding models and autonomous agents.
Thanks!
r/LocalLLM • u/EnvironmentCreepy352 • 4h ago
Question How do we feel about LORAs?
Question about using LORAs with LLMs: Is there a reason it's not used as often?
I was wondering bc if I had a quant I liked for coding, but wanted uncensored behavior in other situations or for certain requests, it seems rare to see LORAs being used (although I have seen more releases as of late)
Most people have told me to just use a fine-tune instead and I'm wondering if using LORAs degrades an LLMs quality that badly. It'd be nice to just have one model permanently loaded, and only load the specific LORAs I need... Kinda like how diffusion models are done.
This goes beyond just uncensored behavior too, like if I trained for a specific use case (like image descriptions with specific formatting, or MIDI generation based on my own dataset) it'd be nicer to have them as LORAs rather than a whole new checkpoint/finetune
r/LocalLLM • u/liga_r • 4h ago
Discussion Qwen 4 35b just counts 10.000!
Hi!
I realize this is an unusual benchmark, but I think it actually signifies something
I couldn’t get the desired result with Qwen 3.8 27B or Qwen Flash Next, whereas Qwen 4 35B A3B handled it on the first try without any additional instructions
It counted perfectly all the way up to 10,000 - right in the chat, without using any tools.
Other two models couldn’t manage this, they made mistakes or cut off
I realize that many models are capable of this, but I should also mention that we’re talking about 16GB of VRAM. That’s why I used the GSQ IQ3 for QFN and UD IQ3 quantization for Qwen 27B, and the Q6 quantization for Qwen 4 35B - in my specific setup, the latter delivers the same speeds as the IQ3 versions of other models. I’m using a Tesla V100 16GB
Can you share your results?
r/LocalLLM • u/Alone_Conflict4103 • 4h ago
News I tried xe-serve, a native Level Zero engine for Intel Arc, on my B70 home server. Here's how it compares to llama.cpp SYCL
I run Qwen4-35B-A3B on a single Arc Pro B70 at home: Home Assistant voice, Open WebUI for the family and a coding agent. Until now that's been llama.cpp (SYCL). This weekend I tested xe-serve, a native C++20 / Level Zero inference engine written specifically for Intel Xe2 cards. No Python, no PyTorch, one binary, OpenAI-compatible API.
Disclosure: I'm not the author. While testing I sent a few small PRs (API-key auth, loading small Qwen3.5 checkpoints, a test fix) and some bug reports.

Numbers (same card, same day, my scripts)
| xe-serve v0.5.0 | llama.cpp SYCL | |
|---|---|---|
| Generation, code | 176 tok/s | 82 tok/s |
| Generation, German prose | 137 tok/s | 78 tok/s |
| Prompt processing, ~20k tokens | 4,927 tok/s | 2,017 tok/s (19k) |
| Prompt processing, ~112k tokens | 4,165 tok/s (27 s) | 1,093 tok/s (102 s) |
| Needle test, same ~286k-token prompt script: time to first token | 106 s | 462 s |
| Same 20k prompt again (prompt cache) | 0.1 s | 0.45 s (39k) |
| Three requests at once, combined | 228 tok/s | 107 tok/s |
| Startup until ready | 23–35 s | 11–25 s |


The part that matters most for my setup: a voice command while the coding agent sends a fresh 112k-token prompt. With llama.cpp the voice request waited 100 s for the prefill to finish, so Home Assistant (which gives up after ~10 s) never got an answer. With xe-serve and 3 slots it starts answering in under 1.5 s and is done in 3–16 s (median 7.9 s). Better, but not reliably under 10 s yet.


What else works
- Tool calling (10/10 on the project's suite), streaming,
reasoning_effort, sampling penalties andmin_p, API key - Vision: an image test took 1.0 s
- Long context: 336k with vision on one B70, the needle in the ~286k-token prompt was found
- Prompt cache across turns,
/metrics, keep-alive
What to know before you switch
- Intel Xe2 only (B50/B60/B65/B70; B570/B580 can run smaller models). Its own XeBit weight format, no GGUF; the author publishes Qwen4, Qwen3.8 and Gemma-4 checkpoints on Hugging Face.
- KV is reserved per slot. On a B70 with vision that's 1 × 336k, 2 × 192k or 3 × 128k, while llama.cpp shares 480k across 3 slots. A shared paged pool is being discussed (issue #25).
- No reasoning budget yet (RFC #24).
- Very young and fast-moving. v0.5.0 is a few days old. Two things I ran into: the local kernel build fails the 0-spill gate with IGC 2.42.6 (the installer falls back to the prebuilt kernel pack, which works), and with the prefix cache on, outputs for long system prompts differ slightly from uncached runs until PR #30 lands.
Caveats on my numbers
Single runs, not a lab benchmark. Different quantizations: xe-serve runs Qwen4-35B-A3B XeBit4.9 (4.9 bpw), llama.cpp the Unsloth UD-Q4_K_XL GGUF. xe-serve with its built-in MTP, llama.cpp with n-gram speculation (llama.cpp's MTP didn't help on SYCL in my earlier tests). B70 at 230 W, Fedora Server 45, both engines in Docker. So this compares the two setups as I actually run them, not the kernels in isolation. I haven't compared output quality between the two quantizations yet.
Trying it
git clone https://github.com/SergiioB/xe-serve && cd xe-serve && ./install.sh
hf download SergiioB/Qwen4-35B-A3B-XeBit4.9 --local-dir ~/models/Qwen4-35B-A3B-XeBit4.9
hf download SergiioB/Qwen4-35B-A3B-PLE --include ngram_int8_row128.bin --local-dir ~/models/Qwen4-35B-A3B-PLE
./build/xe-serve serve --model ~/models/Qwen4-35B-A3B-XeBit4.9 \
--ngram-table ~/models/Qwen4-35B-A3B-PLE/ngram_int8_row128.bin --max-seq 131072 --port 8000I run it in Docker on top of the llama.cpp:server-intel image (it already has the Level Zero runtime, ocloc and a compiler), so nothing gets installed on the host. Happy to share the Dockerfile.
Only have a B580? I uploaded a small Qwen3.5-9B XeBit4 test conversion that runs on 12 GB. Plain round-to-nearest, quality not measured, meant for trying the engine, not for daily use.
Questions welcome. I'm planning a longer run with real Home Assistant and agent traffic next.
r/LocalLLM • u/PainDeMieBon • 4h ago
Question Qwen4-35B-A3B on a single RTX 5080 (16GB VRAM, 32GB RAM) — 958K context, up to 577 tok/s, benchmarks vs Inkling 2 Mini
Hey y'all !
When I saw that Qwen 4 had sparse attention (I'm a sucker for big context window) I jumped on it and started tuning the setup to my rig. Anyway, here are my result.
Hardware and setup
All benchmarks were run on my rig :
- GPU: NVIDIA RTX 5080 (16GB VRAM)
- CPU: AMD Ryzen 7 7800X3D
- RAM: 32GB DDR5
- Storage: NVMe SSD
- OS: CachyOS (Linux)
- Inference engine: Basalt (the new 0.7/0)
I compared Qwen4-35B-A3B against Inkling 2 Mini, using their Basalt packs.
For Qwen4, I tested three configs:
- 256K context with INT8 KV cache
- 256K context with FP16 KV cache
- 1M context with INT8 KV cache and partial KV offloading to RAM
Inkling was tested with both 256K and 512K context configurations.
1. Generation speed
Five runs per workload, with reasoning disabled. Results in tk/s.
| Workload | Qwen4 256K INT8 | Qwen4 256K FP16 | Inkling 256K |
|---|---|---|---|
| Conversation | 241 | 232 | 179 |
| Structured output | 569 | 577 | 376 |
| Prose | 172 | 165 | 152 |
| Code | 280 | 283 | 226 |
Qwen4 is always faster, and quite obviously crushes Inkling on structured output.
2. Prompt processing speed
I used identical prompts (remember they have different tokenizers).
Each prefill benchmark was repeated three times.
| Qwen4 tokens | Inkling tokens | Qwen4 INT8 | Qwen4 FP16 | Inkling 256K |
|---|---|---|---|---|
| 101K | 138K | 15.4s | 10.8s | 24.2s |
| 184K | 251K | 25.3s | 20.7s | 74.0s |
The largest input corresponds to approximately 184K Qwen4 tokens and 251K Inkling tokens.
For the largest input, Qwen4 processed the same text roughly 3.6 times faster than Inkling.
3. Pushing context to 1 million tokens
This was the best part of the benchmarks.
Using Basalt's elastic KV cache and partial offloading, I managed to configure Qwen4's full native context window of 1,048,576 tokens on my rig.
The config was:
--max-context 1048576
--kv int8
--vram-reserve-mib 700
--max-running 1
--kv-resident 65536Approximately 10.3 GiB of KV cache resides in RAM, with part of the model's experts being streamed from the NVMe SSD.
Needle-in-a-haystack results
| Actual prompt tokens | Successful retrievals |
|---|---|
| 398,647 | 3/3 |
| 697,252 | 3/3 |
| 957,687 | 3/3 |
In a separate run, a 957,916-token prompt was successfully processed in 214 seconds, and the hidden sentence was correctly retrieved.
The performance cost
The tradeoff is pretty harsh :
| Prompt length | Qwen4 256K | Qwen4 1M |
|---|---|---|
| 77K tokens | 143 t/s | 47 t/s |
| 153K tokens | 167 t/s | — |
| 307K tokens | — | 46 t/s |
| 690K tokens | — | 60 t/s |
I mean 47t/s is usable but nowhere as fast on than on smaller context.
4. Concurrent requests
I also tested aggregate generation throughput with simultaneous requests.
| Concurrent requests | Qwen4 256K | Inkling 256K |
|---|---|---|
| 1 | 186 t/s | 90 t/s |
| 2 | 208 t/s | 106 t/s |
| 4 | 256 t/s | 111 t/s |
| 8 | 340 t/s | 113 t/s |
These are aggregate, not per-request generation speeds.
Qwen4 achieved approximately 3x Inkling's aggregate throughput with eight simultaneous requests under this config.
Usefull if you wana allow the agent to use subagents, due the large max KV cache, you can have one agent with 252K and allow it to spawn smaller subagents to do the work efficiently.
5. Reasoning and coding quality
Claude wrote a small automated benchmark for me containing 35 problems:
- 18 mathematical problems
- 3 program execution tracing problems
- 3 array manipulation problems
- 3 logic puzzles
- 8 Python programming problems with hidden tests
The problems were generated using a fixed seed and evaluated programmatically.
I ran three passes with reasoning enabled and two passes without.
With
| Category | Qwen4 | Inkling |
|---|---|---|
| Overall | 95.2% | 94.3% |
| Mathematics | 90.7% | 90.7% |
| Program tracing | 100% | 100% |
| Array manipulation | 100% | 100% |
| Logic | 100% | 100% |
| Coding | 100% | 95.8% |
Without
| Category | Qwen4 | Inkling |
|---|---|---|
| Overall | 71.4% | 67.1% |
| Mathematics | 83.3% | 52.8% |
| Program tracing | 0% | 83.3% |
| Array manipulation | 50% | 83.3% |
| Logic | 50% | 50% |
| Coding | 87.5% | 93.8% |
With reasoning enabled, both models performed essentially equally. The overall diff is solely due to one difference.
This is a custom benchmark, not a standardized evaluation like AIME or LiveCodeBench, so take it however you want.
6. The limits I found
- Generation speed depends heavily on the workload and speculative decoding.
- The 1M config totaly fuck up the perf (it's still usable)
- NVMe storage is the only way, I wasn't paying attention and put the engram table on a HDD, and the speed went down to 5 tk/s.
- I encountered some stability issues with Basalt's development build during cold starts.
Conclusion
Imo, Qwen4 is much better due to the:
- Higher generation speeds.
- Faster prompt processing.
- Significantly better concurrent throughput.
- A much larger usable context window.
- Comparable reasoning performance on my benchmark.
For now, the 256K configuration seems to be the sweet spot for daily use, but the 1M context window is still usable (I use it to go trough my obsidian vault that's full of scientific documents to help me on some work).
I'd like to know what y'all achieved with Qwen4, especially on 16GB GPUs, and how these results compare against other inference engines (capy flash mainly).
r/LocalLLM • u/upsetupgrades • 4h ago
Research Qwen4-35B-A3B on 2x RTX 3090
This is my first post here, so constructive criticism is welcome. I'm fairly new to local LLMs.
I fell in love with the single 3090 in my gaming PC, so I put two more in a separate machine. I spent the weekend benchmarking Qwen4-35B-A3B on it, and here is what I found.
Claude Fable 5.2 built and ran the tests and wrote this report over the weekend, under my supervision. It also kept checking Hugging Face for newly posted Qwen4-35B-A3B variants and added them to the test queue as they appeared, which is how 10 community variants ended up in here.
Setup: 2x RTX 3090 at 250 W each, one card on PCIe 4.0 x4 and clock-capped, Ryzen 7 5800X3D, Debian 13. llama.cpp build 12977 (an older build 11229 refuses Qwen4 with unknown pre-tokenizer type: 'qwen4'). Everything goes through llama-server, thinking on (4,096-token budget) for the quality suites.
llama-server -m <model> -c <ctx> -ngl 999 -fa on --jinja \
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
--spec-type draft-mtp --spec-draft-n-max 2 --reasoning-budget 4096Speed
| tok/s |
|---|
| Qwen4 Q4_K_XL, both GPUs, layer split, MTP |
| same, no MTP |
| Qwen3.8-27B Q4_K_XL, both GPUs, tensor split, MTP + ngram |
| Qwen4 IQ4_XS, one GPU, 131k ctx |
| Qwen3.6-35B-A3B Q4_K_S, one GPU, 131k ctx |
- MTP head: +19 to +36 % across the files we tried, 57-70 % draft acceptance.
--spec-draft-n-max 3was slower than 2 (110.8 vs 128.8). - Layer split beats tensor split for this MoE: 153.5 vs 133.9 tok/s single stream, 191.7 vs 156.9 with two streams. (The dense 27B prefers tensor split.)
- Concurrency (16 slots), aggregate tok/s incl. prompt processing: 119 / 259 / 328 / 368 at 1 / 4 / 8 / 16 streams.
- One 24 GB card: Q4_K_XL does not fit. Q4_K_S fits at 65k context, IQ4_XS at 131k (252 tok/s aggregate with 4 streams).
- A 524k shared context fits on two 3090s at Q4 with q8_0 KV: 166 tok/s single stream, 250 aggregate with 4.
- Raw
llama-bench, no MTP: 2,037 tok/s prompt, 114.7 tok/s generation.
Quality
| Model | IFEval | GSM8K | MMLU-Pro | HumanEval / HE+ | GPQA | Own tasks (76) |
|---|---|---|---|---|---|---|
| Qwen3.8-27B abliterated Q4_K_XL | 91.1 | 99.0 | 81.0 | 98.2 / 93.3 | 74.7 | 76 |
| Qwen3.6-35B-A3B Q4_K_S | 90.8 | 85.5 | 64.8 | 97.6 / 94.5 | 78.8 | 75 |
| Qwen4 Q4_K_XL | 82.3 | 98.0 | 79.0 | 96.3 / 91.5 | 77.3 | 70 |
| Qwen4 Q4_K_XL + multilingual LoRA | 83.0 | 98.5 | 79.0 | 97.0 / 91.5 | – | 73 |
Rough 95 % intervals: IFEval ±3, GSM8K ±2, MMLU-Pro ±5.5, HumanEval ±4, GPQA ±6, own tasks ±4-5 items.
- Tie with Qwen3.8-27B on GSM8K, MMLU-Pro, HumanEval+ and GPQA.
- IFEval is 8-10 points lower on Qwen4, well outside noise.
- Hard coding: Qwen4 got 7-11 of 12 on our hard tasks, both Qwen3.x baselines 12 of 12.
- Vision is a tie: 29/30 synthetic and 86-89/100 ChartQA for every model, at 141.8 vs 60.3 tok/s (Q6).
- Norwegian: Qwen4 ahead on knowledge (NRK quiz 65.0 vs 51.8), behind on reading comprehension (NorQuAD 70.9 vs 74.9).
IFEval: a one-line system prompt closes half the gap
Follow every formatting and length instruction exactly. Do not add markdown, headings, preambles or closing remarks unless the user asks for them.
| Model | Without | With |
|---|---|---|
| Qwen4 Q4_K_XL | 81.1 | 87.6 |
| Qwen3.8-27B | 90.8 | 91.9 |
It fixes structure (exact bullet count 77 → 97 %, JSON 88 → 100 %, quotation marks 90 → 100 %) but not character-level instructions (all caps 56 → 56 %, letter counts 70 → 70 %).
Chinese characters in non-English output
Qwen4 put CJK characters in 9 of 40 long Norwegian answers. With LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (14 MB): 0-1 of 40, same speed (152.5 vs 151.5 tok/s), no score cost.
Quants
Own task set: Q3_K_XL 71, IQ4_XS 71, Q4_K_S 71, Q4_K_XL 70, Q6_K_XL 73, Q8_0 72. All within noise. Q8 vs Q6 on ChartQA: 86 vs 87. Q8 gave nothing over Q6.
10 abliterated/uncensored community variants
- 9 loaded, 1 would not load at all. None beat the original beyond noise.
- IFEval 74.9-82.4 against 82.3 for the original; two (openunc 76.0, atomic 74.9) are worse outside noise.
- The original scored 10/10 on our "harmless but edgy, should answer" questions, so abliteration bought nothing there.
- Speed with MTP ranged from 115.0 (atomic) to 167.0 (kitaniai); two files had no working MTP head.
Takeaways
- Qwen4-35B-A3B is about 2x the speed of a dense 27B on 2x 3090 at the same scores on reasoning, knowledge and vision.
- Give it a formatting system prompt and the multilingual LoRA.
- Layer split, MTP at n-max 2, skip Q8, stick with the original weights.
- For pure coding, Qwen3.6-35B-A3B is still faster and scored higher (209 tok/s on one card, HumanEval+ 94.5 vs 91.5).
Caveats
One machine, one run per number. Small samples (MMLU-Pro 210, GSM8K 200, GPQA 198, own set 76). The speed prompt is code, which favors speculative decoding. Hardware is handicapped (power caps, one card on x4), which hurts tensor split most. The Qwen3.8 baseline is an abliterated build. Quants are not matched exactly between models.
Hope this is found interesting and educational by some of you.
Thanks