Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Collab Stable DIffusion XL Demo: module 'torch' has no attribute 'float8_e4m3fn' #11

Open
jroibal2 opened this issue Dec 17, 2024 · 0 comments

Comments

@jroibal2
Copy link

I had successfully ran SDXL on Google Colab multiple times, however, I began receiving an error so I decided to look into another way of installation. I found this method, found the Google Colab notebook, and imported the notebook and I ensured I switched to GPUs. After successfully importing / loading from the first cell in the Google Colab Notebook, I received the following error message on the second cell:

RuntimeError: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
module 'torch' has no attribute 'float8_e4m3fn'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/content/stable-diffusion-xl-demo/app.py", line 3, in
from diffusers import DiffusionPipeline, LCMScheduler
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 911, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 922, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.pipeline_utils because of the following error (look up to see its traceback):
Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
module 'torch' has no attribute 'float8_e4m3fn'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant