<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Distributed-Training on 111qqz's blog</title><link>https://111qqz.com/en/tags/distributed-training/</link><description>Recent content in Distributed-Training on 111qqz's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hust.111qqz@gmail.com (111qqz)</managingEditor><webMaster>hust.111qqz@gmail.com (111qqz)</webMaster><copyright>© 2011-2026 111qqz</copyright><lastBuildDate>Thu, 22 Oct 2026 19:40:00 +0800</lastBuildDate><atom:link href="https://111qqz.com/en/tags/distributed-training/index.xml" rel="self" type="application/rss+xml"/><item><title>从 DDP 到 ZeRO：为什么分布式训练要对参数、梯度和优化器状态分片？</title><link>https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-22-ddp-to-zero-memory-sharding/</link><pubDate>Thu, 22 Oct 2026 19:40:00 +0800</pubDate><author>hust.111qqz@gmail.com (111qqz)</author><guid>https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-22-ddp-to-zero-memory-sharding/</guid><description>&lt;h2 class="relative group"&gt;起因
 &lt;div id="起因" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e8%b5%b7%e5%9b%a0" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-22-distributed-training-comm-primitives/" &gt;上一篇&lt;/a&gt;搞清楚了 AllReduce、ReduceScatter 和 AllGather 三种通信原语，末尾提到 DDP 和 ZeRO Stage 2 选择了不同的通信原语组合，根本原因是参数更新的责任分配不同。&lt;/p&gt;</description></item><item><title>从 AllReduce 到 Ring：分布式训练中的通信原语</title><link>https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-22-distributed-training-comm-primitives/</link><pubDate>Thu, 22 Oct 2026 19:20:00 +0800</pubDate><author>hust.111qqz@gmail.com (111qqz)</author><guid>https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-22-distributed-training-comm-primitives/</guid><description>&lt;h2 class="relative group"&gt;起因
 &lt;div id="起因" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e8%b5%b7%e5%9b%a0" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;之前几篇文章从&lt;a href="https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-08-17-gpu-memory-mental-model/" &gt;模型显存组成&lt;/a&gt;一路算到 &lt;a href="https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-21-7b-training-memory-ledger/" &gt;7B 模型的训练账本&lt;/a&gt;，结论很直接：BF16 mixed precision + AdamW 的 Model States 就有 112 GB，一张 80 GB A100 连放都放不下。&lt;a href="https://111qqz.com/en/post/%E6%B7%B1%E5%BA%A6%E5%AD%A6%E4%B9%A0/2026-10-21-checkpointing-offloading-tradeoff/" &gt;Checkpointing + Offloading&lt;/a&gt; 两个一起用可以勉强塞进去，但训练速度要被 PCIe 传输和额外重计算拖累。&lt;/p&gt;</description></item></channel></rss>