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
"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