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
5e8415a3
Unverified
Commit
5e8415a3
authored
Nov 02, 2025
by
Dhruv Nair
Committed by
GitHub
Nov 01, 2025
Browse files
Fix custom code loading in Automodel (#12571)
update
parent
051c8a1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/diffusers/models/auto_model.py
src/diffusers/models/auto_model.py
+1
-3
src/diffusers/modular_pipelines/modular_pipeline.py
src/diffusers/modular_pipelines/modular_pipeline.py
+0
-1
No files found.
src/diffusers/models/auto_model.py
View file @
5e8415a3
...
...
@@ -147,14 +147,13 @@ class AutoModel(ConfigMixin):
"force_download"
,
"local_files_only"
,
"proxies"
,
"resume_download"
,
"revision"
,
"token"
,
]
hub_kwargs
=
{
name
:
kwargs
.
pop
(
name
,
None
)
for
name
in
hub_kwargs_names
}
# load_config_kwargs uses the same hub kwargs minus subfolder and resume_download
load_config_kwargs
=
{
k
:
v
for
k
,
v
in
hub_kwargs
.
items
()
if
k
not
in
[
"subfolder"
,
"resume_download"
]}
load_config_kwargs
=
{
k
:
v
for
k
,
v
in
hub_kwargs
.
items
()
if
k
not
in
[
"subfolder"
]}
library
=
None
orig_class_name
=
None
...
...
@@ -205,7 +204,6 @@ class AutoModel(ConfigMixin):
module_file
=
module_file
,
class_name
=
class_name
,
**
hub_kwargs
,
**
kwargs
,
)
else
:
from
..pipelines.pipeline_loading_utils
import
ALL_IMPORTABLE_CLASSES
,
get_class_obj_and_candidates
...
...
src/diffusers/modular_pipelines/modular_pipeline.py
View file @
5e8415a3
...
...
@@ -307,7 +307,6 @@ class ModularPipelineBlocks(ConfigMixin, PushToHubMixin):
"local_files_only"
,
"local_dir"
,
"proxies"
,
"resume_download"
,
"revision"
,
"subfolder"
,
"token"
,
...
...
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