Solution for webui: cannot convert a mps tensor to float64 dtype as the mps framework doesn’t support float64″

Some people suggest to use CPU but it didn’t work for me, but one I found from a reddit post did, so I’m echoing the solution here.

Open “modules/sd_disable_initialization.py”. At line 191, modify code as below. On the left is previous and on the right is after the fix, i.e., change “type=dtype” to “type=torch.float32”.

That’s all you need. After that, models will run fine.