Skip to content

Example of using Epochraft to train HuggingFace transformers models with PyTorch FSDP

License

Notifications You must be signed in to change notification settings

turingmotors/epochraft-hf-fsdp

 
 

Repository files navigation

epochraft-hf-fsdp

GitHub license Checks status

Example of using Epochraft to train HuggingFace transformers models with PyTorch FSDP

Quick start

pip install -e .
python train.py gpt2_testrun.yaml  # 1 GPU
torchrun --nproc-per-node=8 train.py gpt2_testrun.yaml  # 8 GPUs

Development

pip install -e .[development]
mypy .; black .; flake8 .; isort .

About

Example of using Epochraft to train HuggingFace transformers models with PyTorch FSDP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%