Running a 35B MoE LLM on 8GB VRAM: tuning llama.cpp to 1,232 tok/s prefill
Decent_Bug3349 · reddit · 2026-12-04
A developer shares a detailed tuning log for running Unsloth's Qwen4-35B-A3B UD-Q4KXL quant via llama.cpp on an 8GB RTX 3070 laptop with 32GB RAM, lifting prefill from an initial 122 tok/s to 1,231.93 tok/s on a 16K prompt (1,050 tok/s on a 58K prompt) with 96K context configured, decode around 32 tok/s.
Key findings:
- --load-mode none beats mmap, removing the first-request penalty
- Larger physical microbatch (-ub 4096) helped; bigger logical batch alone did not
- --moe-cache-cpu-share 0.95 was best on this machine, nearly doubling decode (16.8 → 30.7 tok/s)
- MTP (draft-mtp) with GPU-resident experts and draft microbatch 128 contributed to the top result
The post includes full benchmark tables and a ready-to-copy Windows .bat startup command, with caveats that some settings changed together and results may not transfer to other hardware.
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
- 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
- Qwen4 local inference megathread: share your t/s speeds, quant and VRAM configs — Fancy-Snow7 · 2026-12-04