StableCascade icon indicating copy to clipboard operation
StableCascade copied to clipboard

RuntimeError: mat1 and mat2 must have the same dtype, but got Float and BFloat16

Open louis-fashion-ai opened this issue 1 year ago • 1 comments

I use V100, so I only use float32 model, but I get this error, can you solve this problem? Snipaste_2024-02-22_23-24-48

louis-fashion-ai avatar Feb 22 '24 15:02 louis-fashion-ai

I had the same error, turned out an 'with torch.cuda.amp.autocast(dtype=torch.float32)'. Be sure to check whether you changed all the torch.cuda.amp.autocast() to use torch.float32 instead of bfloat16.

helsenIgnace avatar Feb 29 '24 17:02 helsenIgnace