forked from stevenxcao/subnetwork-probing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog
276 lines (256 loc) · 21.2 KB
/
log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
ERROR:root:bart_case_uncased is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 239, in hf_raise_for_status
response.raise_for_status()
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/bart_case_uncased/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1065, in hf_hub_download
metadata = get_hf_file_metadata(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1374, in get_hf_file_metadata
hf_raise_for_status(r)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 268, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: XetPO9FN-lfh9DLSb36kJ)
Repository Not Found for url: https://huggingface.co/bart_case_uncased/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated.
Invalid username or password.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 42, in __init__
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 560, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 412, in get_tokenizer_config
resolved_config_file = cached_file(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 424, in cached_file
raise EnvironmentError(
OSError: bart_case_uncased is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
ERROR:root:cannot assign buffer before Module.__init__() call
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 50, in __init__
self.register_buffer(model_name, model)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 302, in register_buffer
raise AttributeError(
AttributeError: cannot assign buffer before Module.__init__() call
ERROR:root:bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 239, in hf_raise_for_status
response.raise_for_status()
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1065, in hf_hub_download
metadata = get_hf_file_metadata(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1374, in get_hf_file_metadata
hf_raise_for_status(r)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 268, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: X6-wD_lH77IIrYkBeEfuV)
Repository Not Found for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated.
Invalid username or password.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 46, in __init__
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 560, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 412, in get_tokenizer_config
resolved_config_file = cached_file(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 424, in cached_file
raise EnvironmentError(
OSError: bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
ERROR:root:bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 239, in hf_raise_for_status
response.raise_for_status()
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1065, in hf_hub_download
metadata = get_hf_file_metadata(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1374, in get_hf_file_metadata
hf_raise_for_status(r)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 268, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: T3fOtm9oo_NXJP3RYnvxV)
Repository Not Found for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated.
Invalid username or password.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 46, in __init__
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 560, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 412, in get_tokenizer_config
resolved_config_file = cached_file(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 424, in cached_file
raise EnvironmentError(
OSError: bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
ERROR:root:'MaskedWordLevelModel' object has no attribute 'register_buffer'
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 57, in __init__
self.register_buffer(model_name, self.model_family)
AttributeError: 'MaskedWordLevelModel' object has no attribute 'register_buffer'
ERROR:root:'MaskedWordLevelModel' object has no attribute 'register_buffer'
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 57, in __init__
self.register_buffer(model_name, self.model_family)
AttributeError: 'MaskedWordLevelModel' object has no attribute 'register_buffer'
ERROR:root:'MaskedWordLevelModel' object has no attribute 'register_buffer'
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 57, in __init__
self.register_buffer(model_name, self.model_family)
AttributeError: 'MaskedWordLevelModel' object has no attribute 'register_buffer'
ERROR:root:cannot assign 'str' object to buffer 'facebook/bart-base' (torch Tensor or None required)
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 57, in __init__
self.register_buffer(model_name, self.model_family)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 314, in register_buffer
raise TypeError("cannot assign '{}' object to buffer '{}' "
TypeError: cannot assign 'str' object to buffer 'facebook/bart-base' (torch Tensor or None required)
ERROR:root:cannot assign 'str' object to buffer 'facebook/bart-base' (torch Tensor or None required)
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 57, in __init__
self.register_buffer(model_name, self.model_family)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 314, in register_buffer
raise TypeError("cannot assign '{}' object to buffer '{}' "
TypeError: cannot assign 'str' object to buffer 'facebook/bart-base' (torch Tensor or None required)
ERROR:root:cannot assign 'transformers.models.bart.modeling_bart.BartModel' object to buffer 'model' (torch Tensor or None required)
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 58, in __init__
self.register_buffer("model", model)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 314, in register_buffer
raise TypeError("cannot assign '{}' object to buffer '{}' "
TypeError: cannot assign 'transformers.models.bart.modeling_bart.BartModel' object to buffer 'model' (torch Tensor or None required)
ERROR:root:'BartModel' object has no attribute 'pooler'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 59, in __init__
self.dim = self.model.pooler.dense.in_features
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'BartModel' object has no attribute 'pooler'
ERROR:root:'T5ForConditionalGeneration' object has no attribute 'pooler'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 59, in __init__
self.dim = self.model.pooler.dense.in_features
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'T5ForConditionalGeneration' object has no attribute 'pooler'
ERROR:root:'T5ForConditionalGeneration' object has no attribute 'embeddings'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 75, in __init__
self.max_len = self.model.embeddings.position_embeddings.num_embeddings
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'T5ForConditionalGeneration' object has no attribute 'embeddings'
ERROR:root:'T5ForConditionalGeneration' object has no attribute 'embeddings'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 75, in __init__
self.max_len = self.model.embeddings.position_embeddings.num_embeddings
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'T5ForConditionalGeneration' object has no attribute 'embeddings'
ERROR:root:bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
----
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 239, in hf_raise_for_status
response.raise_for_status()
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 409, in cached_file
resolved_file = hf_hub_download(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1065, in hf_hub_download
metadata = get_hf_file_metadata(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/file_download.py", line 1374, in get_hf_file_metadata
hf_raise_for_status(r)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 268, in hf_raise_for_status
raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: kLYKXKojodyJgIrwAB9By)
Repository Not Found for url: https://huggingface.co/bart-base/resolve/main/tokenizer_config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated.
Invalid username or password.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 46, in __init__
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 560, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/models/auto/tokenization_auto.py", line 412, in get_tokenizer_config
resolved_config_file = cached_file(
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/transformers/utils/hub.py", line 424, in cached_file
raise EnvironmentError(
OSError: bart-base is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`.
ERROR:root:'BartModel' object has no attribute 'embeddings'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 75, in __init__
self.max_len = self.model.embeddings.position_embeddings.num_embeddings
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'BartModel' object has no attribute 'embeddings'
ERROR:root:'BartModel' object has no attribute 'embeddings'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 75, in __init__
self.max_len = self.model.embeddings.position_embeddings.num_embeddings
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'BartModel' object has no attribute 'embeddings'
ERROR:root:'T5ForConditionalGeneration' object has no attribute 'embeddings'
----
Traceback (most recent call last):
File "/Users/paulp/Documents/Personal/Study/MSc/COMP7607/FinalProject/subnetwork-probing/code/pretrained_models.py", line 75, in __init__
self.max_len = self.model.embeddings.position_embeddings.num_embeddings
File "/opt/miniconda3/envs/subnet_prob/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1177, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'T5ForConditionalGeneration' object has no attribute 'embeddings'