pytorch-fsdp

Configure PyTorch FSDP training with sharding, mixed precision, and CPU offloading.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/davpatel605-beep/hermusagent --skill pytorch-fsdp-davpatel605-beep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytorch-fsdp
Source: https://github.com/davpatel605-beep/hermusagent/tree/main/backend/vendor/hermes/optional-skills/mlops/pytorch-fsdp
Command: npx skills add https://github.com/davpatel605-beep/hermusagent --skill pytorch-fsdp-davpatel605-beep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps engineers overcome the memory and performance challenges of training large neural networks by providing expert guidance on PyTorch Fully Sharded Data Parallel workflows.

Core Features & Use Cases

  • Distributed Training Guidance: Explains FSDP parameter sharding, mixed precision, CPU offloading, and FSDP2 migration patterns for large-scale model training.
  • PyTorch Distributed Expertise: Covers process groups, communication backends, collective operations, and debugging strategies for distributed workloads.
  • Use Case: Help a machine learning engineer configure and troubleshoot a multi-GPU training setup for a large transformer model using PyTorch FSDP.

Quick Start

Ask the pytorch-fsdp skill to help configure FSDP training for my large PyTorch model with optimized sharding and mixed precision.

Frequently Asked Questions about pytorch-fsdp

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

FAQPage Schema
How do I configure PyTorch FSDP for large-scale distributed training?

PyTorch FSDP reduces memory usage by sharding model parameters across GPUs during distributed training, providing expert guidance on mixed precision, CPU offloading, and process groups to optimize large-scale model performance.

What is parameter sharding in PyTorch fully sharded data parallel?

Parameter sharding in PyTorch fully sharded data parallel distributes model parameters across processes to reduce per-GPU memory usage, requiring knowledge of PyTorch distributed APIs and process groups to maintain scalable training workflows.

How do I migrate to FSDP2 in PyTorch?

Migrating to FSDP2 in PyTorch involves applying updated fully sharded data parallel patterns to your distributed training workflows, leveraging the newer architecture to improve scalability and streamline large-scale model training configurations.

Does PyTorch FSDP support mixed precision and CPU offloading?

Yes, PyTorch FSDP supports both mixed precision training and CPU offloading to further reduce GPU memory constraints, allowing machine learning engineers to scale massive transformer models across distributed environments efficiently.

What's the best way to troubleshoot distributed communication in PyTorch FSDP?

Troubleshooting distributed communication in PyTorch FSDP involves debugging collective operations and communication backends within process groups, utilizing PyTorch distributed APIs to identify and resolve multi-GPU training bottlenecks.