You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added token argument
* updated docstrings
* added deprecation warning
* added more warning and swapped token with use_ath_token
* use future warning istead
* added a test to read from private repo
"The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.",
217
+
FutureWarning,
218
+
)
219
+
iftokenisnotNone:
220
+
raiseValueError(
221
+
"Both the arguments `use_auth_token` and `token` were specified, which is not supported. Please specify only `token`."
222
+
)
223
+
token=use_auth_token
224
+
200
225
ifnotgetattr(config, "torchscript", False):
201
226
raiseValueError(
202
227
"`config.torchscript` should be set to `True`, if your model is not a TorchScript model and needs to be traced please set `export=True` when loading it with `.from_pretrained()`"
0 commit comments