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,跑这个模型需要多大显存? #125

Open
wsl1999 opened this issue Jun 29, 2024 · 1 comment
Open

cuda out of memory,跑这个模型需要多大显存? #125

wsl1999 opened this issue Jun 29, 2024 · 1 comment

Comments

@wsl1999
Copy link

wsl1999 commented Jun 29, 2024

刚下载模型,超分 input 文件夹里的样例图片都爆显存了。。。
想问一下这个问题怎么解决?
3060 laptop 6G显存
运行命令报错:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1024.00 MiB. GPU 0 has a total capacity of 6.00 GiB of which 0 bytes is free. Of the allocated memory 10.07 GiB is allocated by PyTorch, and 662.61 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)
bash: --device: command not found

@wsl1999
Copy link
Author

wsl1999 commented Jun 29, 2024

bash: --device: command not found
这行报错是什么原因?如何解决?

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