In modern applications like deep learning and scientific workflows, memory scarcity is a persistent issue. Current task graph scheduling solutions are either case-specific or computationally expensive, thus creating a need for a general, fast, and efficient approach. In this paper, we consider task graph scheduling on architectures with limited shared memory. We design an algorithm that uses carefully maintained memory consumption information; any schedule it returns provably fits in memory. Our memory-aware adaptive scheduling algorithm runs in polynomial time and requires neither a precomputed sequential schedule nor any search. We compare it to MASTAG, the state of the art for scientific workflows, on 341 task graphs. On the 339 where MASTAG's sequential solver returns a schedule, our main task ordering comes within 0.01% of its memory while being 5.5 times faster, on median. On 4 and 8 processors, a small portfolio of variants schedules 63% of the instances under a memory limit equal to the sequential peak of MASTAG, and 95% to 96% under one that exceeds it by less than 0.4% on median. The portfolio is, on median, 7 to 12 times faster than MASTAG, and 2.9 to 4.1 times faster without MASTAG's optional refinement, with makespans within 0.2% to 8.1% of MASTAG's over all limits we test. In training AI foundation models, we achieve up to 1.10x speedup over the default, manually fine-tuned schedule of the MindSpore framework with at most 3.62% more memory, and even memory savings up to 18%. On seven training graphs of large language models with up to 115,528 tasks, our Python implementation computes a sequential schedule in at most 33 seconds. With the time limit of its experiments, MASTAG's sequential solver takes 13 minutes to 2.2 hours on five of them and returns no schedule within a day on the two largest.


翻译:暂无翻译

0
下载
关闭预览

相关内容

综述 | 面向大模型智能体的图结构个性化记忆
专知会员服务
14+阅读 · 9月10日
【ICLR2020-】基于记忆的图网络,MEMORY-BASED GRAPH NETWORKS
专知会员服务
110+阅读 · 2020年2月22日
【斯坦福大学】Gradient Surgery for Multi-Task Learning
专知会员服务
47+阅读 · 2020年1月23日
Graph Neural Networks 综述
计算机视觉life
30+阅读 · 2019年8月13日
Hierarchically Structured Meta-learning
CreateAMind
27+阅读 · 2019年5月22日
Unsupervised Learning via Meta-Learning
CreateAMind
44+阅读 · 2019年1月3日
Image Captioning 36页最新综述, 161篇参考文献
专知
90+阅读 · 2018年10月23日
国家自然科学基金
5+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Arxiv
0+阅读 · 11月26日
Arxiv
0+阅读 · 11月18日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
8+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
6+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
2+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
7+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
7+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
15+阅读 · 11月25日
相关基金
国家自然科学基金
5+阅读 · 2017年12月31日
国家自然科学基金
6+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员