-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
GPT-NEO model parallelism not work issue #1209
Comments
Dear @RezaYazdaniAminabadi
If you possible, I request library-level feature that is first loaded into the CPU, applied model parallel, and sent to the gpu for many massive model inference. This improvement feature is more helpful for many deepspeed users thank you |
Hi @switiz Sorry for the late reply. |
@RezaYazdaniAminabadi |
@RezaYazdaniAminabadi
When I inference using gpt-neo 1.3b model with tutorial code. may be model parallelism is not work
I tested several times using multiple A100 gpus. In my opinion, if i increase the number of gpus, memory usage per gpu should be decrease. But it is increasing. ㅠ.ㅜ
And if the number of gpu is increased, host ram consumption increases to process * num_gpus.
So, if the num of gpu is increase continuously, I met host OOM.
What should I do?
code
test result
1gpu
[0] A100-SXM4-40GB | 38'C, 0 % | 7966 / 40537 MB |
2gpu
[0] A100-SXM4-40GB | 40'C, 33 % | 8704 / 40537 MB |
[1] A100-SXM4-40GB | 38'C, 87 % | 8706 / 40537 MB |
4 gpu
[0] A100-SXM4-40GB | 39'C, 50 % | 8318 / 40537 MB |
[1] A100-SXM4-40GB | 37'C, 45 % | 8654 / 40537 MB |
[2] A100-SXM4-40GB | 39'C, 79 % | 8654 / 40537 MB |
[3] A100-SXM4-40GB | 40'C, 34 % | 8352 / 40537 MB |
logs
The text was updated successfully, but these errors were encountered: