Skip to content

Commit

Permalink
Pass the proper token to PEFT integration in auto classes (#25649)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger authored Aug 22, 2023
1 parent 88e51ba commit edb2872
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transformers/models/auto/auto_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,7 @@ def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs):
subfolder = kwargs.get("subfolder", None)

maybe_adapter_path = find_adapter_config_file(
pretrained_model_name_or_path,
revision=revision,
token=use_auth_token,
subfolder=subfolder,
pretrained_model_name_or_path, revision=revision, token=token, subfolder=subfolder
)

if maybe_adapter_path is not None:
Expand Down

0 comments on commit edb2872

Please sign in to comment.