Skip to content

Avoid OOM using deepspeed zero-stage #47

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

Open
gywlssww opened this issue Jan 16, 2024 · 3 comments
Open

Avoid OOM using deepspeed zero-stage #47

gywlssww opened this issue Jan 16, 2024 · 3 comments

Comments

@gywlssww
Copy link

gywlssww commented Jan 16, 2024

When pruning or continue training, I got OOM error even with batch size 1 & 8 GPUs.
I'm trying to use deepspeed zero stage or FSDP to avoid OOM. However, it seems your code isn't compatible well with deepspeed.
Could you help me with these OOM errors?

@xiamengzhou
Copy link
Contributor

Hi!! The current code supports FSDP as it is, and should be able to run on 8 GPUs. Are you using a separate implementation?

@gywlssww
Copy link
Author

gywlssww commented Jan 21, 2024

I'm stuck with OOM when using only FSDP too. Do I really need to run the code based on slurm?? I think it is okay to run the code based on vanilla composer without slurm.
And also when I use 16 GPUs, gpuutil doesn't rise and only takes up the memory.

@xiamengzhou
Copy link
Contributor

@gywlssww The code can be absolutely run without slurm! Do you mean you still get OOM issues even if you use 16 GPUs for pruning?

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