Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
de6173c6
Unverified
Commit
de6173c6
authored
Nov 03, 2025
by
YiYi Xu
Committed by
GitHub
Nov 03, 2025
Browse files
[modular]pass hub_kwargs to load_config (#12577)
pass hub_kwargs to load_config
parent
8f80dda1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/modular_pipelines/modular_pipeline.py
src/diffusers/modular_pipelines/modular_pipeline.py
+1
-1
No files found.
src/diffusers/modular_pipelines/modular_pipeline.py
View file @
de6173c6
...
...
@@ -313,7 +313,7 @@ class ModularPipelineBlocks(ConfigMixin, PushToHubMixin):
]
hub_kwargs
=
{
name
:
kwargs
.
pop
(
name
)
for
name
in
hub_kwargs_names
if
name
in
kwargs
}
config
=
cls
.
load_config
(
pretrained_model_name_or_path
)
config
=
cls
.
load_config
(
pretrained_model_name_or_path
,
**
hub_kwargs
)
has_remote_code
=
"auto_map"
in
config
and
cls
.
__name__
in
config
[
"auto_map"
]
trust_remote_code
=
resolve_trust_remote_code
(
trust_remote_code
,
pretrained_model_name_or_path
,
has_remote_code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment