pytorch-fsdp

Configure and debug PyTorch FSDP distributed training with Torch 2.x.

150|25|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Devsoul2026/Hermes-One-Click --skill pytorch-fsdp-devsoul2026
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytorch-fsdp
Source: https://github.com/Devsoul2026/Hermes-One-Click/tree/main/hermes-agent/optional-skills/mlops/pytorch-fsdp
Command: npx skills add https://github.com/Devsoul2026/Hermes-One-Click --skill pytorch-fsdp-devsoul2026

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Expert guidance for configuring and optimizing Fully Sharded Data Parallel (FSDP) training in PyTorch, including per-parameter sharding, mixed precision, CPU offloading, and FSDP2 workflows to enable training of large models.

Core Features & Use Cases

  • Guidance on setting up FSDP across single and multi-node clusters with modern PyTorch (2.x) APIs.
  • Techniques for parameter sharding, gradient reduction, mixed precision, and CPU offloading to optimize memory and throughput.
  • Use cases spanning large language models, vision transformers, and other memory-intensive architectures in distributed environments.

Quick Start

Launch a PyTorch training script with FSDP enabled across multiple GPUs, ensuring a matching device mesh and proper initialization.

Frequently Asked Questions about pytorch-fsdp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up PyTorch FSDP for distributed training across multiple GPUs?

To set up PyTorch FSDP for distributed training, configure a matching device mesh and ensure proper initialization when launching your training script across multiple GPUs using modern PyTorch 2.x APIs.

What is parameter sharding and how does it help with large model training?

Parameter sharding in distributed training splits model parameters across GPUs to optimize memory usage and enable training of large models that would otherwise exceed single-device memory limits.

Can I use CPU offloading with mixed precision in PyTorch distributed training?

Yes, you can use CPU offloading alongside mixed precision in PyTorch distributed training to optimize memory and throughput when working with memory-intensive architectures like large language models.

Does PyTorch FSDP2 support multi-node training for vision transformers?

PyTorch FSDP2 workflows support multi-node training setups for vision transformers and other memory-intensive architectures across distributed environments using Linux or macOS Python environments with Torch 2.x.

Why does my PyTorch FSDP training fail during gradient reduction?

PyTorch FSDP training failures during gradient reduction often stem from mismatched device meshes or improper initialization, requiring careful setup of parameter sharding and gradient reduction techniques.

What's the best way to scale PyTorch training with FSDP across multi-node clusters?

The best way to scale PyTorch training with FSDP across multi-node clusters is to use modern PyTorch 2.x APIs for per-parameter sharding, mixed precision, and CPU offloading to optimize memory and throughput.