Reputation: 2785
I have tried all the ways given on the web but still getting the same error:
OutOfMemoryError: CUDA out of memory. Tried to allocate 78.00 MiB (GPU 0; 6.00 GiB total capacity; 5.17 GiB already allocated; 0 bytes free; 5.24 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
The dataset is a huge text set. No images etc.
I am struggling for last 2 days. I am not able to fix this issue. Can somebody help me out?
Thanks!
Upvotes: 2
Views: 3485
Reputation: 751
It does not matter if there are images or not.
You have a huge dataset. Without the code/dataset in your questions, I can't really give you an answer.
However, what I can think of is:
Upvotes: 1