Large-scale training now fails every few hours, and most failures take out a single GPU or host. In the configuration common at scale, the weights are replicated, but the optimizer state exists only once, split across GPUs with no second copy, so each failure destroys a shard of it. Existing recovery rolls back to a checkpoint, keeps a full extra copy of the state, or gives up training progress. In this paper, we ask how much of the optimizer state training actually needs to survive a failure. We measure the lag, the number of steps training falls behind a run without the failure. Against the redundant bits kept per parameter, the lag shows a sharp knee between 0.05 and 0.5 bits. We trace the knee to the direction and the scale that the lost state supplies to each update. Keeping one sum of the second moment per row and per column, plus a 4-bit momentum for the hottest 10% of rows, recovers nearly all of the damage. A per-row model built on this view predicted, before the runs, how much keeping the momentum of different rows helps, and the same view carries over to Muon and Adafactor. We present HalfBit, which keeps only these statistics on a GPU of another host, at 0.46 bits per parameter or 1/209 of a full copy, and rebuilds the lost shard after a failure. HalfBit keeps each failure to 2 to 3 steps of lag without rollback, against 100 steps of rollback on average for checkpointing every 200 steps. It adds an estimated 0.04% to 0.16% per-step overhead for an 8B model on H100 GPUs and no CPU memory.


翻译:暂无翻译

0
下载
关闭预览

相关内容

Agent+Copilot:大模型在智能运维领域的应用
专知会员服务
60+阅读 · 2024年8月11日
TF1 到 TF2, 你的在线推理很可能内存爆炸
AINLP
12+阅读 · 2020年6月1日
以BERT为例,如何优化机器学习模型性能?
专知
10+阅读 · 2019年10月3日
GPU 显存不足怎么办?
AINLP
13+阅读 · 2019年8月16日
Colab 免费提供 Tesla T4 GPU,是时候薅羊毛了
机器之心
10+阅读 · 2019年4月25日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
11+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
10+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
6+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
10+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
17+阅读 · 11月25日
相关VIP内容
Agent+Copilot:大模型在智能运维领域的应用
专知会员服务
60+阅读 · 2024年8月11日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员