MiniGPT-4 icon indicating copy to clipboard operation
MiniGPT-4 copied to clipboard

How to use deep speed inference start MiniGPT-4 on low GPU memory hardware?

Open yt7589 opened this issue 3 years ago • 2 comments

I had run the MiniGPT-4 on Nvidia T4 which has 16G memory. I could upload picture. But when I asked question about this picture it reported CUDA out of memory. I want to use deep speed inference tech to run MiniGPT-4. Because deep speed inference can offload the parameters to CPU memory and swap to GPU memory when necissary. I had write a shell to use deep speed to start inference, a deep speed configuration file, a initialize method to invoke deep speed. But it failed to start correctly. Who can tell to how to do?

yt7589 avatar Apr 22 '23 11:04 yt7589

I also want to learn how to use Deepspeed.

zzhanghub avatar Apr 23 '23 02:04 zzhanghub

I want to learn, too T^T

Xinzhe-Ni avatar May 05 '23 07:05 Xinzhe-Ni