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 out of memory #78

Open
esmaei1 opened this issue Jun 27, 2024 · 1 comment
Open

CUDA out of memory #78

esmaei1 opened this issue Jun 27, 2024 · 1 comment

Comments

@esmaei1
Copy link

esmaei1 commented Jun 27, 2024

When I run
bash ./scripts/run_text2video.sh
I always get this error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB (GPU 0; 10.90 GiB total capacity; 10.36 GiB already allocated; 83.50 MiB free; 10.54 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

@jagan607
Copy link

Hi @esmaei1 , the error message shows that you don't have enough GPU to run the generation. What's your GPU size. At least, you need 18 GB to run.

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