Mosaic:迈向多模态模型高效训练的时空资源复用
Mosaic: Towards Efficient Training of Multimodal Models with Spatial Resource Multiplexing
AI总结:
本文提出Apollo系统,通过时空复用方法提升多模态模型训练效率,采用灵活的执行引擎和性能模型生成高质量部署计划,实测训练速度提升达1.31倍。
摘要:
随着多模态模型(MMs)在现实场景中的广泛应用,高效训练日益复杂的多模态模型变得尤为重要。现有方法采用时序复用方式为每个MM模块分配单块GPU,导致训练效率低下,因为单一模块难以实现高GPU利用率。为提高GPU利用率并实现高效MM训练,本文提出采用时空复用方式部署MMs,允许多个MM模块在GPU上共存并受控资源配额。本文提出Apollo,一个高效的MM训练系统,应用时空复用方法。我们首先开发了一个灵活且轻量的执行引擎,支持任意资源配额的MM训练,然后构建了全面且准确的性能模型,以估算不同分配计划下的模块执行时间。利用性能模型,我们进一步采用有效的启发式方法,高效地推导出高质量的MM部署计划。测试床实验证实,Apollo有效提高了流行MMs的训练效率,最大训练加速达1.31倍。
英文摘要:
With the wide adoption of Multimodal Models (MMs) in real-world scenarios, it is significant to efficiently train emerging MMs that exhibit increasingly complex module architectures. For MM deployment, existing works allocate a GPU to only one MM module in a temporal-multiplexing manner; this compromises training efficiency because a single module often fails to achieve high GPU utilization. To improve GPU utilization and enable efficient MM training, we propose deploying MMs in a temporal-spatial multiplexing manner, allowing multiple MM modules to colocate on a GPU with well-controlled resource quotas. In this paper, we propose Apollo, an efficient MM training system that applies temporal-spatial multiplexing. We first develop a flexible and lightweight execution engine that supports MM training with arbitrary resource quotas, and then build a comprehensive and accurate performance model to estimate module execution time under different allocation plans. With the performance model, we further adopt effective heuristics to derive high-quality MM deployment plans efficiently. Testbed experiments confirm that Apollo effectively improves the training efficiency of popular MMs, with a training speedup of up to 1.31x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。