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

module 'torch' has no attribute 'float8_e4m3fn' #10

Open
hiro-oda opened this issue Feb 4, 2025 · 0 comments
Open

module 'torch' has no attribute 'float8_e4m3fn' #10

hiro-oda opened this issue Feb 4, 2025 · 0 comments

Comments

@hiro-oda
Copy link

hiro-oda commented Feb 4, 2025

Thank you for sharing great work!!

When I execute ./bash/{sh_file_name} on Ubuntu 20.04 LTS with PyTorch 1.12.1 CUDA 11.3 installed, I get this following error:
File "/opt/conda/envs/ultraman/lib/python3.9/site-packages/diffusers/quantizers/torchao/torchao_quantizer.py", line 57, in <module> torch.float8_e4m3fn, AttributeError: module 'torch' has no attribute 'float8_e4m3fn'

I heard that upgrading the pytorch version from 1.12.1 to 2.4.1 or something like that will solve this error (https://stackoverflow.com/questions/78929592/torch-has-no-attribute-float8-e4m3fn), is there any problem with upgrading? Also, I would like to know if there is a way to debug with pytorch 1.12.1.

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