Skip to content

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

@yang20085936

Description

@yang20085936

我的机器是两张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)>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions