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

iwiwi/epochraft-hf-fsdp

Repository files navigation

epochraft-hf-fsdp

GitHub license Checks status

Simple example of using Epochraft to train HuggingFace transformers models with PyTorch FSDP.

🌟 News: We are thrilled to announce the release of two new models: Japanese Stable LM Gamma 7B and Japanese StableLM 3B, both trained using our codebase.

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