pytorch-fsdp

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

539|39|Updated May 1, 2026
One-click install
npx skills add https://github.com/Tommy-yw/RunbookHermes --skill pytorch-fsdp-tommy-yw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytorch-fsdp
Source: https://github.com/Tommy-yw/RunbookHermes/tree/main/optional-skills/mlops/pytorch-fsdp
Command: npx skills add https://github.com/Tommy-yw/RunbookHermes --skill pytorch-fsdp-tommy-yw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch>=2.0, transformers, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides expert guidance and best practices for optimizing fully sharded data parallel training with PyTorch FSDP, enhancing performance and usability.

Core Features & Use Cases

  • Parameter Sharding: Expert guidance on implementing and optimizing parameter sharding for efficient memory usage.
  • Mixed Precision: Best practices for enabling mixed precision training with FSDP.
  • CPU Offloading: Techniques for utilizing CPU offloading to improve performance.
  • FSDP2 Support: In-depth coverage of the latest FSDP2 features for enhanced usability and performance.
  • Use Case: Suppose you are working on a large-scale machine learning model training with PyTorch. This Skill will guide you on how to effectively use FSDP2 to train your model efficiently with reduced memory usage and improved speed.

Quick Start

Use the pytorch-fsdp skill to learn about the best practices for using FSDP2 with PyTorch for your machine learning model training.

Frequently Asked Questions about pytorch-fsdp

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

FAQPage Schema
How do I optimize PyTorch FSDP parameter sharding for large-scale model training?

To optimize PyTorch FSDP parameter sharding, apply expert sharding strategies for efficient memory usage and enable mixed precision training to reduce memory footprint and improve speed during large-scale model training.

What is the best way to use CPU offloading with PyTorch FSDP?

The best way to use CPU offloading with PyTorch FSDP is to apply targeted offloading techniques that improve performance by managing memory constraints during large-scale machine learning training workflows.

Does PyTorch FSDP2 support mixed precision and CPU offloading for training?

PyTorch FSDP2 supports mixed precision and CPU offloading, offering in-depth features for enhanced usability and performance to train large models efficiently with reduced memory usage.

When do I need fully sharded data parallel training in PyTorch?

You need fully sharded data parallel training in PyTorch when working on large-scale machine learning models that require efficient memory usage and improved speed through parameter sharding and mixed precision.

Can I use Hugging Face transformers with PyTorch FSDP for large-scale training?

Yes, you can use Hugging Face transformers with PyTorch FSDP for large-scale training, as the required environment includes both torch>=2.0 and transformers to support efficient distributed model training.