跳到正文
原文
Hugging Face Blog·· 15 天前精选AI 评分58

用 Transformers 在 32GB Mac 上跑 180B 参数 MoE 模型

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

AI 导读

作者在 32GB 内存的 MacBook M5 上,用 Transformers 实现了 MoE 专家流式加载,让 Qwen3.8-Flash-Next 这类 180B 参数模型跑起来,短文本解码 13.9 tok/s,与 Strata 的 14.8 tok/s 相差约 6%。

推荐理由

作者实测了四种引擎的 MoE 卸载方式,并给出在 32GB Mac 上流式加载专家的实现路径与逐项优化结果。

社媒成稿工作台 · 一键复制

飞书同步推送 · 含数据/日期/出处/启发
核心数据发布日期信源出处独立开发启发
1539
用 Transformers 在 32GB Mac 上跑 180B 参数 MoE 模型

📊 核心数据与事实(2026-11-18):
作者在 32GB 内存的 MacBook M5 上,用 Transformers 实现了 MoE 专家流式加载,让 Qwen3.8-Flash-Next 这类 180B 参数模型跑起来,短文本解码 13.9 tok/s,与 Strata 的 14.8 tok/s 相差约 6%。
• 原文实测切片:I ran all of them on Qwen3.6-35B-A3B on one A10G (24 GB), with plenty of RAM, and Harry Mellor reran vLLM with better flags: Engine Decode (tok/s) Strata, Q8_0 82 - 88 llama.cpp, Q8_0, --fit on 63 - 64 llama.cpp, BF16, --fit on 35 - 36 vLLM,…
• 原文实测切片:Then I installed Strata on the same M5, with the same prompts: Transformers Strata Gap Decode, 200 tokens 10.0 tok/s 14.8 1.5x Prefill, 4K prompt 68 tok/s 220 3.2x Decode after a 6K document 7.3 tok/s 13.7 1.9x Strata 0.1.60 used IQ3_XXS…
• 原文实测切片:Here's one MoE layer for one token, as it runs now: These are the final results after these optimizations on the same M5 with the same prompts: Transformers Strata Gap Decode, 200 tokens 13.9 tok/s 14.8 1.06x Prefill, 4K prompt 228 tok/s 220…

💡 对独立开发者的启发:
1/ 作者实测了四种引擎的 MoE 卸载方式,并给出在 32GB Mac 上流式加载专家的实现路径与逐项优化结果。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。

📅 日期:2026-11-18(北京时间)
📰 信息源出处:Hugging Face Blog(huggingface.co)
🔗 原文:https://huggingface.co/blog/moe-expert-streaming
📡 归档:https://billionare.me/items/ou2qw1ct6r4tpu9ch6d14hym0
去 X 发推
每天 08:00 邮件 / 08:30 飞书准点推送一手高信噪比情报与拆解免费订阅简报

来源:Hugging Face Blog · huggingface.co