OSError: liuhaotian/llava-v1.5-7b does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/liuhaotian/llava-v1.5-7b/tree/main' for available files.

#15
by dfwang - opened

OSError: liuhaotian/llava-v1.5-7b does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/liuhaotian/llava-v1.5-7b/tree/main' for available files.

Did you fix this problem? I encountered the same error when using processor.

请问最后怎么解决的?

I've got the same error, did you fix this?

请问最后怎么解决的?

I've got the same error, did you fix this?

The problem occured when I was writing inference.py of llava. I turned to reference llava/serve/cli.py(the file is from github). Hope my code in the picture can help you.
Snipaste_2024-12-05_23-11-47.png

how can we fix this problem?

how can we fix this problem?

check llava/serve/cli.py(the file is from github)

how can we fix this problem?

check llava/serve/cli.py(the file is from github)

Yes, I can check that file, but does it help me load this model directly from HF?
This is what something I'm doing:

Load model directly

from transformers import AutoProcessor, AutoModelForCausalLM

processor = AutoProcessor.from_pretrained("liuhaotian/llava-v1.5-7b")
model = AutoModelForCausalLM.from_pretrained("liuhaotian/llava-v1.5-7b")

Sign up or log in to comment