Upload facebook_sam3_2.txt with huggingface_hub
Browse files1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196Everything was good in facebook_sam3_2.txt```CODE: # Load model directlyfrom transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("facebook/sam3")model = AutoModel.from_pretrained("facebook/sam3")```
ERROR: Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self)httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/facebook/sam3/resolve/main/config.json'For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1649, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( url=url, ...<4 lines>... retry_on_errors=retry_on_errors, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1572, in get_hf_file_metadata response = _httpx_follow_relative_redirects_with_backoff( method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 651, in _httpx_follow_relative_redirects_with_backoff hf_raise_for_status(response) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 802, in hf_raise_for_status raise _format(HfHubHTTPError, message, response) from ehuggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-69a93031-0c6d2d694f6637bf3ef234bb;e1cb3690-574b-4c13-99f2-dee48ad00c46)
403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..Cannot access content at: https://huggingface.co/facebook/sam3/resolve/main/config.json.Make sure your token has the correct permissions.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 420, in cached_files hf_hub_download( ~~~~~~~~~~~~~~~^ path_or_repo_id, ^^^^^^^^^^^^^^^^ ...<9 lines>... local_files_only=local_files_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 982, in hf_hub_download return _hf_hub_download_to_cache_dir( # Destination ...<15 lines>... dry_run=dry_run, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1133, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1765, in _raise_on_head_call_error raise LocalEntryNotFoundError( ...<3 lines>... ) from head_call_errorhuggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 654, in from_pretrained config = AutoConfig.from_pretrained( pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1429, in from_pretrained config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 629, in _get_config_dict resolved_config_file = cached_file( pretrained_model_name_or_path, ...<9 lines>... _commit_hash=commit_hash, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 277, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 494, in cached_files raise OSError( ...<3 lines>... ) from eOSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self)httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/facebook/sam3/resolve/main/config.json'For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1649, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( url=url, ...<4 lines>... retry_on_errors=retry_on_errors, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1572, in get_hf_file_metadata response = _httpx_follow_relative_redirects_with_backoff( method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 651, in _httpx_follow_relative_redirects_with_backoff hf_raise_for_status(response) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 802, in hf_raise_for_status raise _format(HfHubHTTPError, message, response) from ehuggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-69a93031-7a28feb22a6c71eb5b0b960f;b1e6870e-30da-41df-b982-3d47a9cda2aa)
403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..Cannot access content at: https://huggingface.co/facebook/sam3/resolve/main/config.json.Make sure your token has the correct permissions.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 420, in cached_files hf_hub_download( ~~~~~~~~~~~~~~~^ path_or_repo_id, ^^^^^^^^^^^^^^^^ ...<9 lines>... local_files_only=local_files_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn return fn(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 982, in hf_hub_download return _hf_hub_download_to_cache_dir( # Destination ...<15 lines>... dry_run=dry_run, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1133, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1765, in _raise_on_head_call_error raise LocalEntryNotFoundError( ...<3 lines>... ) from head_call_errorhuggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/tmp/facebook_sam3_2DM9rCn.py", line 26, in <module> tokenizer = AutoTokenizer.from_pretrained("facebook/sam3") File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 658, in from_pretrained config = PreTrainedConfig.from_pretrained(pretrained_model_name_or_path, **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 533, in from_pretrained config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 629, in _get_config_dict resolved_config_file = cached_file( pretrained_model_name_or_path, ...<9 lines>... _commit_hash=commit_hash, ) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 277, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 494, in cached_files raise OSError( ...<3 lines>... ) from eOSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.facebook_sam3_2.txt+196-1