Q-Align icon indicating copy to clipboard operation
Q-Align copied to clipboard

Full Training from Start:CUDA out of memory.

Open YUANMU227 opened this issue 1 year ago • 3 comments

Hello, great work! I am trying to perform Full Training from Start, but I am running out of GPU memory. How much GPU resources are needed for training?

The repository states: At least 4A6000 GPUs or 2A100 GPUs will be enough for the training.

I am training on 2*A100 GPUs, each with 80GB. However, I still encounter out of memory issues: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 3.82 GiB (GPU 1; 79.15 GiB total capacity; 71.88 GiB already allocated; 3.40 GiB free; 74.46 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

YUANMU227 avatar Sep 19 '24 14:09 YUANMU227

I trained based on iqa_iaa.sh

YUANMU227 avatar Sep 19 '24 14:09 YUANMU227

is it possible to train the q-align using one A100-80G GPU?

dongdk avatar Nov 04 '24 12:11 dongdk

I also encountered this problem, 2 A100s could not be trained

chencn2020 avatar Feb 08 '25 12:02 chencn2020