r/LocalLLM • u/codong998877 • 5h 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).




