Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added FSDP examples with Neps #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

gopaljigaur
Copy link
Collaborator

This pull request includes additions of NePS examples that introduce integrations of native PyTorch and PyTorch Lightning alongwith FSDP (Fully Sharded Data Parallel).

New example scripts:

  • neps_examples/efficiency/pytorch_lightning_fsdp.py: Added a new example script demonstrating the use of PyTorch Lightning with FSDP strategy. This script includes the definition of a LanguageModel class, an evaluate_pipeline function, and the setup for running NEPS with a specified pipeline space.
  • neps_examples/efficiency/pytorch_native_fsdp.py: Added a new example script demonstrating the use of native PyTorch with FSDP strategy. This script includes the setup for distributed training, model definition, training and testing functions, and the setup for running NEPS with a specified pipeline space.

Path update:

@gopaljigaur gopaljigaur changed the title added FSDP examples with Neps docs: added FSDP examples with Neps Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant