pytorch-fsdp
它能做什么
它提供 PyTorch FSDP 的指导和参考示例,用于在训练期间把大模型拆分到多块 GPU 上。适合训练单块 GPU 装不下的模型的开发者。
适用场景
- ✓你需要训练单块 GPU 装不下的模型的时候。
- ✓你想查看包装、分片策略或检查点示例的时候。
- ✓你在调试 FSDP 训练脚本的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mlops/pytorch-fsdp/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我用混合精度把我的 Transformer 包装到 FSDP 中,并正确保存检查点。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在技能的参考文件中查找匹配的示例,并把它们改写成适合你代码的版本,而不是依赖记忆。然后它帮你检查这些改动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Pytorch-Fsdp Skill
Assistance with pytorch-fsdp development, generated from official documentation.
When to Use This Skill
This skill should be triggered when:
- Working with pytorch-fsdp
- Asking about pytorch-fsdp features or APIs
- Implementing pytorch-fsdp solutions
- Debugging pytorch-fsdp code
- Learning pytorch-fsdp best practices
Quick Reference
The full common-patterns catalog (~157k chars of runnable FSDP snippets) lives in
references/common-patterns.md — load it with read_file when you need wrapping,
sharding-strategy, checkpoint, or mixed-precision examples. Start there rather than
reconstructing FSDP incantations from memory.
Reference Files
This skill includes comprehensive documentation in references/:
- other.md - Other documentation
Use view to read specific reference files when detailed information is needed.
Working with This Skill
For Beginners
Start with the getting_started or tutorials reference files for foundational concepts.
For Specific Features
Use the appropriate category reference file (api, guides, etc.) for detailed information.
For Code Examples
The quick reference section above contains common patterns extracted from the official docs.
Resources
references/
Organized documentation extracted from official sources. These files contain:
- Detailed explanations
- Code examples with language annotations
- Links to original documentation
- Table of contents for quick navigation
scripts/
Add helper scripts here for common automation tasks.
assets/
Add templates, boilerplate, or example projects here.
Notes
- This skill was automatically generated from official documentation
- Reference files preserve the structure and examples from source docs
- Code examples include language detection for better syntax highlighting
- Quick reference patterns are extracted from common usage examples in the docs
Updating
To refresh this skill with updated documentation:
- Re-run the scraper with the same configuration
- The skill will be rebuilt with the latest information
常见问题
这些示例保存在哪里?
保存在通用模式参考文件中,智能体需要时会加载该文件。
它涵盖了 PyTorch 的全部内容吗?
没有。技能专注于 FSDP 的用法和模式。
这些指导来自哪里?
技能说明它是根据 PyTorch 官方文档生成的。
详情
热度
- GitHub 星标
- 260k
- 排名
- #521
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。