huggingface / accelerate

🚀 A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration, automatic mixed precision (including fp8), and easy-to-configure FSDP and DeepSpeed support
https://huggingface.co/docs/accelerate
Apache License 2.0
7.96k stars 968 forks source link

Error on save_steps using FSDP #2013

Closed ghost closed 1 year ago

ghost commented 1 year ago

System Info

I am currently using the FSDP (Fully Sharded Data Parallelism) approach with the Llama 2 70B model. The training process has begun, but I encounter an error when attempting to save the checkpoint at each save_step. I have set the save_step as 50.

System: 1 Node with 2 A100 80 GB GPU

Information

Tasks

Reproduction

Here are the supporting screenshots

MicrosoftTeams-image (1)

MicrosoftTeams-image (2)

Expected behavior

Checkpoint will be save.

pacman100 commented 1 year ago

This seems to be an error with PyTorch. Could you please raise an issue with them?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.