docs: added FSDP examples with Neps #194
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 aLanguageModel
class, anevaluate_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:
neps_examples/efficiency/pytorch_native_ddp.py
: Updated the root directory path in therun_pipeline
function to store results in a more organized manner.