mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Pass the proper token to PEFT integration in auto classes (#25649)
This commit is contained in:
parent
88e51ba306
commit
edb28722c2
@ -475,10 +475,7 @@ class _BaseAutoModelClass:
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user