Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

torch.cuda.OutOfMemoryError: CUDA out of memory. How do i fix this?? #187

@kia9900

Description

@kia9900

I use miniconda and I try python train.py -c configs/config.json -m 32k then i got this error

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 10.00 MiB 
(GPU 0; 2.00 GiB total capacity; 1.72 GiB already allocated; 0 bytes free; 1.74 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

i set batch_size to 1 and num_workers to 3 but didn't fix it

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