Qwen3.8-Flash-Next Mac optimization: Linear sparse attention, SSD streaming, and custom Q4
memeka · reddit · 2026-08-30
Developer achieved extreme optimization for Qwen3.8-Flash-Next on M1 Max 64GB, enabling SSD streaming for tensors, engrams, and MTP. Key techniques include:
- Custom Q4 Quant: Spliced tensors from multiple Unsloth/AtomicChat quants for best performance.
- Metal Sparse Attention: Custom mechanism achieving near-linear degradation vs standard quadratic.
- Dynamic MTP: Automatically disables MTP when context size makes it counter-productive.
- Tradeoffs: Enabling MTP uses more RAM, dropping prefill from 180 tps to 170 tps, but boosting decode by 70% to 22 btps.
Author credits Claude for providing a week's worth of tokens and credits.
More from Infra
- Jensen Huang warns the US risks repeating its "5G mistake" and losing the AI race to China — TinfoilTricorn · 2026-12-02
- Hyperscaler capex consensus keeps being redrawn upward, now at $1.2T — peterwildeford · 2026-12-02
- Netlify served 54B requests over Black Friday weekend, peaking at 249K rps — thisiskp_ · 2026-12-02
- Rumor: Tencent and ByteDance may have snapped up Envision's Xinghe Phase I, leaving DeepSeek no Huawei 950DT capacity — teortaxesTex · 2026-12-02
- RightNow Mini open-sourced: 729 tok/s on one GPU and 92/100 SWE-bench, zero weight changes — victormustar · 2026-12-02
- NVIDIA Sentry monitors AI agents and contains threats in milliseconds — nvidia · 2026-12-02