We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f80dda commit de6173cCopy full SHA for de6173c
src/diffusers/modular_pipelines/modular_pipeline.py
@@ -313,7 +313,7 @@ def from_pretrained(
313
]
314
hub_kwargs = {name: kwargs.pop(name) for name in hub_kwargs_names if name in kwargs}
315
316
- config = cls.load_config(pretrained_model_name_or_path)
+ config = cls.load_config(pretrained_model_name_or_path, **hub_kwargs)
317
has_remote_code = "auto_map" in config and cls.__name__ in config["auto_map"]
318
trust_remote_code = resolve_trust_remote_code(
319
trust_remote_code, pretrained_model_name_or_path, has_remote_code
0 commit comments