New raw file: raw/blog/2026-07-02_whytryai-language-blind-spot.md New wiki page: wiki/concepts/llm/ai-search-language-blind-spot.md - Language Lens Bias concept + Local Sources Prompt hack - Denmark case study (English vs Danish search, ~0% topic overlap) - Global Pulse Claude Code Skill for multi-country comparisons - Routing parallel to chinese-model-cost-routing (model routing vs source routing) - Lokal vs. Global cross-section thesis expanded (5th dimension: source routing) Cross-refs added to: mlx-moe-local-ai-optimization, local-llm-laptop-guide, chinese-model-cost-routing Index updated (57. Update), log entry added.
8.6 KiB
| created | updated | sources | tags | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-06-29 | 2026-06-29 |
|
|
MLX MoE Optimization — Why Apple Silicon Loves Mixture-of-Experts
TL;DR: Apple's MLX framework is optimized for MoE (Mixture of Experts) models, not dense models. Running dense models like Qwen3.6 27B on a 128GB Mac is "painfully slow," while dequantized MoE models like Minimax-M3.0 and DeepSeek-v4-Flash deliver a smooth local experience. This critical optimization knowledge isn't searchable and isn't in any frontier AI's training data — it lives on expert X accounts.
Source
| Source | Author | Date | Engagement |
|---|---|---|---|
| X-Post: "MLX is optimized for MoE" | Jun Song (@jun_song) | 2026-06-29 | 954 likes, 60 reposts, 862 bookmarks, ~89K views |
Context: Reply to @firstadopter (Tae Kim) who complained about slow, hot Qwen on 128GB Mac, concluding local LLMs are "years away."
The Core Insight: MoE vs. Dense on Apple Silicon
| Dimension | Dense Model (e.g., Qwen3.6 27B) | MoE Model (e.g., Minimax-M3.0 dq) |
|---|---|---|
| Activation pattern | All parameters active per token | Only a subset of experts active per token |
| Memory access | Full parameter sweep each forward pass | Sparse access — only relevant experts loaded |
| MLX fit | Poor — MLX optimized for sparse activation | Excellent — MLX leverages unified RAM for expert routing |
| Speed on Mac | "Painfully slow" | "Much smoother experience" |
| RAM utilization | Linear with parameter count | Sublinear — MoE's advantage grows with RAM size |
| Thermal | Hot (sustained full-power) | Cooler (sparse computation) |
Why MLX Favors MoE
Apple Silicon's unified memory architecture is the key enabler. In traditional GPU setups, MoE models face a bottleneck: expert weights must be shuttled between discrete VRAM and system RAM. With Apple's unified memory:
- All expert weights reside in unified RAM — no PCIe transfer bottleneck
- MLX's sparse dispatch can route tokens to experts with minimal overhead
- Large unified RAM (48–128 GB) accommodates many experts simultaneously
- Dequantized (dq) MoE models trade precision for speed — the dq versions of Minimax-M3.0 and DeepSeek-v4-Flash run smoother than their quantized dense counterparts
The Practical Recommendation
| Model | Type | Local Deployment | Source |
|---|---|---|---|
| Minimax-M3.0 (dq) | MoE | MLX on Mac (dequantized) | Jun Song (@jun_song) |
| DeepSeek-v4-Flash (dq) | MoE | MLX on Mac (dequantized) | Jun Song (@jun_song) |
| Qwen3.6 27B | Dense | Avoid on Mac — slow and hot | Jun Song (@jun_song) |
Note: The
dq(dequantized) versions are critical — they allow MLX to exploit the MoE sparsity pattern more effectively than standard quantized formats.
The Info Gap Thesis
Jun Song's most pointed argument isn't about models — it's about knowledge access:
"No frontier AI can tell you this. You can't search for it, and knowledge cutoffs mean they don't have the latest facts."
| Information Source | Can tell you about MLX MoE optimization? | Why |
|---|---|---|
| Frontier AI (ChatGPT, Claude, Gemini) | ❌ No | Knowledge cutoffs + fast-moving field |
| Web search | ❌ Barely | Niche knowledge, not well-indexed |
| Expert X accounts | ✅ Yes | Practitioners share real-world findings in real-time |
| Community wikis (this one) | ✅ Yes | Curated from expert sources — exactly this page's purpose |
This is why the knowledge base curation mission matters. The MLX MoE optimization insight is:
- Not in any model's training data (too recent, too niche)
- Not easily searchable (buried in X threads)
- Critical for anyone deploying local AI on Mac
- Exactly the type of knowledge that should be wikified
Connection to Our Setup
Model Overlap
Jun Song's recommended local models are already in our stack:
| Model | Jun Song's Use Case | Our Use Case | Match |
|---|---|---|---|
| Minimax-M3.0 | Local MLX (dq) on Mac | ollama/minimax-m3 — planned fallback in routing |
✅ Same model, different deployment path |
| DeepSeek-v4-Flash | Local MLX (dq) on Mac | ollama/deepseek-v4-flash:cloud — active fallback |
✅ Same model, different deployment path |
Three Angles on the Same Models
Our wiki now documents three independent perspectives on the same Chinese MoE models:
| Angle | Source | Key Insight |
|---|---|---|
| Cost routing | DeRonin | 87% cost reduction by swapping Western → Chinese models |
| Macro-thesis | TheProphet | China builds the "Factory for Gods" — intelligence industrialized |
| Local MLX optimization | Jun Song (this page) | MoE models leverage Apple Silicon unified RAM better than dense |
The convergence is striking: Minimax-M3 and DeepSeek-v4-Flash are optimal choices whether you're optimizing for cost (cloud API), sovereignty (local deployment), or hardware efficiency (MLX on Mac). This triple validation strengthens the case for MoE as the dominant local AI architecture.
Cloud-Exit Connection
This page directly extends the Cloud-Exit thesis:
- Cloud-Exit (OME21): Local MoE models reach Gemini-Flash-level speeds on Mac, 150 tok/s reported
- MLX MoE (this page): Which models to run locally and why — MoE, not dense
- Hardware ladder: NVIDIA DGX Station → AMD Strix Halo → Apple Silicon — all unified-memory architectures that favor MoE
Dense vs. MoE: Architectural Context
| Property | Dense Model | MoE Model |
|---|---|---|
| Parameters | All active per token | Sparse — only K experts active |
| Compute per token | ∝ total parameters | ∝ active parameters (much smaller) |
| Memory footprint | ∝ total parameters | ∝ total parameters (all experts in RAM) |
| Speed bottleneck | Compute-bound | Memory-bandwidth-bound (expert dispatch) |
| MLX optimization | Suboptimal — no sparsity to exploit | Optimal — MLX's sparse dispatch shines |
| Apple Silicon fit | Moderate — unified RAM helps but no sparsity | Excellent — unified RAM eliminates expert dispatch bottleneck |
Related: For post-transformer architecture context (Griffin, Titans, diffusion LLMs), see post-transformer-llm-architectures.md. For the broader MoE vs. dense debate in frontier models, see llm-model-fusion-ensembles.md (OpenRouter's panel approach is a form of MoE at inference time).
Cross-References
- ../hardware/cloud-exit-and-local-superiority.md — Cloud-Exit thesis, local MoE performance data
- ../hardware/nvidia-dgx-station-748gb.md — NVIDIA DGX Station (748 GB unified memory, MoE-friendly)
- ../hardware/edge-inference-als-cloud-alternative.md — AMD Strix Halo (128 GB unified memory, x86 alternative)
- chinese-model-cost-routing.md — DeRonin's cost-cut playbook (same models, cost angle)
- ai-intelligence-commoditization-thesis.md — TheProphet's macro thesis (same models, geopolitics angle)
- llm-model-catalog.md — Consolidated model catalog with local deployment options
- ../../architecture/model-routing.md — Our routing architecture
- local-llm-laptop-guide.md — Paul Couvert's cross-platform laptop guide (companion page, any-laptop perspective)
- ../../tools/hermes-desktop.md — Hermes MoA (Mixture of Agents, related ensemble pattern)
- ai-search-language-blind-spot.md — "Local" als Querschnittsthema: Quellen-Routing (lokale Sprache) analog zu Hardware-Routing (lokale MoE)