arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.21603cs.DCcs.LG
收藏

DynaFlow: 通过可编程操作调度实现透明且灵活的设备内并行性

DynaFlow: Transparent and Flexible Intra-Device Parallelism via Programmable Operator Scheduling

University of Washington(华盛顿大学);Shanghai Jiao Tong University(上海交通大学)

Yi Pan, Yile Gu, Jinbin Luo, Yibo Wu, Ziren Wang, Hongtao Zhang, Ziyi Xu, Shengkai Lin, Baris Kasikci, Stephanie Wang

AI总结:

本文提出DynaFlow框架,通过解耦逻辑模型定义与物理执行调度,实现设备内并行性的透明和灵活集成,从而提升ML系统的吞吐量。

摘要:

设备内并行性通过重叠不同资源使用量的操作执行来解决ML推理和训练中的资源利用率问题。然而,其广泛应用受到现有框架静态顺序编程模型的根本冲突的阻碍。整合这些策略需要侵入性的、模型特定的代码重构,代表了不可行的工程成本。此外,策略对执行环境的高度敏感性(例如工作负载、模型架构、硬件)迫使开发者实现和维护多个专用解决方案。为此,我们提出了DynaFlow,一个框架,通过解耦逻辑模型定义与物理执行调度,实现设备内并行性的透明和灵活集成。DynaFlow引入了灵活的前端,带有用于图划分的注解和可编程接口,用于定义自定义的设备内并行性策略。其高效的后端管理复杂的控制/数据流异步执行,使用自定义内存管理消除复制开销,并保持与优化如CUDA Graphs和TorchInductor的兼容性。我们证明DynaFlow可以将代表性的并行性策略集成到6种最先进的ML系统中,通过最小的代码更改,实现高达1.29倍的吞吐量提升。DynaFlow在https://github.com/uw-syfi/DynaFlow上公开可用。

英文摘要:

Intra-device parallelism addresses resource under-utilization in ML inference and training by overlapping the execution of operators with different resource usage. However, its wide adoption is hindered by a fundamental conflict with the static, sequential programming model of existing frameworks. Integrating these strategies requires invasive, model-specific code overhauls, representing an intractable engineering cost. This is further amplified by the high sensitivity of strategies to execution contexts (e.g., workload, model architecture, hardware), forcing developers to implement and maintain multiple specialized solutions. To address this, we propose DynaFlow, a framework that enables the transparent and flexible integration of intra-device parallelism by decoupling the logical model definition from the physical execution schedule. DynaFlow introduces a flexible frontend with annotations for graph partitioning and a programmable interface for defining custom intra-device parallelism strategies. Its efficient backend manages complex control/data-flow asynchronously, uses custom memory management to eliminate copy overheads, and preserves compatibility with optimizations like CUDA Graphs and TorchInductor. We demonstrate that DynaFlow can integrate representative parallelism strategies into 6 state-of-the-art ML systems with minimal code changes, achieving up to a 1.29x throughput improvement. DynaFlow is publicly available at https://github.com/uw-syfi/DynaFlow.

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

↑