Skip to content

torch.cuda.OutOfMemoryError: CUDA out of memory #3

Description

@liujun0621

when i use 2080 or 4090 GPU,trainning error as follow:

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 3.00 GiB (GPU 0; 10.75 GiB total capacity; 5.97 GiB already allocated; 2.42 GiB free; 8.08 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

webwxgetmsgimg

thanks very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions