为复杂多模态训练设计高效可扩展的强化学习框架
WeChat-YATT: A Scalable, Simple, Efficient, and Production Ready Training Library
- 采用并行控制器架构,灵活调度复杂RLHF流程
- 动态资源分配使GPU利用率显著提升,闲置时间减少
- 已在微信大规模产品训练中落地,兼具效率与稳定性
强化学习人类反馈(RLHF)已成为训练大语言模型和多模态系统的重要范式。尽管现有框架取得进展,但在应对复杂多模态工作流和动态负载时仍面临挑战,尤其体现在控制器扩展性不足与流水线调度效率低下。本文提出WeChat-YATT(Yet Another Transformer Trainer in WeChat),一个简洁、可扩展且面向生产环境的RLHF训练框架。其采用并行控制器编程模型,有效缓解集中式控制器瓶颈,支持大规模数据场景下的高效编排。同时提出动态资源分配策略,根据训练负载自适应划分计算资源,显著降低硬件空闲时间,提升不同条件下的GPU利用率。在多样化实验中,WeChat-YATT相较当前最优框架实现显著吞吐量提升。该框架已成功部署于微信产品模型训练,服务大规模用户需求,验证了其真实场景下的有效性与鲁棒性。代码已开源:https://www.github.com/tencent/WeChat-YATT。
原文摘要 · Abstract (English)
Reinforcement Learning from Human Feedback (RLHF) has emerged as a prominent paradigm for training large language models and multimodal systems. Despite the notable advances enabled by existing RLHF training frameworks, significant challenges remain to scale to complex multimodal workflows and adapt to dynamic workloads. In particular, current systems often encounter limitations related to controller scalability when managing large models, as well as inefficiencies in orchestrating intricate RLHF pipelines, especially in scenarios that require dynamic sampling and resource allocation. In this paper, we introduce WeChat-YATT Yet Another Transformer Trainer in WeChat, a simple, scalable, and balanced RLHF training framework specifically designed to address these challenges. WeChat-YATT features a parallel controller programming model that enables flexible and efficient orchestration of complex RLHF workflows, effectively mitigating bottlenecks associated with centralized controller architectures and facilitating scalability in large-scale data scenarios. In addition, we propose a dynamic placement schema that adaptively partitions computational resources and schedules workloads, thereby significantly reducing hardware idle time and improving GPU utilization under variable training conditions. We evaluate WeChat-YATT across diverse experimental scenarios, demonstrating its substantial throughput improvements over state-of-the-art RLHF training frameworks. Furthermore, WeChat-YATT has been successfully deployed to train models that support WeChat product features for a large-scale user base, underscoring its effectiveness and robustness in real-world applications. We have made WeChat-YATT publicly available at https://www.github.com/tencent/WeChat-YATT.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。