Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run-time Error #16

Closed
salmaShahid opened this issue Dec 29, 2022 · 1 comment
Closed

Run-time Error #16

salmaShahid opened this issue Dec 29, 2022 · 1 comment

Comments

@salmaShahid
Copy link

Hey
can you please tell me how to resolve this error
It generates while running the python train.py file

Platform: Google Colaboratory

RuntimeError: CUDA out of memory. Tried to allocate 1.97 GiB (GPU 0; 14.76 GiB total capacity; 12.16 GiB already allocated; 1.04 GiB free; 12.32 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

@ruizhecao96
Copy link
Owner

You can try reduce the batch size or reduce the cut length to 2 seconds or 1 second, but of course, the performance will decrease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants