FloE:内存受限 GPU 上的即时 MoE 推理
FloE: On-the-Fly MoE Inference on Memory-constrained GPU
AI总结:
针对内存受限 GPU 上 MoE 推理的专家加载带宽瓶颈,提出 FloE,通过压缩专家参数矩阵并结合稀疏预测,实现低显存部署与显著推理加速。
摘要:
随着 Mixture-of-Experts(MoE,混合专家)模型的广泛采用,在内存受限设备上进行高效推理的需求日益增长。尽管将专家参数卸载到 CPU 内存并按需加载激活专家已成为一种潜在解决方案,但激活专家的庞大规模给有限的 PCIe 带宽带来沉重负担,妨碍了其在延迟敏感场景中的有效性。为缓解这一问题,我们提出 FloE,这是一个在内存受限 GPU 上运行的即时 MoE 推理系统。FloE 基于如下洞察:稀疏激活的专家内部存在大量尚未利用的冗余。它对专家内部参数矩阵采用多种压缩技术,以减少数据移动负载,并结合低成本稀疏预测,在资源受限设备上实现了可感知的挂钟时间推理加速。实验表明,FloE 在 Mixtral-8x7B 中实现了每个专家 9.3 倍的参数压缩;使其能够部署在仅有 11GB VRAM 的 GPU 上,将内存占用最多降低 8.5 倍;并且在单张 GeForce RTX 3090 上相比 DeepSpeed-MII 实现 48.7 倍的推理加速——所有这些仅带来 4.4%–7.6% 的平均性能下降。
英文摘要:
With the widespread adoption of Mixture-of-Experts (MoE) models, there is a growing demand for efficient inference on memory-constrained devices. While offloading expert parameters to CPU memory and loading activated experts on demand has emerged as a potential solution, the large size of activated experts overburdens the limited PCIe bandwidth, hindering the effectiveness in latency-sensitive scenarios. To mitigate this, we propose FloE, an on-the-fly MoE inference system on memory-constrained GPUs. FloE is built on the insight that there exists substantial untapped redundancy within sparsely activated experts. It employs various compression techniques on the expert's internal parameter matrices to reduce the data movement load, combined with low-cost sparse prediction, achieving perceptible inference acceleration in wall-clock time on resource-constrained devices. Empirically, FloE achieves a 9.3x compression of parameters per expert in Mixtral-8x7B; enables deployment on a GPU with only 11GB VRAM, reducing the memory footprint by up to 8.5x; and delivers a 48.7x inference speedup compared to DeepSpeed-MII on a single GeForce RTX 3090 - all with only a 4.4$\%$ - 7.6$\%$ average performance degradation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。