pytorch-fsdp
できること
大規模なモデルを学習中に複数のGPUに分割するための、PyTorch FSDPの指針と参考例を提供します。1つのGPUに収まらないモデルを学習する開発者向けです。
使う場面
- ✓1つのGPUに収まらないほど大きなモデルを学習する必要があるとき。
- ✓ラップ、シャーディング戦略、チェックポイントの例がほしいとき。
- ✓FSDPの学習スクリプトのデバッグをしているとき。
スキルのリンク
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mlops/pytorch-fsdp/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“トランスフォーマーを混合精度の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並行して動く2つのエージェントのブランチ間のgitマージ競合を、中立的な第三者として解決し、リポジトリに1つのマージ結果を作ります。
antigravity-cli
260kAntigravityのコマンドラインツールのインストール、更新、トラブルシューティングをガイドし、そのプラグイン、サインイン、サンドボックスも扱います。
blackbox
260kBlackbox AIのコマンドラインツールに、コーディングのタスクを渡します。このツールは複数のAIモデルを動かし、最も良い結果を選びます。
dynamic-workflow
260k多くの似た作業の大きな束を、保存されたスクリプトとして実行し、検証済みの結果だけをメインの会話に返すようエージェントに教えます。