跳到正文
Skillpedia
机器学习260k · #521

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mlops/pytorch-fsdp/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Re-run the scraper with the same configuration
  2. The skill will be rebuilt with the latest information
常见问题

这些示例保存在哪里?

保存在通用模式参考文件中,智能体需要时会加载该文件。

它涵盖了 PyTorch 的全部内容吗?

没有。技能专注于 FSDP 的用法和模式。

这些指导来自哪里?

技能说明它是根据 PyTorch 官方文档生成的。

详情

作者的原始描述

Fully sharded data-parallel training for large models.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#521
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能