@@ -134,10 +134,9 @@ def from_config(cls, pretrained_model_name_or_path: Union[str, os.PathLike], ret
134134 The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
135135 git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
136136 identifier allowed by git.
137- mirror (`str`, *optional*):
138- Mirror source to accelerate downloads in China. If you are from China and have an accessibility
139- problem, you can set this option to resolve it. Note that we do not guarantee the timeliness or safety.
140- Please refer to the mirror site for more information.
137+ subfolder (`str`, *optional*, defaults to `""`):
138+ In case the relevant files are located inside a subfolder of the model repo (either remote in
139+ huggingface.co or downloaded locally), you can specify the folder name here.
141140
142141 <Tip>
143142
@@ -175,6 +174,7 @@ def get_config_dict(
175174 use_auth_token = kwargs .pop ("use_auth_token" , None )
176175 local_files_only = kwargs .pop ("local_files_only" , False )
177176 revision = kwargs .pop ("revision" , None )
177+ _ = kwargs .pop ("mirror" , None )
178178 subfolder = kwargs .pop ("subfolder" , None )
179179
180180 user_agent = {"file_type" : "config" }
0 commit comments