创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

PyTorch 发布 Zephon:弹性确定性数据加载

AI 总结

PyTorch 博客介绍了 Zephon,这是一个为 TorchTitan 提供的训练数据加载器,目标是在改变 GPU 数量后仍产出完全相同的全局批次。文中用 1B 参数模型在 8 至 64 个 GPU 上从零训练 20B token 做对比:使用标准数据加载器时,DCLM Core v1 分数最多相差 0.82 分、FineWeb 分数相差 0.64 分,约为数据筛选方法常用阈值的四倍;换成 Zephon 后分别只有 0.05 和 0.011 分。Zephon 在训练任务内即时完成分词、打包、混洗与数据集混合,靠 lane、单线程累加器和周期性 flush 来复现状态,检查点仅几 MiB,并可在不同数据并行规模上恢复;作者称在视觉语言流水线上其吞吐与 Google Grain 相当。

深度见解

数据配方消融很容易把 GPU 数量带来的差异误当成数据改动的效果,弹性确定性让不同规模下的实验结果可以直接比较。

Why Zephon?

The data that a model sees during training is one of the most powerful levers we have for influencing how well it performs. Much of the day-to-day work of improving a model happens on the data side: we change the mixture, or the filters that we apply, or how we tokenize and pack the samples, and then we run an ablation experiment to see whether the change helped. The first problem with this is that each of these changes often requires us to do a full pass over our training corpus and run expensive offline operations to prepare the data and store it on disk before our ablation experiment can run. Since a typical training run reads through that copy exactly once, and because most experiments don’t end up producing a better model, we spend a lot of time and storage creating datasets that will never be read again.

This matters even more now that experiments can be designed, launched, and interpreted by agents instead of people. Agents are great for running lots of experiments in parallel, but they aren’t especially good at noticing when a result actually depends on something other than the change they made, like the number of GPUs that an experiment happened to run on (in fairness to the agents, humans aren’t great at noticing this either). And with most data loaders, the number of GPUs does change the result, because it changes the data order.

#Zephon#TorchTitan#PyTorch#Google Grain#Mosaic Streaming#Megatron-Energon#Hugging Face#DCLM Core v1#FineWeb#Python 3.14t

原文约 10 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。