Now that flagship open-weight models trail closed frontier models by less than a benchmark point on coding — and are almost universally sparse Mixture-of-Experts — "should we self-host?" has become a real engineering and cost question. The deepest MoE trap: only 49B parameters activate, but you still have to hold 1.6T in memory.
主题来源:2026-08-28 AI 每日简报「今日精选主题」 · 全文双语,右上角可切换
Topic selected from the 2026-08-28 AI daily brief · Fully bilingual, toggle at top right
One sentence: A sparse Mixture-of-Experts (MoE) model replaces the feed-forward layer (FFN) of a Transformer with many parallel "experts." A router (gate) sends each token to only a few of them; the rest do no work on that token at all.
So an MoE model has two numbers you must never conflate: total parameters (how much weight you have to hold in memory) and active parameters (the FLOPs cost of a single-token forward pass). DeepSeek-V3 is the canonical illustration: 671B total parameters, roughly 37B active per inference step, reaching frontier-class capability at a fraction of the compute cost.
图 1:稀疏 MoE 的一次前向 —— 路由器只选 top-k 个专家参与计算,但所有专家的权重都必须常驻内存。Fig. 1 — One forward pass through a sparse MoE layer: the router activates only top-k experts, yet every expert's weights must stay resident in memory.
2. 最贵的直觉陷阱:激活参数 ≠ 显存
2. The expensive intuition trap: active params ≠ VRAM
This is the most common and most expensive misjudgment in self-hosting MoE. Seeing "49B active," people instinctively size hardware like a 49B dense model — roughly 100 GB in BF16, comfortably two 80 GB cards. But at inference any expert may be routed to, so every expert's weights must stay resident. 1.6T total parameters is on the order of 3 TB of weights in BF16, still ~1.6 TB in FP8, before KV cache and activations. That is a multi-node cluster, not a workstation.
量化的经验值:业界普遍观察到,MoE 模型的显存占用大约是同等能力稠密模型的 4~14 倍。换句话说,MoE 用「内存换算力」——你省下的是 FLOPs 和延迟,付出的是容量。Rule of thumb:A MoE-based model typically consumes roughly 4× to 14× more memory than its dense counterpart of comparable quality. MoE trades memory for compute: you save FLOPs and latency, you pay in capacity.
这带来一个反直觉的结论:MoE 让「同样的钱买到更强的模型」在云端 API 上成立,但在自托管上不一定成立。API 厂商用高并发把庞大的权重摊薄到成千上万个请求上;你自己跑一个 QPS 个位数的内部服务,那 3TB 权重就是纯粹的固定成本。
The counter-intuitive consequence: MoE's "more capability per dollar" holds for cloud APIs but not automatically for self-hosting. API providers amortize those enormous weights across thousands of concurrent requests. If you run an internal service at single-digit QPS, those 3 TB of weights are pure fixed cost.
⚠️ These are order-of-magnitude estimates, not a capacity plan. Real numbers depend heavily on expert sharding strategy, KV-cache quantization, and tensor-parallel layout — always measure on your actual serving engine.
A structural fact about 2026: nearly every flagship open-weight model is a sparse MoE. Specs as compiled by third-party trackers (total / active):
模型
总参 / 激活参
许可
备注
DeepSeek V4-Pro
1.6T / 49B
MIT
SWE-bench Verified ≈ 80.6%;1M 上下文;V4-Pro-0813 于 8/13 GA
Mistral Large 3
675B / 41B
—
Mistral Small 4 面向 2 卡部署
Llama 4 Maverick
400B / 17B
—
激活参数比例极低
Qwen 3.5
397B / 17B
—
Qwen3.8 Max 于 8/2 发布
DeepSeek V4-Flash
—
MIT
宣称把近前沿能力带到 2 卡配置
Model
Total / active
License
Notes
DeepSeek V4-Pro
1.6T / 49B
MIT
≈80.6% SWE-bench Verified; 1M context; V4-Pro-0813 GA on Aug 13
Mistral Large 3
675B / 41B
—
Mistral Small 4 targets 2-GPU setups
Llama 4 Maverick
400B / 17B
—
Very low active-parameter ratio
Qwen 3.5
397B / 17B
—
Qwen3.8 Max shipped Aug 2
DeepSeek V4-Flash
—
MIT
Claims near-frontier quality on 2-GPU deployments
数据可信度提示:上表的分数与参数来自第三方聚合站点(llm-stats、模型对比博客等),不是官方模型卡。榜单口径(是否用 agent harness、是否多次采样取最优)差异极大,做选型决策前请回到官方发布页与你自己的私有评测集。Confidence note:These figures come from third-party aggregators (llm-stats, comparison blogs), not official model cards. Benchmark methodology varies enormously — agent harness or not, best-of-n or not. Before deciding anything, go back to official release pages and your own private eval set.
被反复引用的一句判断是:开源与闭源的能力差距「现在是以单个 benchmark 分点、而不是以代际来衡量的」。这句话在编码这一个维度上有数据支撑(SWE-bench Verified 上 80.6% vs 80.8%),但把它推广到长上下文推理、工具调用可靠性、多语种、安全对齐等维度是没有依据的。选型时要问的是「在我的任务上差多少」。
The widely quoted line is that the open-versus-closed gap "is now measured in single benchmark points, not generations." That is defensible on coding specifically (80.6% vs 80.8% on SWE-bench Verified), but generalizing it to long-context reasoning, tool-calling reliability, multilingual quality, or safety alignment is unsupported. The question that matters is: how large is the gap on your task.
4. 怎么部署:专家并行与服务栈
4. How to serve it: expert parallelism and the stack
General-purpose LLM serving cannot handle expert routing efficiently, so both vLLM and TensorRT-LLM have been adding MoE-specific work since 2025: fused MoE kernels, FlashInfer integration with kernel autotuning, and expert parallelism (EP) — distributing distinct experts across GPUs rather than slicing every layer as tensor parallelism does.
Tensor parallelism (TP): split a layer's matrices across GPUs. Communication-heavy; wants fast interconnect (NVLink) within a node.
Pipeline parallelism (PP): put different layers on different GPUs and stream through. Cross-node friendly, but introduces pipeline bubbles.
Expert parallelism (EP): MoE-specific. Different experts live on different GPUs; after routing, an all-to-all shuffles tokens to the right device and back. Load balancing is the hard part — if routing persistently favors a few experts, those GPUs become the bottleneck while the rest idle.
低显存路线:把 MoE 当「工作集」问题
The low-memory route: treat MoE as a working-set problem
If you simply do not have a cluster, the research literature offers usable directions, all sharing one idea: since only a few experts fire per step, not every expert needs to sit in GPU memory.
FloE (arXiv:2505.05950): on-the-fly MoE inference on memory-constrained GPUs.
eMoE (arXiv:2503.06823): task-aware memory-efficient MoE inference, exploiting task-level predictability of routing to prefetch experts.
WiSP (arXiv:2606.21868): models expert scheduling as a working-set problem for extremely low-resource hardware.
Intra-expert activation sparsity (arXiv:2605.08575): extends vLLM's fused MoE pipeline to exploit sparsity inside each expert.
代价要说清楚:所有「专家换入换出」方案本质是用 PCIe/CPU 内存带宽换 GPU 显存。它们能让模型跑起来,但单请求延迟通常显著变差,且对突发路由模式敏感。适合离线批处理与个人实验,不适合面向用户的低延迟在线服务。Be honest about the cost:Every expert-offloading scheme trades PCIe/host-memory bandwidth for GPU VRAM. They make the model run, but per-request latency usually degrades sharply and they are sensitive to bursty routing patterns. Good for offline batch and personal experimentation; not for user-facing low-latency serving.
5. 什么场景该自托管:一棵决策树
5. When self-hosting wins: a decision tree
图 2:自托管 MoE 的决策树 —— 合规是硬门槛,利用率是经济门槛,评测差距是质量门槛。Fig. 2 — Decision tree for self-hosting MoE: compliance is the hard gate, utilization is the economic gate, eval gap is the quality gate.
Control and stability: you pin the model version, so upstream silent upgrades cannot change behavior — valuable for teams with a large investment in prompts and evals.
6. 常见坑与反模式
6. Common pitfalls and anti-patterns
坑 1:按激活参数买卡。最贵的一个错误,见第 2 节。规划容量永远看总参数。Pitfall 1: sizing hardware by active parameters.The single most expensive mistake — see §2. Always plan capacity against total parameters.
坑 2:用榜单分数代替自己的评测。SWE-bench Verified 上差 0.2 分,不代表在你的领域数据、你的工具调用格式、你的中文长文档上也只差 0.2 分。自建 100~300 条的私有评测集是自托管决策的前置条件,不是可选项。Pitfall 2: substituting leaderboards for your own evals.A 0.2-point gap on SWE-bench Verified says nothing about your domain data, your tool-call format, or your long documents. A private eval set of 100–300 cases is a prerequisite for this decision, not an optional extra.
坑 3:忽视专家负载不均。EP 部署下,路由分布偏斜会让少数 GPU 成为瓶颈。上线后必须监控 per-expert 的 token 分配直方图,而不是只看总体 GPU 利用率——后者可能看着「不高」,其实是有几张卡在等另外几张。Pitfall 3: ignoring expert load imbalance.Under expert parallelism, skewed routing turns a few GPUs into bottlenecks. Monitor the per-expert token-assignment histogram, not just aggregate GPU utilization — aggregate can look "low" when in fact most cards are waiting on a few.
坑 4:把 offloading 方案用在在线服务上。FloE / eMoE / WiSP 这类工作让「能跑」成为可能,但单请求延迟代价很大。别拿它当低延迟在线服务的方案。Pitfall 4: putting offloading schemes behind a latency SLA.FloE / eMoE / WiSP make it possible to run at all, but at a steep per-request latency cost. Do not treat them as a low-latency serving solution.
好做法:先租后买。在决定采购之前,用云上按小时的 GPU 把你的真实流量重放一周,拿到实测吞吐、P95 延迟与专家负载分布。这一周的租金,比一次买错集群便宜两个数量级。Good practice: rent before you buy.Before any purchase, replay a week of real traffic on hourly cloud GPUs and collect measured throughput, P95 latency, and expert load distribution. A week of rental is two orders of magnitude cheaper than one wrong cluster.