ariG23498 HF Staff commited on
Commit
58186a2
·
verified ·
1 Parent(s): 480616d

Upload ServiceNow-AI_Apriel-1.6-15b-Thinker_1.txt with huggingface_hub

Browse files
ServiceNow-AI_Apriel-1.6-15b-Thinker_1.txt ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Use a pipeline as a high-level helper
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("image-text-to-text", model="ServiceNow-AI/Apriel-1.6-15b-Thinker")
6
+ messages = [
7
+ {
8
+ "role": "user",
9
+ "content": [
10
+ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
11
+ {"type": "text", "text": "What animal is on the candy?"}
12
+ ]
13
+ },
14
+ ]
15
+ pipe(text=messages)
16
+ ```
17
+
18
+ ERROR:
19
+ Traceback (most recent call last):
20
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status
21
+ response.raise_for_status()
22
+ ~~~~~~~~~~~~~~~~~~~~~~~~~^^
23
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
24
+ raise HTTPError(http_error_msg, response=self)
25
+ requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker/resolve/main/config.json
26
+
27
+ The above exception was the direct cause of the following exception:
28
+
29
+ Traceback (most recent call last):
30
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/utils/hub.py", line 479, in cached_files
31
+ hf_hub_download(
32
+ ~~~~~~~~~~~~~~~^
33
+ path_or_repo_id,
34
+ ^^^^^^^^^^^^^^^^
35
+ ...<10 lines>...
36
+ local_files_only=local_files_only,
37
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
+ )
39
+ ^
40
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
41
+ return fn(*args, **kwargs)
42
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
43
+ return _hf_hub_download_to_cache_dir(
44
+ # Destination
45
+ ...<14 lines>...
46
+ force_download=force_download,
47
+ )
48
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir
49
+ _raise_on_head_call_error(head_call_error, force_download, local_files_only)
50
+ ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1655, in _raise_on_head_call_error
52
+ raise head_call_error
53
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error
54
+ metadata = get_hf_file_metadata(
55
+ url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint
56
+ )
57
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
58
+ return fn(*args, **kwargs)
59
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata
60
+ r = _request_wrapper(
61
+ method="HEAD",
62
+ ...<5 lines>...
63
+ timeout=timeout,
64
+ )
65
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper
66
+ response = _request_wrapper(
67
+ method=method,
68
+ ...<2 lines>...
69
+ **params,
70
+ )
71
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper
72
+ hf_raise_for_status(response)
73
+ ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
74
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 419, in hf_raise_for_status
75
+ raise _format(GatedRepoError, message, response) from e
76
+ huggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: Root=1-69367b45-2df356020c1e1de6605a8527;15d3b946-7c67-41e2-b93b-8527d6edc5fe)
77
+
78
+ Cannot access gated repo for url https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker/resolve/main/config.json.
79
+ Access to model ServiceNow-AI/Apriel-1.6-15b-Thinker is restricted and you are not in the authorized list. Visit https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker to ask for access.
80
+
81
+ The above exception was the direct cause of the following exception:
82
+
83
+ Traceback (most recent call last):
84
+ File "/tmp/ServiceNow-AI_Apriel-1.6-15b-Thinker_183TwAm.py", line 26, in <module>
85
+ pipe = pipeline("image-text-to-text", model="ServiceNow-AI/Apriel-1.6-15b-Thinker")
86
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline
87
+ config = AutoConfig.from_pretrained(
88
+ model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs
89
+ )
90
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1332, in from_pretrained
91
+ config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
92
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/configuration_utils.py", line 662, in get_config_dict
94
+ config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
95
+ ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/configuration_utils.py", line 721, in _get_config_dict
97
+ resolved_config_file = cached_file(
98
+ pretrained_model_name_or_path,
99
+ ...<10 lines>...
100
+ _commit_hash=commit_hash,
101
+ )
102
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/utils/hub.py", line 322, in cached_file
103
+ file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
104
+ File "/tmp/.cache/uv/environments-v2/db09b4ef6db136ab/lib/python3.13/site-packages/transformers/utils/hub.py", line 543, in cached_files
105
+ raise OSError(
106
+ ...<2 lines>...
107
+ ) from e
108
+ OSError: You are trying to access a gated repo.
109
+ Make sure to have access to it at https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker.
110
+ 403 Client Error. (Request ID: Root=1-69367b45-2df356020c1e1de6605a8527;15d3b946-7c67-41e2-b93b-8527d6edc5fe)
111
+
112
+ Cannot access gated repo for url https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker/resolve/main/config.json.
113
+ Access to model ServiceNow-AI/Apriel-1.6-15b-Thinker is restricted and you are not in the authorized list. Visit https://huggingface.co/ServiceNow-AI/Apriel-1.6-15b-Thinker to ask for access.