distributed-training
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "distributed-training":https://skillpi.com/zh/skills/deepskill-fe25780435a06e3963132132d096cb9cfde02f485355952f698a33fd7e4645f0。安装前核对上游来源和版本:https://github.com/omer-metin/skills-for-antigravity。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于在跨多个 GPU 或节点训练模型、处理无法放入单机内存的超大模型或提升训练吞吐量的场景。涵盖分布式数据并行(DDP)、分布式模型并行(如 FSDP)、DeepSpeed ZeRO、模型/数据并行策略以及梯度检查点等技术。
介绍来源: third_party · omer-metin · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: distributed-training
description: Distributed Training OptimizationDistributed Deep Learning Mechanics
Ring All-Reduce
Synchronous data parallel training requires gradients from all GPUs to be averaged before the optimizer step. Instead of a parameter server bottleneck, Ring All-Reduce organizes N GPUs into a logical ring. The gradient tensors are split into N chunks. During the scatter-reduce phase, GPUs pass chunks around the ring, accumulating sums. After N-1 steps, each GPU holds one fully accumulated chunk. In the subsequent all-gather phase, these complete chunks are circulated. Total network transfer per GPU is 2(N-1)/N Size, making it bandwidth-optimal and highly scalable.
ZeRO Optimizer (Zero Redundancy Optimizer)
Standard Data Parallelism duplicates the entire model state across all GPUs, which is impossible for LLMs like GPT-3. ZeRO eliminates this memory redundancy by partitioning the state.
- ZeRO Stage 1: Partitions Optimizer States (e.g., Adam momentum/variance). Cuts memory footprint by 4x.
- ZeRO Stage 2: Partitions Gradients. Each GPU only holds gradients for its parameter partition, reducing memory by 8x.
- ZeRO Stage 3: Partitions Parameters. Model weights are scattered. Forward/backward passes use dynamic collective communications (All-Gather) to fetch required parameters just-in-time for a layer's computation, and immediately discard them, allowing training of trillion-parameter models.
flowchart TD
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
subgraph CommunicationRingAllReducePhase ["Ring All-Reduce Phase<br><br><br>"]
GPU_0 -->|"send_chunk()"| GPU_1
GPU_1 -->|"accumulate()"| GPU_2
GPU_2 -->|"forward()"| GPU_0
end
subgraph ZeROStagesZeROPartitioning ["ZeRO Partitioning<br><br><br>"]
Stage1 -->|"partition_adam()"| MemorySave
Stage2 -->|"partition_grads()"| ReduceScatter
Stage3 -->|"partition_weights()"| AllGather
end当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对分布式训练这一深度学习领域的高频刚需场景
- 涵盖DDP、FSDP、DeepSpeed ZeRO、模型/数据并行以及梯度检查点技术等主流方案
亮点
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触或漏触
亮点
- Phase/步骤清晰,有出口条件
- 含端到端示例,frontmatter完整
亮点
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。