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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Load model directly
|
| 3 |
+
from transformers import AutoTokenizer, AutoModel
|
| 4 |
+
|
| 5 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/sam3")
|
| 6 |
+
model = AutoModel.from_pretrained("facebook/sam3")
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
ERROR:
|
| 10 |
+
Traceback (most recent call last):
|
| 11 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status
|
| 12 |
+
response.raise_for_status()
|
| 13 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~^^
|
| 14 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
|
| 15 |
+
raise HTTPStatusError(message, request=request, response=self)
|
| 16 |
+
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/facebook/sam3/resolve/main/config.json'
|
| 17 |
+
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
|
| 18 |
+
|
| 19 |
+
The above exception was the direct cause of the following exception:
|
| 20 |
+
|
| 21 |
+
Traceback (most recent call last):
|
| 22 |
+
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
|
| 23 |
+
metadata = get_hf_file_metadata(
|
| 24 |
+
url=url,
|
| 25 |
+
...<4 lines>...
|
| 26 |
+
retry_on_errors=retry_on_errors,
|
| 27 |
+
)
|
| 28 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 29 |
+
return fn(*args, **kwargs)
|
| 30 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1572, in get_hf_file_metadata
|
| 31 |
+
response = _httpx_follow_relative_redirects_with_backoff(
|
| 32 |
+
method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors
|
| 33 |
+
)
|
| 34 |
+
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
|
| 35 |
+
hf_raise_for_status(response)
|
| 36 |
+
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
| 37 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 802, in hf_raise_for_status
|
| 38 |
+
raise _format(HfHubHTTPError, message, response) from e
|
| 39 |
+
huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-69a93031-0c6d2d694f6637bf3ef234bb;e1cb3690-574b-4c13-99f2-dee48ad00c46)
|
| 40 |
+
|
| 41 |
+
403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..
|
| 42 |
+
Cannot access content at: https://huggingface.co/facebook/sam3/resolve/main/config.json.
|
| 43 |
+
Make sure your token has the correct permissions.
|
| 44 |
+
|
| 45 |
+
The above exception was the direct cause of the following exception:
|
| 46 |
+
|
| 47 |
+
Traceback (most recent call last):
|
| 48 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 420, in cached_files
|
| 49 |
+
hf_hub_download(
|
| 50 |
+
~~~~~~~~~~~~~~~^
|
| 51 |
+
path_or_repo_id,
|
| 52 |
+
^^^^^^^^^^^^^^^^
|
| 53 |
+
...<9 lines>...
|
| 54 |
+
local_files_only=local_files_only,
|
| 55 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 56 |
+
)
|
| 57 |
+
^
|
| 58 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 59 |
+
return fn(*args, **kwargs)
|
| 60 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 982, in hf_hub_download
|
| 61 |
+
return _hf_hub_download_to_cache_dir(
|
| 62 |
+
# Destination
|
| 63 |
+
...<15 lines>...
|
| 64 |
+
dry_run=dry_run,
|
| 65 |
+
)
|
| 66 |
+
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
|
| 67 |
+
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
|
| 68 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 69 |
+
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
|
| 70 |
+
raise LocalEntryNotFoundError(
|
| 71 |
+
...<3 lines>...
|
| 72 |
+
) from head_call_error
|
| 73 |
+
huggingface_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.
|
| 74 |
+
|
| 75 |
+
The above exception was the direct cause of the following exception:
|
| 76 |
+
|
| 77 |
+
Traceback (most recent call last):
|
| 78 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 654, in from_pretrained
|
| 79 |
+
config = AutoConfig.from_pretrained(
|
| 80 |
+
pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs
|
| 81 |
+
)
|
| 82 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1429, in from_pretrained
|
| 83 |
+
config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 84 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 85 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict
|
| 86 |
+
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 87 |
+
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 88 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 629, in _get_config_dict
|
| 89 |
+
resolved_config_file = cached_file(
|
| 90 |
+
pretrained_model_name_or_path,
|
| 91 |
+
...<9 lines>...
|
| 92 |
+
_commit_hash=commit_hash,
|
| 93 |
+
)
|
| 94 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 277, in cached_file
|
| 95 |
+
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
|
| 96 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 494, in cached_files
|
| 97 |
+
raise OSError(
|
| 98 |
+
...<3 lines>...
|
| 99 |
+
) from e
|
| 100 |
+
OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
|
| 101 |
+
Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
|
| 102 |
+
|
| 103 |
+
During handling of the above exception, another exception occurred:
|
| 104 |
+
|
| 105 |
+
Traceback (most recent call last):
|
| 106 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 720, in hf_raise_for_status
|
| 107 |
+
response.raise_for_status()
|
| 108 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~^^
|
| 109 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
|
| 110 |
+
raise HTTPStatusError(message, request=request, response=self)
|
| 111 |
+
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/facebook/sam3/resolve/main/config.json'
|
| 112 |
+
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
|
| 113 |
+
|
| 114 |
+
The above exception was the direct cause of the following exception:
|
| 115 |
+
|
| 116 |
+
Traceback (most recent call last):
|
| 117 |
+
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
|
| 118 |
+
metadata = get_hf_file_metadata(
|
| 119 |
+
url=url,
|
| 120 |
+
...<4 lines>...
|
| 121 |
+
retry_on_errors=retry_on_errors,
|
| 122 |
+
)
|
| 123 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 124 |
+
return fn(*args, **kwargs)
|
| 125 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1572, in get_hf_file_metadata
|
| 126 |
+
response = _httpx_follow_relative_redirects_with_backoff(
|
| 127 |
+
method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors
|
| 128 |
+
)
|
| 129 |
+
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
|
| 130 |
+
hf_raise_for_status(response)
|
| 131 |
+
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
|
| 132 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 802, in hf_raise_for_status
|
| 133 |
+
raise _format(HfHubHTTPError, message, response) from e
|
| 134 |
+
huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-69a93031-7a28feb22a6c71eb5b0b960f;b1e6870e-30da-41df-b982-3d47a9cda2aa)
|
| 135 |
+
|
| 136 |
+
403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository..
|
| 137 |
+
Cannot access content at: https://huggingface.co/facebook/sam3/resolve/main/config.json.
|
| 138 |
+
Make sure your token has the correct permissions.
|
| 139 |
+
|
| 140 |
+
The above exception was the direct cause of the following exception:
|
| 141 |
+
|
| 142 |
+
Traceback (most recent call last):
|
| 143 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 420, in cached_files
|
| 144 |
+
hf_hub_download(
|
| 145 |
+
~~~~~~~~~~~~~~~^
|
| 146 |
+
path_or_repo_id,
|
| 147 |
+
^^^^^^^^^^^^^^^^
|
| 148 |
+
...<9 lines>...
|
| 149 |
+
local_files_only=local_files_only,
|
| 150 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 151 |
+
)
|
| 152 |
+
^
|
| 153 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn
|
| 154 |
+
return fn(*args, **kwargs)
|
| 155 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 982, in hf_hub_download
|
| 156 |
+
return _hf_hub_download_to_cache_dir(
|
| 157 |
+
# Destination
|
| 158 |
+
...<15 lines>...
|
| 159 |
+
dry_run=dry_run,
|
| 160 |
+
)
|
| 161 |
+
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
|
| 162 |
+
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
|
| 163 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 164 |
+
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
|
| 165 |
+
raise LocalEntryNotFoundError(
|
| 166 |
+
...<3 lines>...
|
| 167 |
+
) from head_call_error
|
| 168 |
+
huggingface_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.
|
| 169 |
+
|
| 170 |
+
The above exception was the direct cause of the following exception:
|
| 171 |
+
|
| 172 |
+
Traceback (most recent call last):
|
| 173 |
+
File "/tmp/facebook_sam3_2DM9rCn.py", line 26, in <module>
|
| 174 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/sam3")
|
| 175 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 658, in from_pretrained
|
| 176 |
+
config = PreTrainedConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
|
| 177 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 533, in from_pretrained
|
| 178 |
+
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 179 |
+
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 180 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict
|
| 181 |
+
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 182 |
+
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 183 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/configuration_utils.py", line 629, in _get_config_dict
|
| 184 |
+
resolved_config_file = cached_file(
|
| 185 |
+
pretrained_model_name_or_path,
|
| 186 |
+
...<9 lines>...
|
| 187 |
+
_commit_hash=commit_hash,
|
| 188 |
+
)
|
| 189 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 277, in cached_file
|
| 190 |
+
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
|
| 191 |
+
File "/tmp/.cache/uv/environments-v2/e0ad3a6bca3defbb/lib/python3.13/site-packages/transformers/utils/hub.py", line 494, in cached_files
|
| 192 |
+
raise OSError(
|
| 193 |
+
...<3 lines>...
|
| 194 |
+
) from e
|
| 195 |
+
OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
|
| 196 |
+
Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
|