Skip to content

Training MusicGen on a Mac M4/64GB uses up all my memory, even with the small model #573

@rjjaret

Description

@rjjaret

I'm trying to train MusicGen on a Mac M4, with 64GB of memory.

I'm using cpu and the small model. I'm only using the two sample audio files provided with audio craft, which I've converted to mono to simplify the test.

I've tried several things, but no matter what I do, the process is killed because all the memory gets used up. I've tried running it with float16 instead of 32. Seems I should have plenty of memory. Any thoughts? I've attached my config file.

Here's the command I'm using:

dora run solver=musicgen/musicgen_base_32khz model/lm/model_scale=small continue_from=//pretrained/facebook/musicgen-small conditioner=text2music device=cpu

musicgen_base_32khz.yaml

Thanks for any help you might offer.

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