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

CUDA runs out of memory. #10

Open
Aryandrag opened this issue Sep 22, 2024 · 1 comment
Open

CUDA runs out of memory. #10

Aryandrag opened this issue Sep 22, 2024 · 1 comment

Comments

@Aryandrag
Copy link

I keep running into this error:
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB. GPU 0 has a total capacity of 4.00 GiB of which 0 bytes is free. Of the allocated memory 6.50 GiB is allocated by PyTorch, and 333.05 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

What could I do to fix this?
Really sorry if this is a stupid question.

@spicytigermeat
Copy link
Owner

When are you running into this error?

If this is during transcription, you should choose a smaller Whisper model in the settings.

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