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
chenpangpang
ComfyUI
Commits
0b3c5048
Commit
0b3c5048
authored
Feb 16, 2024
by
comfyanonymous
Browse files
Make --force-fp32 disable loading models in bf16.
parent
97d03ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
comfy/model_management.py
comfy/model_management.py
+3
-0
No files found.
comfy/model_management.py
View file @
0b3c5048
...
...
@@ -772,6 +772,9 @@ def should_use_fp16(device=None, model_params=0, prioritize_performance=True, ma
return
True
def
should_use_bf16
(
device
=
None
):
if
FORCE_FP32
:
return
False
if
is_intel_xpu
():
return
True
...
...
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