- 1(hf_env) honey@vultr:~/local-hf-model$ python3 host_model.py
- 2Loading model and tokenizer locally...
- 3Traceback (most recent call last):
- 4 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
- 5 response.raise_for_status()
- 6 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status
- 7 raise HTTPStatusError(message, request=request, response=self)
- 8httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json'
- 9For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
- 10
- 11The above exception was the direct cause of the following exception:
- 12
- 13Traceback (most recent call last):
- 14 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files
- 15 hf_hub_download(
- 16 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
- 17 return fn(*args, **kwargs)
- 18 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download
- 19 return _hf_hub_download_to_cache_dir(
- 20 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
- 21 _raise_on_head_call_error(head_call_error, force_download, local_files_only)
- 22 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
- 23 raise head_call_error
- 24 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
- 25 metadata = get_hf_file_metadata(
- 26 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
- 27 return fn(*args, **kwargs)
- 28 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
- 29 response = _httpx_follow_relative_redirects_with_backoff(
- 30 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
- 31 hf_raise_for_status(response)
- 32 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
- 33 raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e
- 34huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5aee14fd6680dad26011deb7;0744ba58-09fc-411f-8661-50abb2111b4d)
- 35
- 36Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json.
- 37Please make sure you specified the correct `repo_id` and `repo_type`.
- 38If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions.
- 39For more details, see https://huggingface.co/docs/huggingface_hub/authentication
- 40
- 41The above exception was the direct cause of the following exception:
- 42
- 43Traceback (most recent call last):
- 44 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 716, in from_pretrained
- 45 config = AutoConfig.from_pretrained(
- 46 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 376, in from_pretrained
- 47 config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
- 48 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict
- 49 config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
- 50 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict
- 51 resolved_config_file = cached_file(
- 52 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file
- 53 file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
- 54 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files
- 55 raise OSError(
- 56OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
- 57If 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=<your_token>`
- 58
- 59During handling of the above exception, another exception occurred:
- 60
- 61Traceback (most recent call last):
- 62 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
- 63 response.raise_for_status()
- 64 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/httpx/_models.py", line 829, in raise_for_status
- 65 raise HTTPStatusError(message, request=request, response=self)
- 66httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json'
- 67For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
- 68
- 69The above exception was the direct cause of the following exception:
- 70
- 71Traceback (most recent call last):
- 72 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 437, in cached_files
- 73 hf_hub_download(
- 74 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
- 75 return fn(*args, **kwargs)
- 76 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1015, in hf_hub_download
- 77 return _hf_hub_download_to_cache_dir(
- 78 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
- 79 _raise_on_head_call_error(head_call_error, force_download, local_files_only)
- 80 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
- 81 raise head_call_error
- 82 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
- 83 metadata = get_hf_file_metadata(
- 84 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 88, in _inner_fn
- 85 return fn(*args, **kwargs)
- 86 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
- 87 response = _httpx_follow_relative_redirects_with_backoff(
- 88 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
- 89 hf_raise_for_status(response)
- 90 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
- 91 raise _format(RepositoryNotFoundError, message, response, repo_type=repo_type, repo_id=repo_id) from e
- 92huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6a338cd5-5bfd36b22e2a9987467edd9e;1e66242e-c64e-4227-baf4-82fdcdac5ceb)
- 93
- 94Repository Not Found for url: https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1/resolve/main/config.json.
- 95Please make sure you specified the correct `repo_id` and `repo_type`.
- 96If you are trying to access a private or gated repo, make sure you are authenticated and your token has the required permissions.
- 97For more details, see https://huggingface.co/docs/huggingface_hub/authentication
- 98
- 99The above exception was the direct cause of the following exception:
- 100
- 101Traceback (most recent call last):
- 102 File "/home/honey/local-hf-model/host_model.py", line 9, in <module>
- 103 tokenizer = AutoTokenizer.from_pretrained(model_id)
- 104 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 720, in from_pretrained
- 105 config = PreTrainedConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
- 106 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 646, in from_pretrained
- 107 config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
- 108 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 687, in get_config_dict
- 109 config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
- 110 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 742, in _get_config_dict
- 111 resolved_config_file = cached_file(
- 112 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 293, in cached_file
- 113 file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
- 114 File "/home/honey/local-hf-model/hf_env/lib/python3.10/site-packages/transformers/utils/hub.py", line 469, in cached_files
- 115 raise OSError(
- 116OSError: TinyLlama/TinyLlama-1.1B-Chat-v1 is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
- 117If 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=<your_token>`
Raw Paste