mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
parent
63864e057f
commit
1b8decb04c
@ -2480,7 +2480,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
|
||||
)
|
||||
token = use_auth_token
|
||||
|
||||
if token is not None and "token" not in adapter_kwargs:
|
||||
if token is not None and adapter_kwargs is not None and "token" not in adapter_kwargs:
|
||||
adapter_kwargs["token"] = token
|
||||
|
||||
if use_safetensors is None and not is_safetensors_available():
|
||||
|
Loading…
Reference in New Issue
Block a user