DINO icon indicating copy to clipboard operation
DINO copied to clipboard

Does this project require a lot of RAM and video memory resources?

Open zhaofh1115 opened this issue 2 years ago • 7 comments

Does this project require a lot of RAM and video memory resources? I'm using 11GB video memory, batch_size=2, and I get an error: CUDA out of memory. It only works when I set batch_size to 1. In addition, I trained with 3 gpus simultaneously, batch_size = 1, RAM of 32G, and after two epochs of training, the program was still killed by the system due to lack of RAM

zhaofh1115 avatar Aug 15 '22 01:08 zhaofh1115

The Transformer arch is GPU-mem cost. You may need GPUs with more memory. For the RAM, it seems like 32GB is not enough. One way to alleviate this is to use small input images. We use max=1333 by default.

SlongLiu avatar Aug 15 '22 02:08 SlongLiu

Ok, thank you for your reply

zhaofh1115 avatar Aug 15 '22 02:08 zhaofh1115

Could you please tell me how much memory this project needs to run at most?

zhaofh1115 avatar Aug 15 '22 02:08 zhaofh1115

Around 15G mem is enough for batchsize 2.

FengLi-ust avatar Aug 15 '22 03:08 FengLi-ust

Sorry, I meant RAM

zhaofh1115 avatar Aug 15 '22 04:08 zhaofh1115

I also have this problem at present, it seems that 32G is only enough for the model to run three epochs. What is the minimum RAM required?

lixing-can avatar Feb 14 '23 01:02 lixing-can

I also have this problem at present, it seems that 32G is only enough for the model to run three epochs. What is the minimum RAM required?

I don't know if this useful, but maybe for reference Optimizing Resource for training DINO

meirashaf avatar Jun 25 '24 10:06 meirashaf