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

模型需要多大显存的卡运行? #36

Open
yang20085936 opened this issue Jan 30, 2025 · 0 comments
Open

模型需要多大显存的卡运行? #36

yang20085936 opened this issue Jan 30, 2025 · 0 comments

Comments

@yang20085936
Copy link

我的机器是两张3060ti,16G显存,在运行Seg时候爆显存了。

<torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 770.00 MiB. GPU 1 has a total capacity of 15.71 GiB of which 233.62 MiB is free. Including non-PyTorch memory, this process has 15.46 GiB memory in use. Of the allocated memory 15.07 GiB is allocated by PyTorch, and 156.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)>

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