跳到正文
Hugging Face Blog·· 12 天前精选AI 评分63

Transformers 实现 MoE 专家流式加载,180B 参数模型在 32GB 内存上距 Strata 约 6%

180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers

AI 导读

作者在 Transformers 中实现了 MoE 专家流式加载并提交 PR #50717,使 180B 参数的 Qwen3.8-Flash-Next 在 32GB 内存的 Mac M5 上解码达到 13.9 tok/s,与 Strata 的 14.8 tok/s 相差约 6%,4K prompt 预填充 228 tok/s 略高于 Strata 的 220 tok/s。

推荐理由

文中对比了 llama.cpp、vLLM 与 Transformers 三种 MoE 专家卸载路径的取舍,并给出在 32GB 内存上距 Strata 仅约 6% 的实现做法。

来源:Hugging Face Blog · huggingface.co