跳到主要内容Skip to main content

专家卸载MoE Offload / ncmoe

MoE Offload / ncmoe

  • 硬件与部署Hardware & deployment
  • 第五站 · 跑起来Station 5 · Running It
解决什么问题What problem it solves

对「专家很多但每次只激活一部分」的稀疏模型,把不常用的专家放内存里。For sparse models with many experts where only a few activate per token, keep the rarely-used experts in memory.

这是什么What it is

混合专家(MoE)模型每次推理只激活少数专家,其余权重可放在较慢的存储上按需调取。

A mixture-of-experts (MoE) model activates only a few experts per inference, so the remaining weights can sit on slower storage and be fetched as needed.

为什么需要知道Why it matters

它解释了为什么有些超大模型在单卡上也能跑。因为不是所有权重都同时参与计算。It explains why some very large models run on a single card: not all weights participate at once.

出处Sources
  • llama.cpp CLI 参数文档llama.cpp CLI arguments ↗