Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23189

How do i resolve this error and get my code running

$
0
0

The specified module could not be found. Error loading "C:\Users\mechg\OneDrive\Desktop\modeltesting\env\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

when i am running a python script that is dependent on torch , this is the error im getting , searched everywhere but couldnt resolve , please help me

this is the code

import torchfrom PIL import Imagefrom transformers import AutoModelForCausalLM, AutoTokenizermodel_id = "qresearch/llama-3-vision-alpha-hf"model = AutoModelForCausalLM.from_pretrained(    model_id, trust_remote_code=True, torch_dtype=torch.float16)tokenizer = AutoTokenizer.from_pretrained(    model_id,    use_fast=True,)image = Image.open("photo.jpg")print(    tokenizer.decode(        model.answer_question(image, "describe the image", tokenizer),        skip_special_tokens=True,    ))

Viewing all articles
Browse latest Browse all 23189

Trending Articles