401 authentication error
Hi can anyone help me in resolving below issue
401 Client Error. (Request ID: Root=1-65d0c3be-212a5af75d3c871c11a07d10;b9f81d7d-eed1-4bc4-89bd-61cfce3b5538) Repository Not Found for url: https://huggingface.co/api/models/Llama/llama-2-7b-chat.Q5_K_S.gguf/revision/main. 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. Invalid username or password.
Traceback:
File "C:\Users\HP\anaconda3.1\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "C:\Users\HP\Documents\Llama\app.py", line 48, in
st.write(get_llama_response(input_text, no_words, blog_style))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\Documents\Llama\app.py", line 9, in get_llama_response
llm = CTransformers(model = 'Llama/llama-2-7b-chat.Q5_K_S.gguf',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\langchain_core\load\serializable.py", line 107, in init
super().init(**kwargs)
File "pydantic\main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1102, in pydantic.main.validate_model
File "C:\Users\HP\anaconda3.1\Lib\site-packages\langchain_community\llms\ctransformers.py", line 72, in validate_environment
values["client"] = AutoModelForCausalLM.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\ctransformers\hub.py", line 151, in from_pretrained
config = config or AutoConfig.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\ctransformers\hub.py", line 48, in from_pretrained
cls._update_from_repo(
File "C:\Users\HP\anaconda3.1\Lib\site-packages\ctransformers\hub.py", line 72, in _update_from_repo
path = snapshot_download(
^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub_snapshot_download.py", line 189, in snapshot_download
repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\hf_api.py", line 1888, in repo_info
return method(
^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\hf_api.py", line 1698, in model_info
hf_raise_for_status(r)
File "C:\Users\HP\anaconda3.1\Lib\site-packages\huggingface_hub\utils_errors.py", line 293, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e