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

error: AttributeError: module 'torch.library' has no attribute 'register_fake' #138

Open
lhallee opened this issue Oct 30, 2024 · 3 comments

Comments

@lhallee
Copy link

lhallee commented Oct 30, 2024

Hello,

I had to install torchvision==0.18.1 because of a compatibility with pytorch 2.3.1 and transformers 4.44, otherwise I would get this error

AttributeError: module 'torch.library' has no attribute 'register_fake'

May need to add to requirements.
Cheers,
Logan

@arogozhnikov
Copy link
Contributor

Hi Logan, thanks for reporting.

Current setup (without torchvision) is for sure working, the problem is likely introduced by a new version of torchvision:
huggingface/diffusers#8958

@lhallee
Copy link
Author

lhallee commented Oct 30, 2024

Looks like the issue had to do with my Azure instance holding a transformers 4.46 version even though I did a --force-reinstall --no-cache-dir... All set now, thanks

@lhallee lhallee closed this as completed Oct 30, 2024
@arogozhnikov arogozhnikov changed the title torchvision requirement error: AttributeError: module 'torch.library' has no attribute 'register_fake' Nov 18, 2024
@arogozhnikov
Copy link
Contributor

reopening to keep this visible for other people bumping into the same issue

@arogozhnikov arogozhnikov reopened this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants