Skip to content

Commit de6173c

Browse files
authored
[modular]pass hub_kwargs to load_config (#12577)
pass hub_kwargs to load_config
1 parent 8f80dda commit de6173c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/modular_pipelines/modular_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def from_pretrained(
313313
]
314314
hub_kwargs = {name: kwargs.pop(name) for name in hub_kwargs_names if name in kwargs}
315315

316-
config = cls.load_config(pretrained_model_name_or_path)
316+
config = cls.load_config(pretrained_model_name_or_path, **hub_kwargs)
317317
has_remote_code = "auto_map" in config and cls.__name__ in config["auto_map"]
318318
trust_remote_code = resolve_trust_remote_code(
319319
trust_remote_code, pretrained_model_name_or_path, has_remote_code

0 commit comments

Comments
 (0)