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
2d69bacb
"doc/git@developer.sourcefind.cn:OpenDAS/ktransformers.git" did not exist on "bbcc5481bbe40c7d92601671da1b3190abf33986"
Unverified
Commit
2d69bacb
authored
Oct 07, 2025
by
Sayak Paul
Committed by
GitHub
Oct 07, 2025
Browse files
handle offload_state_dict when initing transformers models (#12438)
parent
0974b4c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/pipelines/pipeline_loading_utils.py
src/diffusers/pipelines/pipeline_loading_utils.py
+3
-0
No files found.
src/diffusers/pipelines/pipeline_loading_utils.py
View file @
2d69bacb
...
@@ -838,6 +838,9 @@ def load_sub_model(
...
@@ -838,6 +838,9 @@ def load_sub_model(
else
:
else
:
loading_kwargs
[
"low_cpu_mem_usage"
]
=
False
loading_kwargs
[
"low_cpu_mem_usage"
]
=
False
if
is_transformers_model
and
is_transformers_version
(
">="
,
"4.57.0"
):
loading_kwargs
.
pop
(
"offload_state_dict"
)
if
(
if
(
quantization_config
is
not
None
quantization_config
is
not
None
and
isinstance
(
quantization_config
,
PipelineQuantizationConfig
)
and
isinstance
(
quantization_config
,
PipelineQuantizationConfig
)
...
...
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