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

High memory usage on Llama3-70B full finetune during checkpoint save #1092

Open
ebsmothers opened this issue Jun 14, 2024 · 1 comment
Open
Assignees

Comments

@ebsmothers
Copy link
Contributor

See the discussion on #993. @andyl98 has reported that when running on 8X A100 with 1 TB DRAM they hit CPU OOM during checkpoint save. They also point out that they do not see the OOM without the usage of FullOptimStateDictConfig.

In an ideal world I think we should only need (model params) + (optimizer params) = (70B * 2) + (70B * 2 * 2) = 420 GB in bf16, so seems like the unsharding is being done inefficiently (at least wrt CPU RAM)?

@RdoubleA
Copy link
Contributor

Why not use DCP checkpointing which doesn't require unsharding and prevents CPU OOMs? cc @LucasLLC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants