Unable to run the model on Colab
Hi,
I am not able to run the model from HF on Colab with this error. anyone has this issue ? these are the line of code I have run.
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")
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
303 try:
--> 304 response.raise_for_status()
305 except HTTPError as e:
18 frames
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/liuhaotian/llava-v1.5-7b/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-670984da-24a9b3f24b08e19d1468bc38;2f4f0dfe-535c-4c14-ad27-a8a778b088a7)
Entry Not Found for url: https://huggingface.co/liuhaotian/llava-v1.5-7b/resolve/main/preprocessor_config.json.
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py 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_gated_repo, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash, **deprecated_kwargs)
454 if revision is None:
455 revision = "main"
--> 456 raise EnvironmentError(
457 f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout "
458 f"'https://huggingface.co/{path_or_repo_id}/tree/{revision}' for available files."
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.