StableCascade icon indicating copy to clipboard operation
StableCascade copied to clipboard

Is there anyway to make the gpu vram usage smaller to train controlnet?

Open universewill opened this issue 1 year ago • 2 comments

I used an A100 40g vram gpu to train controlnet with 1 batch size and 512 image size, and get torch.cuda.OutOfMemoryError, and i switched to H100 with 80gb ram, still cuda out of memory.

How much gpu ram needed to train controlnet? Is there anyway to make the gpu vram usage smaller?

universewill avatar Feb 21 '24 07:02 universewill

Are you using 1B or 3.6B? That will make a difference (though still pretty hefty).

asutermo avatar Feb 23 '24 18:02 asutermo

Are you using 1B or 3.6B? That will make a difference (though still pretty hefty).

changed to 1B model, still cuda out of memory ...

universewill avatar Feb 24 '24 05:02 universewill