(hf_env) honey@vultr:~/local-hf-model$ python3 host_model.py Loading model and tokenizer locally... Traceback (most recent call last): File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status response.raise_for_status() File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files hf_hub_download( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn return fn(*args, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1166, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1804, in _raise_on_head_call_error raise head_call_error File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1690, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn return fn(*args, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1612, in get_hf_file_metadata response = _httpx_follow_relative_redirects_with_backoff( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 692, in _httpx_follow_relative_redirects_with_backoff hf_raise_for_status(response) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 835, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5aee14fd6680dad26011deb7;0744ba58-09fc-411f-8661-50abb2111b4d) Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json. Please make sure you specified the correct `repo_id` and `repo_type`. If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions. For more details, see https://huggingface.co/docs/huggingface_hub/authentication The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 716, in from_pretrained config = AutoConfig.from_pretrained( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 376, in from_pretrained config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict resolved_config_file = cached_file( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files raise OSError( OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `hf auth login` or by passing `token=` During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 761, in hf_raise_for_status response.raise_for_status() File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files hf_hub_download( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn return fn(*args, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1166, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1804, in _raise_on_head_call_error raise head_call_error File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1690, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn return fn(*args, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1612, in get_hf_file_metadata response = _httpx_follow_relative_redirects_with_backoff( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 692, in _httpx_follow_relative_redirects_with_backoff hf_raise_for_status(response) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 835, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5bfd36b22e2a9987467edd9e;1e66242e-c64e-4227-baf4-82fdcdac5ceb) Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json. Please make sure you specified the correct `repo_id` and `repo_type`. If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions. For more details, see https://huggingface.co/docs/huggingface_hub/authentication The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/honey/local-hf-model/host_model.py", line 9, in tokenizer = AutoTokenizer.from_pretrained(model_id) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 720, in from_pretrained config = PreTrainedConfig.from_pretrained(pretrained_model_name_or_path, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 646, in from_pretrained config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict resolved_config_file = cached_file( File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files raise OSError( OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `hf auth login` or by passing `token=`