How can I run it locally using AMD graphics card?

#12
by barzx45 - opened

Whenever I am running gui.bat i am getting this error:
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.|

Beacuse i am running an AMD gpu the "cuda" option inside the torch_dtype function does not work for me. but sadly i don't know what to change it into.

Moreover when i am going inside my local url and trying to generate an image a different error message pops in terminal:
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

hope somebody could help me please <3

Sign up or log in to comment