Skip to content

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

@zhuxiyulu

Description

@zhuxiyulu

Thank you for this work. I'm trying to train the flow model. I tried the following configurations, but an OOM error occurred when the model training was running at some step of epoch 0. The torch.cuda.OutOfMemoryError: CUDA out of memory occurs in decoder phase flow model. I checked that the memory of the gpu is large enough, but the gpu memory keeps increasing with the step.

ex.1 examples/music_generation/conf/inspiremusic.yaml batch_type: 'dynamic' max_frames_in_batch: 10000 or 2000
ex.2 examples/music_generation/conf/inspiremusic.yaml batch_type: 'static' batch_size: 2

Could you please tell me the correct configuration for training the flow model?

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