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: module 'torch.library' has no attribute 'register_fake' #605

Open
tjasmin111 opened this issue Nov 15, 2024 · 1 comment
Open

Error: module 'torch.library' has no attribute 'register_fake' #605

tjasmin111 opened this issue Nov 15, 2024 · 1 comment

Comments

@tjasmin111
Copy link

After I install it, I tried running this demo command. But I get errors:

# Demo
from vlmeval.config import supported_VLM
model = supported_VLM['idefics_9b_instruct']()
# Forward Single Image
ret = model.generate(['assets/apple.jpg', 'What is in this image?'])
print(ret)  # The image features a red apple with a leaf on it.
# Forward Multiple Images
ret = model.generate(['assets/apple.jpg', 'assets/apple.jpg', 'How many apples are there in the provided images? '])
print(ret)  # There are two apples in the provided images.

Error:

RuntimeError: Failed to import transformers.models.auto.processing_auto because of the following error (look up to see its traceback):
module 'torch.library' has no attribute 'register_fake'
@kennymckormick
Copy link
Member

Hi, @tjasmin111 ,
I haven't encounter this problem (I'm using python 3.10 torch 2.4 transformers 4.46.2), would you please provide your detailed environment?

image

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

2 participants