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 error #9

Open
Doris404 opened this issue Mar 29, 2024 · 1 comment
Open

CUDA out of memory error #9

Doris404 opened this issue Mar 29, 2024 · 1 comment

Comments

@Doris404
Copy link

Hello, I encountered the problem of CUDA out of memory when running taptap. The specific questions are as follows:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 6.14 GiB. GPU 0 has a total capacity of 23.68 GiB of which 4.12 GiB is free. Including non-PyTorch memory, this process has 19.54 GiB memory in use. Of the allocated memory 13.25 GiB is allocated by PyTorch, and 5.90 GiB 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)
0%|

I have 4 GPU on my machine NVIDIA GeForce RTX 3090. All of them have 24G memory. The table I train on is 11M ./company_bankruptcy_prediction.

@Doris404
Copy link
Author

The model size becomes 78G in the process of training. But the basic model is only 900M.

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

1 participant