Qwen4-35B-A3B runs full 1M context on a single RTX A6000 at ~100 tok/s via llama.cpp
SamSausages · reddit · 2026-12-04
A Reddit user ran Qwen4-35B-A3B with its full native 1M context on a single 48GB RTX A6000 using llama.cpp, hitting 100 tok/s decode at short contexts.
- Key trick: -ot perlayertokenembd=CPU + mmap keeps the 20GB Q80 n-gram (engram) table in system RAM; only experts, attention and KV cache live in VRAM. Q80 KV cache for all 1,048,576 tokens is pre-allocated — 46.8GB VRAM at load, flat thereafter.
- MTP off: the draft head needs its own full-length KV cache and OOMs at 1M; re-enable it below 768K.
- Performance: prefill peaks at 3,544 tok/s around 17K context and holds 3,072 tok/s at 139K; decode falls from 101 to 50 tok/s at 139K and 12 tok/s near 1M, with a full 1M prompt taking 10 minutes to first token.
- Quality: needle-in-a-haystack passed at 341K and 993K; thinking/non-thinking modes, tool calls, image description and summarization fidelity all checked out.
Takeaway: A3B MoE with the engram table on CPU fits a single 48GB card well, but 1M-context prompting is batch territory, not chat.
More from Infra
- SmartRabbit returns early query results for real-time analytics, presented at DB conference — mgill25 · 2026-12-04
- HF's hardware compatibility labels mislead: engram can live on SSD, Q4 fits a 24GB card — citrusalex · 2026-12-04
- Chrome to stop trusting ECDSA P-256 certs by March 2027, forcing sites to upgrade encryption — The Decoder · 2026-12-04
- LoopTitan: 482 experiments show looped MoE parameter reuse buys almost nothing; switching AdamW to Muon gives 3.7x the gain — 机器之心 · 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