Skip to content

CUDA out of memory for SFNONet #14

@alv128

Description

@alv128

Hi there,

Thank you for the repo. I am trying to run the pretrained SFNONet from Makani for inference on some sample data, and I keep getting CUDA out of memory errors. I am using a single Tesla T4 GPU with 16GB VRAM. The model itself only takes around 3GB of memory and the data itself only around 300MB, however once the inference gets to calling the inverse Fourier transform, in partcular torch.fft.irfft, it blows up the memory. Is this expected behaviour? I am also setting torch.backends.cuda.cufft_plan_cache.max_size to a small number, but the error keeps happening. I am also mainly using makani/models/model_package.py to perform the inference.

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