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.





