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! #13

Open
Ethantequila opened this issue Nov 1, 2023 · 2 comments
Open

Cuda Out of Memory! #13

Ethantequila opened this issue Nov 1, 2023 · 2 comments

Comments

@Ethantequila
Copy link

Hi I try to run a demo(BLIVA_Vicuna 7B) in my local machine(V100, 16GB), It comes with a OOM error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 86.00 MiB (GPU 0; 15.77 GiB total capacity; 12.18 GiB already allocated; 54.88 MiB free; 12.38 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

So how much is the minimum amount of GPU memory required ? Or is there any way to reduce GPU usage?

Thanks a lot!

@gordonhu608
Copy link
Collaborator

Thank you for your interest in our work. Short answer is it needs 20G memory. Longer answer is here: #3

@Ethantequila
Copy link
Author

Thank you for your interest in our work. Short answer is it needs 20G memory. Longer answer is here: #3

Thanks for your quick reply! I am wondering how much GPU memory needed for run BLIVA_Vicuna 7B with INT8?

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