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

accelerate + deepspeed? #30

Open
alex-ht opened this issue May 16, 2023 · 2 comments
Open

accelerate + deepspeed? #30

alex-ht opened this issue May 16, 2023 · 2 comments

Comments

@alex-ht
Copy link

alex-ht commented May 16, 2023

Hi, I'm interested in running the example found in biencoder/nli_msmarco/scripts/train_bloom7b1.slurm. Is it possible to execute these using accelerate and deepspeed?
I'm planning to experiment with larger models, hence the need for deepspeed zero3.

@Muennighoff
Copy link
Owner

Hey sounds exciting! I have only tried accelerate not accelerate + deepspeed, but I think it should work with deepspeed, too. Let me know how it goes!

@alex-ht
Copy link
Author

alex-ht commented May 19, 2023

I've finished an initial version, but the results are not as promising as expected. The original combination of accelerate and gradcache could achieve nearly 250W GPU utilization, however, after switching to accelerate+deepspeed zero3 and disabling gradcache, the utilization drops to around 110W. I/O operations appear to be taking up most of the time, which might be due to the CPU offload(?).

orignal:
1
deepspeed zero3:
2

here is the source code: https://github.com/alex-ht/sgpt/tree/deepspeed

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