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 problem on training #80

Open
OliverVarnce opened this issue Dec 5, 2022 · 1 comment
Open

CUDA problem on training #80

OliverVarnce opened this issue Dec 5, 2022 · 1 comment

Comments

@OliverVarnce
Copy link

Hello dears!

I'm trying to execute train.py but have error
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 498.00 MiB (GPU 0; 10.92 GiB total capacity; 9.22 GiB already allocated; 401.81 MiB free; 9.78 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

changing batch size and PYTORCH_CUDA_ALLOC_CONF do not helps me.

Can you give me your things?

@planet-miemie
Copy link

将batchsize和input-size调小,或者gpu配置高一点就好了

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