Running 300B MoE on 32GB RAM: Inference Bottlenecks and Optimizations
maddie-lovelace · reddit · 2026-08-09
The author shares optimization findings for running a 300B parameter MoE model on a 32GB RAM laptop. Due to memory limits, the massive expert pool (147GB) must stay RAM-resident.
Key findings and optimizations:
- Read speed is the primary bottleneck, not compute kernels. Repacking the model to a layer-major format converts slow random reads into large sequential reads at 7GB/s.
- Caching can counterintuitively slow things down: Page cache double-buffering transfers data from SSD to CPU then to GPU, worsening bandwidth usage by about 3×.
- Speculative expert prefetch at prefill: Using router hints to predict and prefetch the next layer's experts during the current layer's compute can effectively hide read latency.
- TTFT is inherently slow: Even a 30-token prompt touches a huge fraction of experts across 43 layers, meaning compute is completely masked by read times.
More from Infra
- Samsung's new memory chief warns record quarters don't mean competitiveness is back — tengyanAI · 2026-11-30
- Which free local AI model to download for your GPU, from 6GB to 24GB VRAM — alex_verem · 2026-11-30
- tqLLM 1.9.0: C++ LLM engine claims 4.6x Strata on 16GB, adds AMD RX 580 support — pmttyji · 2026-11-30
- oMLX 0.8.4 doubles Inkling 2 Mini decode speed on Mac, adds concurrent MTP — pcuenq · 2026-11-30
- Tencent issues $5.4B notes as AI costs turn cash flow negative; AMD closes World Labs deal with Fei-Fei Li — YvesMulkers · 2026-11-30
- Banks in Europe and Asia plan higher spending on local data storage to cut US cloud reliance — AIFlow_ML · 2026-11-30