Categories
Misc

How can I set the max_split_size_mb ?

RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 3.42 GiB already allocated; 0 bytes free; 3.49 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

submitted by /u/AwardPsychological38
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *