From 865b9ece3ff47fa4adfcf384d303ff565052a64a Mon Sep 17 00:00:00 2001 From: simonJJJ <821898965@qq.com> Date: Thu, 26 Dec 2024 15:07:54 +0800 Subject: [PATCH] remove-redundant-code --- src/transformers/configuration_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/transformers/configuration_utils.py b/src/transformers/configuration_utils.py index 648877c8dce962..adfff917fdd97f 100755 --- a/src/transformers/configuration_utils.py +++ b/src/transformers/configuration_utils.py @@ -546,8 +546,6 @@ def from_pretrained( kwargs["local_files_only"] = local_files_only kwargs["revision"] = revision - cls._set_token_in_kwargs(kwargs, token) - config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs) if cls.base_config_key and cls.base_config_key in config_dict: config_dict = config_dict[cls.base_config_key]