"LayerNormKernelImpl" not implemented for 'Half'

#40
by Ringerill - opened

Hi there,

I have tried to run the code on a Mac with low GPU capacity so I had to load in float16 precision. I also had to set the device to CPU since CUDA isn't supported for Mac anymore...
And when I tried to generate the image, I got the RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'.
By looking around, it seems that running on CPU can create such problem :(

Awesome, I'll let you know how that worked.
And thank you for such efforts from the Mac community!

I'm currently experiencing this issue when using the hugging face diffuser. On an x86 Mac trying to run on the CPU but not having much luck.

Same But here i tried in the colab book when i was note able to turn on GPU for limitation
https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/stable_diffusion.ipynb

I'm getting this error using CUDA with Ubuntu 20.04 and CUDA 11.4 (not using a Mac).

Sign up or log in to comment