arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.12407cs.DCcs.LG
收藏

面向高效且容错异构执行的流批模型

Ray Data: A dynamic and scalable system for heterogeneous data processing

UC Berkeley(加州大学伯克利分校);University of Washington(华盛顿大学);Anyscale
Frank Sifei Luan, Ron Yifeng Wang, Yile Gu, Ziming Mao, Charlotte Lin, Amog Kamsetty, Hao Chen, Cheng Su, Balaji Veeramani, Scott Lee, SangBin Cho, Clark Zinzow… 展开作者

Frank Sifei Luan, Ron Yifeng Wang, Yile Gu, Ziming Mao, Charlotte Lin, Amog Kamsetty, Hao Chen, Cheng Su, Balaji Veeramani, Scott Lee, SangBin Cho, Clark Zinzow, Eric Liang, Ion Stoica, Stephanie Wang

AI总结:

针对传统分布式数据处理系统异构资源利用率低、故障开销高的问题,提出融合批处理与流处理的流批模型,推出的Ray Data系统显著提升了异构推理流水线吞吐量与多模态模型训练效率。

摘要:

尽管机器学习模型训练与推理均为GPU密集型任务,但基于CPU的数据处理往往是性能瓶颈。基于批处理或流处理模型的分布式数据处理系统均假设资源需求是同构的。它们擅长基于CPU的计算,但要么未充分利用异构资源,要么在故障和重配置时会产生高昂开销。\n我们提出流批模型,这是批处理与流处理的混合模型,可实现高效且容错的异构执行。其核心思想是以分区作为执行单元以实现弹性,同时允许分区在异构算子之间动态创建并流式传输,从而实现内存高效的流水线处理。我们推出了Ray Data这一流批系统,与传统批处理和流处理系统相比,它将异构批处理推理流水线的吞吐量提升了2.5-12倍。通过利用异构集群,与单节点机器学习数据加载器相比,Ray Data将Stable Diffusion等多模态模型的训练吞吐量提升了31%。

英文摘要:

While ML model training and inference are both GPU-intensive, CPU-based data processing is often the bottleneck. Existing distributed data processing systems assume homogeneous resource requirements. They excel at CPU-based computation but either under-utilize heterogeneous resources or impose high overheads on failure and reconfiguration. We introduce Ray Data, a scalable system for heterogeneous workloads spanning batch inference and ML training. The key idea is to combine dynamic task creation for memory efficiency with dynamic task placement for operator elasticity. Making both decisions dynamically allows the system to adapt to heterogeneous pipelines where the memory and compute requirements per operator are unknown and variable over time. Ray Data addresses two challenges: (1) leveraging dynamic task creation for memory-efficient pipelining, and (2) designing a task placement policy that jointly allocates heterogeneous compute and memory resources to maximize throughput while limiting memory usage. Ray Data improves throughput on heterogeneous batch inference pipelines by 2.6-12$\times$ compared to traditional data processing systems. By leveraging heterogeneous clusters, Ray Data improves end-to-end training time for multimodal models such as Stable Diffusion by 31% compared to popular ML data loaders.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑