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
4fcd0bc7
Unverified
Commit
4fcd0bc7
authored
Aug 20, 2025
by
Sayak Paul
Committed by
GitHub
Aug 20, 2025
Browse files
[chore] remove extra validation check in determine_device_map (#12176)
remove extra validation check in determine_device_map
parent
7993be9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
src/diffusers/models/model_loading_utils.py
src/diffusers/models/model_loading_utils.py
+0
-3
No files found.
src/diffusers/models/model_loading_utils.py
View file @
4fcd0bc7
...
...
@@ -112,9 +112,6 @@ def _determine_device_map(
device_map_kwargs
[
"max_memory"
]
=
max_memory
device_map
=
infer_auto_device_map
(
model
,
dtype
=
target_dtype
,
**
device_map_kwargs
)
if
hf_quantizer
is
not
None
:
hf_quantizer
.
validate_environment
(
device_map
=
device_map
)
return
device_map
...
...
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