chatbot_app.py fails with Repository Not Found error
Checkpoint path: LaMini-T5-738M
2023-09-02 20:26:48.175 Uncaught app exception
Traceback (most recent call last):
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_errors.py", line 261, in hf_raise_for_status
response.raise_for_status()
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/LaMini-T5-738M/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/utils/hub.py", line 417, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, *kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1195, in hf_hub_download
metadata = get_hf_file_metadata(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1541, in get_hf_file_metadata
hf_raise_for_status(r)
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_errors.py", line 293, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-64f34d30-79e7e3f07c70fbc373db2408;776bd98a-0641-401c-b00e-bde06265e92c)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/Volumes/FastSSD2/LLM/AIAnytime/Chat-with-PDF-Chatbot/chatbot_app.py", line 24, in
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 652, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 496, in get_tokenizer_config
resolved_config_file = cached_file(
^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/utils/hub.py", line 433, in cached_file
raise EnvironmentError(
OSError: LaMini-T5-738M 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 with use_auth_token or log in with huggingface-cli login and pass use_auth_token=True.
chatbot_app.py fails with Repository Not Found error
Checkpoint path: LaMini-T5-738M 2023-09-02 20:26:48.175 Uncaught app exception Traceback (most recent call last): File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_errors.py", line 261, in hf_raise_for_status response.raise_for_status() File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/LaMini-T5-738M/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/utils/hub.py", line 417, in cached_file resolved_file = hf_hub_download( ^^^^^^^^^^^^^^^^ File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^ File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1195, in hf_hub_download metadata = get_hf_file_metadata( ^^^^^^^^^^^^^^^^^^^^^ File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1541, in get_hf_file_metadata hf_raise_for_status(r) File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/huggingface_hub/utils/_errors.py", line 293, in hf_raise_for_status raise RepositoryNotFoundError(message, response) from e huggingface_hub.utils._errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-64f34d30-79e7e3f07c70fbc373db2408;776bd98a-0641-401c-b00e-bde06265e92c)
Repository Not Found for url: https://huggingface.co/LaMini-T5-738M/resolve/main/tokenizer_config.json. Please make sure you specified the correct
repo_id
andrepo_type
. If you are trying to access a private or gated repo, make sure you are authenticated.During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/Volumes/FastSSD2/LLM/AIAnytime/Chat-with-PDF-Chatbot/chatbot_app.py", line 24, in
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 652, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 496, in get_tokenizer_config
resolved_config_file = cached_file(
^^^^^^^^^^^^
File "/Users/manju/.pyenv/versions/3.11.4/lib/python3.11/site-packages/transformers/utils/hub.py", line 433, in cached_file
raise EnvironmentError(
OSError: LaMini-T5-738M 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 with
use_auth_token
or log in withhuggingface-cli login
and passuse_auth_token=True
.