Qwen4-35B-A3B tuned to 1,050 tok/s prefill on an 8GB RTX 3070 laptop with 96K context
Decent_Bug3349 · reddit · 2026-12-04
A Reddit user detailed how they tuned Unsloth's Qwen4-35B-A3B UD-Q4KXL quant on an 8GB RTX 3070 laptop with 32GB RAM, reaching 1,050 tok/s prefill and 32 tok/s decode with 96K (98,304) context configured.
Key findings:
- Stock llama.cpp managed only 122 tok/s prefill, motivating the sweep
- Big wins came from --load-mode none, -b 4096 -ub 2048, lazy loading, and MoE cache CPU share 0.95 (best of 0/0.5/0.95; second-pass generation rose from 17 to 30 tok/s)
- On a 16K mixed-code prompt, the final config (physical microbatch 4096, 256MiB MoE cache, GPU-resident MTP experts, draft -ub 128) hit 1,231.93 tok/s second-pass prefill
- Increasing only the logical batch didn't help; later rows changed several settings together, so MTP placement's isolated effect isn't measurable
The post includes a full copy-paste Windows .bat startup command (llama-server, CUDA 13.5, reasoning off, MTP enabled). Results are hardware-specific and not universal recommendations.
Related event: Developer runs 35B MoE model on an 8GB laptop, hitting 1230 tok/s prefill(2 posts)→
More from Infra
- Chrome to stop trusting ECDSA P-256 certs by March 2027, forcing sites to upgrade encryption — The Decoder · 2026-12-04
- Running a 35B MoE LLM on 8GB VRAM: tuning llama.cpp to 1,232 tok/s prefill — Decent_Bug3349 · 2026-12-04
- Gemini team starts migrating off Cloudflare to Amazon CloudFront after CEO controversy — StefanoGogioso · 2026-12-04
- 'France is irrelevant' sparks tech brawl: nuclear recycling and silicon photonics say otherwise — JFPuget · 2026-12-04
- Infere launches OpenAI-compatible LLM gateway unifying five model providers — ptkvsk00 · 2026-12-04
- QVAC defaults to Qwen3.5 9B locally, with a one-line check for what your machine can run — alex_verem · 2026-12-04