FlowTrain:面向工业级视觉-语言模型的基于流的解耦训练
FlowTrain: Flow-Based Decoupled Training for Industrial-Grade Vision-Language Models
AI总结:
提出FlowTrain框架,通过生产者-消费者数据流和统一内存池解耦编码器与主干网络训练,采用异构并行分配器和动态打包调度器,实现超过50% MFU和1.7倍吞吐量提升。
摘要:
工业级分布式训练视觉-语言模型(VLM)的效率远低于单模态大语言模型(LLM)。现有解决方案要么采用单体设计,对异构模块分配统一并行度,要么采用分离部署,将模块分开但作为批同步流水线执行。本文强调上述方案仍不够充分,VLM训练可以进一步解耦。为此,我们提出FlowTrain,一个基于流的解耦训练框架,将VLM训练重新表述为通过统一内存池协调的生产者-消费者数据流。编码器和主干网络可以在全局虚拟地址空间上独立推进。由于这种执行解耦从根本上改变了分配和调度的优化目标,FlowTrain进一步引入异构并行分配器,通过解决吞吐量匹配问题来分配模块特定的并行策略。动态打包调度器用于根据实际的LLM侧计算成本在运行时构建平衡的微批次。在真实工作负载上的大量实验表明,FlowTrain实现了超过50%的MFU和高达1.7倍的吞吐量提升,缩小了与仅LLM训练的效率差距。
英文摘要:
Industrial-grade distributed training of vision-language models (VLMs) remains far less efficient than that of unimodal LLMs. Existing solutions either follow a monolithic design that assigns uniform parallelism to heterogeneous modules or adopt a disaggregated deployment that separates modules while executing them as a batch-synchronized pipeline. In this paper, we highlight that the above solutions are still not sufficient, and VLM training can be further decoupled. To this end, we present FlowTrain, a flow-based decoupled training framework that reformulates VLM training as a producer-consumer dataflow coordinated through a unified memory pool. The encoder and backbone can progress independently over a global virtual address space. Since this execution decoupling fundamentally changes the optimization objective of allocation and scheduling, FlowTrain further introduces a heterogeneous parallel allocator that assigns module-specific parallelism strategies by solving a throughput matching problem. The dynamic packing scheduler is used to construct balanced microbatches at runtime according to the actual LLM-side computation cost. Extensive experiments on real-world workloads show that FlowTrain achieves over 50% MFU and up to 1.7x throughput improvement, narrowing the efficiency gap to LLM-only training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。