stable-dreambooth icon indicating copy to clipboard operation
stable-dreambooth copied to clipboard

Unable to run the code on an RTX8000, out of memory

Open mohitm1994 opened this issue 2 years ago • 0 comments

Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass RuntimeError: CUDA out of memory. Tried to allocate 4.00 GiB (GPU 0; 47.46 GiB total capacity; 44.29 GiB already allocated; 862.56 MiB free; 45.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

mohitm1994 avatar Nov 07 '22 21:11 mohitm1994