pytorch-fsdp
Skill này làm gì
Skill cung cấp hướng dẫn FSDP của PyTorch cùng ví dụ tham chiếu để chia mô hình lớn ra nhiều GPU trong lúc huấn luyện. Phù hợp với lập trình viên huấn luyện mô hình quá lớn để nằm trên một GPU.
Khi nào nên dùng
- ✓Khi bạn cần huấn luyện một mô hình quá lớn để vừa trên một GPU.
- ✓Khi bạn muốn các ví dụ về bọc mô hình, chiến lược phân mảnh hoặc checkpoint.
- ✓Khi bạn đang gỡ lỗi một script huấn luyện FSDP.
Liên kết skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mlops/pytorch-fsdp/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi bọc mô hình transformer của tôi bằng FSDP với độ chính xác hỗn hợp, và lưu checkpoint đúng cách.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm các mẫu phù hợp trong các file tham chiếu của skill và điều chỉnh chúng cho code của bạn, thay vì dựa vào trí nhớ. Sau đó agent giúp bạn kiểm tra các thay đổi.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Các ví dụ được lưu ở đâu?
Trong một file tham chiếu mẫu chung mà agent tải khi cần.
Nó có bao quát toàn bộ PyTorch không?
Không. Skill tập trung vào cách dùng và các mẫu FSDP.
Hướng dẫn lấy từ đâu?
Skill nói nó được tạo từ tài liệu chính thức của PyTorch.
Chi tiết
Mô tả gốc của tác giả
Fully sharded data-parallel training for large models.
Độ phổ biến
- Sao GitHub
- 260k
- Vị trí xếp hạng
- #521
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-merge-conflict-arbiter
260kGiải quyết xung đột merge git giữa nhánh của hai agent với vai trò bên trung lập, tạo ra một kết quả merge duy nhất cho repo.
antigravity-cli
260kHướng dẫn bạn cài đặt, cập nhật và khắc phục sự cố công cụ dòng lệnh Antigravity, gồm plugin, đăng nhập và sandbox.
blackbox
260kCho phép agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Blackbox AI, công cụ chạy nhiều mô hình và chọn kết quả tốt nhất.
dynamic-workflow
260kDạy agent của bạn chạy các đợt công việc tương tự lớn như một script đã lưu, để chỉ kết quả đã kiểm chứng mới quay về cuộc trò chuyện chính.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.