Skip to content

Commit 54959a8

Browse files
committed
update
1 parent 051c8a1 commit 54959a8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/diffusers/models/auto_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,13 @@ def from_pretrained(cls, pretrained_model_or_path: Optional[Union[str, os.PathLi
147147
"force_download",
148148
"local_files_only",
149149
"proxies",
150-
"resume_download",
151150
"revision",
152151
"token",
153152
]
154153
hub_kwargs = {name: kwargs.pop(name, None) for name in hub_kwargs_names}
155154

156155
# load_config_kwargs uses the same hub kwargs minus subfolder and resume_download
157-
load_config_kwargs = {k: v for k, v in hub_kwargs.items() if k not in ["subfolder", "resume_download"]}
156+
load_config_kwargs = {k: v for k, v in hub_kwargs.items() if k not in ["subfolder"]}
158157

159158
library = None
160159
orig_class_name = None
@@ -205,7 +204,6 @@ def from_pretrained(cls, pretrained_model_or_path: Optional[Union[str, os.PathLi
205204
module_file=module_file,
206205
class_name=class_name,
207206
**hub_kwargs,
208-
**kwargs,
209207
)
210208
else:
211209
from ..pipelines.pipeline_loading_utils import ALL_IMPORTABLE_CLASSES, get_class_obj_and_candidates

src/diffusers/modular_pipelines/modular_pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ def from_pretrained(
307307
"local_files_only",
308308
"local_dir",
309309
"proxies",
310-
"resume_download",
311310
"revision",
312311
"subfolder",
313312
"token",

0 commit comments

Comments
 (0)