haotian-liu / LLaVA

[NeurIPS'23 Oral] Visual Instruction Tuning (LLaVA) built towards GPT-4V level capabilities and beyond.
https://llava.hliu.cc
Apache License 2.0
19.78k stars 2.17k forks source link

[Question] Not able to load https://huggingface.co/liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3 into google colab. Please help 🙏🙏 #1737

Open cookiesupers22 opened 1 day ago

cookiesupers22 commented 1 day ago

Question

Load model directly

from transformers import AutoProcessor, AutoModelForCausalLM

processor = AutoProcessor.from_pretrained("liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3") model = AutoModelForCausalLM.from_pretrained("liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3") I am trying to run the above code in google colab from this huggingface Llava model: https://huggingface.co/liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3

For some reason, I keep getting this error I have no idea what to do:

Traceback (most recent call last)

HTTPError Traceback (most recent call last)

in hf_raise_for_status(response, endpoint_name) 405 try: --> 406 response.raise_for_status() 407 except HTTPError as e:

/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py

in hf_raise_for_status(response, endpoint_name) 405 try: --> 406 response.raise_for_status() 407 except HTTPError as e:

/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py 18 frames

HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3/resolve/main/preprocessor_config.json

The above exception was the direct cause of the following exception:

EntryNotFoundError Traceback (most recent call last)

EntryNotFoundError: 404 Client Error. (Request ID: Root=1-67100499-78a68eb3676bcc6b7eaa4c27;c4259ef9-af93-4126-8bb4-561929fbfae1)

Entry Not Found for url: . https://huggingface.co/liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3/resolve/main/preprocessor_config.json

The above exception was the direct cause of the following exception:

OSError Traceback (most recent call last)

in cached_file(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, token, revision, local_files_only, subfolder, repo_type, user_agent, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash, **deprecated_kwargs) 434 if revision is None: 435 revision = "main" --> 436 raise EnvironmentError( 437 f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout " 438 f"' for available files."

/usr/local/lib/python3.10/site-packages/transformers/utils/hub.pyhttps://huggingface.co/{path_or_repo_id}/{revision}'

OSError: liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3 does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/liuhaotian/llava-lcs558k-scienceqa-vicuna-13b-v1.3/main' for available files.

bansal19 commented 1 day ago

Having the very same issue!