MiniGPT-4
MiniGPT-4 copied to clipboard
i have two 12GB GPU, and how to use them in model?
fact in here, i have two 12gb GPU, and i can use 13B model in theory, but there are no any note about how to use two GPU to inference, so now i've hit a wall.
I think that multi GPU might not be supported in one session. I would try starting 2 instances with different --gpu-id, so one with 0 one with --gpu-id 1, but in this case you will need 2x as much memory (normal ram). I have never tried this so not sure if it is possible, just my idea.
I have four Titan XP GPUs with 12 GB each, and they work fine for running the Vicuna 13B model. However, I'm having trouble running MiniGPT4 on them and can't find a way to enable multi-GPU support.
I have four Titan XP GPUs with 12 GB each, and they work fine for running the Vicuna 13B model. However, I'm having trouble running MiniGPT4 on them and can't find a way to enable multi-GPU support. yep, that is I whet say.
One more question, does anyone has pre-trained or fine-tuned the minigpt4 model with less than 16GB per GPU memory? I've tried to evaluate model, it seems the gpu memory is enough. But for training in this repo, the GPU 16GB is not enough for me in my local environment.
-------------------------------+ | NVIDIA-SMI 530.30.02 Driver Version: 530.3 0.02 CUDA Version: 12.1 | |-----------------------------------------+-------------- --------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memor y-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+============== ========+======================| | 0 Tesla T4 On | 00000000:00:0 4.0 Off | 0 | | N/A 41C P8 9W / 70W| 2MiB / 1 5360MiB | 0% Default | | | | N/A | +-----------------------------------------+-------------- --------+----------------------+ | 1 Tesla T4 On | 00000000:00:0 5.0 Off | 0 | | N/A 36C P8 9W / 70W| 2MiB / 1 5360MiB | 0% Default | | | | N/A |
@WakingHours-GitHub did you find a way to enable multi GPU inference?