Hugging Face's logo
eswardivi
/
Runtime error

runtime error

Exit code: 1. Reason: _raise_for_status raise _format(HfHubHTTPError, str(e), response) from e huggingface_hub.errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/microsoft/phi-4/resolve/main/config.json (Request ID: Root=1-682c4e42-4f9ae2b04057b745355472a8;3b468f3b-9610-4cf7-9df4-595ce6a80150) Invalid credentials in Authorization header During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 23, in <module> model = AutoModelForCausalLM.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 531, in from_pretrained config, kwargs = AutoConfig.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1153, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/configuration_utils.py", line 595, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/configuration_utils.py", line 654, in _get_config_dict resolved_config_file = cached_file( File "/usr/local/lib/python3.10/site-packages/transformers/utils/hub.py", line 312, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/utils/hub.py", line 553, in cached_files raise OSError(f"There was a specific connection error when trying to load {path_or_repo_id}:\n{e}") OSError: There was a specific connection error when trying to load microsoft/phi-4: 401 Client Error: Unauthorized for url: https://huggingface.co/microsoft/phi-4/resolve/main/config.json (Request ID: Root=1-682c4e42-4f9ae2b04057b745355472a8;3b468f3b-9610-4cf7-9df4-595ce6a80150) Invalid credentials in Authorization header

Container logs:

Fetching error logs...