r/LocalLLaMA • • 8h ago

Discussion Almost 300 t/s on Qwen4-35B-A3B with a 16GB 5070 Ti + 32GB DDR4 RAM

Rig: RTX 5070 Ti 16GB (OC'd to 3270MHz core / 14801MHz mem), Ryzen 7 5800X3D, 32GB DDR4, Windows.

Tested Qwen4-35B-A3B across a few configs today and the jump to Basalt is kind of stupid lol:

  1. llama.cpp b12973, Unsloth UD-Q4_K_XL + Q8_0 engram, 131k ctx, q8_0 KV, --fit on, MTP=1: ~48-55 t/s
  2. Same llama.cpp setup but switched to --fit off -ngl 99 --cpu-moe --moe-cache-mib 7168 --moe-cache-cpu-share 0.0 -ot per_layer_token_embd=CPU and MTP=2: warmed up to ~73 t/s
  3. Built jesdga95/basalt main natively on Windows (VS 2022 + CUDA 13.1, -DBASALT_MODELS=qwen4exp) with jesdga's NVFP4 .basalt pack (DFlash 2 default, 131k ctx, int8 KV, dynamic vision): peaked at 298.6 t/s after warmed up. Its insane!

Quality held up too. Tested it on a hard math problem without any tools and it got the exact answer on both llama.cpp (high reasoning, ~61k tokens) and Basalt NVFP4 (reasoning-effort high, ~10k 40k tokens). More info here.

Only issue on 32GB RAM with Basalt is the defaults eat almost all your system memory (it reserves 4GB for checkpoint pool and plans for 64 slots). Setting max-running to 1, ram-reserve-mib to 6144, and checkpoint-pool-mib to 1024 in basalt_config.json fixed that without hurting speed. Also if you build on Windows with CUDA 13.1, use VS 2022 toolset (VS 2026 made cudafe++ crash).

203 Upvotes

71 comments sorted by

View all comments

Show parent comment

4

u/Herocem 1h ago edited 1h ago

Ok so I had Opus go through both reasoning traces and figured it out.

Q4 made a few dumb mistakes early on and spent most of its ~60k tokens finding and fixing them, then double checking everything.

NVFP4 actually didn't make those mistakes, but it got cut off at 8k thinking tokens. It had already solved the flips and P(A) by then, but it was in the middle of P(B) when it got cut, so it just guessed B and C. I only checked the flips so I thought it got everything right lol, my bad.

The weird part is I had reasoning on "High" for both. Turns out the llama.cpp web UI handles "High" differently depending on the backend. llama.cpp tells the UI what reasoning levels it supports, so the UI just sends effort high with no cap. Basalt doesn't, so the UI falls back to a token budget, and for High that's 8192 tokens. Basalt enforces it and cuts the model off. So not a fair comparison at all.

Reran NVFP4 on "Max" (no budget) and it got all 4 answers right in ~40k tokens vs Q4's ~60k. It got the setup right first try and spent most of the time double checking. Only one run each though, so grain of salt.

edit: speed was 344.64 t/s on my last run lol