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
f9e55d84
"vscode:/vscode.git/clone" did not exist on "c62e8361676e53f86422e5cb5511673ef3b61e78"
Commit
f9e55d84
authored
Jan 15, 2024
by
comfyanonymous
Browse files
Only auto enable bf16 VAE on nvidia GPUs that actually support it.
parent
2395ae74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/model_management.py
comfy/model_management.py
+1
-1
No files found.
comfy/model_management.py
View file @
f9e55d84
...
...
@@ -175,7 +175,7 @@ try:
if
int
(
torch_version
[
0
])
>=
2
:
if
ENABLE_PYTORCH_ATTENTION
==
False
and
args
.
use_split_cross_attention
==
False
and
args
.
use_quad_cross_attention
==
False
:
ENABLE_PYTORCH_ATTENTION
=
True
if
torch
.
cuda
.
is_bf16_supported
():
if
torch
.
cuda
.
is_bf16_supported
()
and
torch
.
cuda
.
get_device_properties
(
torch
.
cuda
.
current_device
()).
major
>=
8
:
VAE_DTYPE
=
torch
.
bfloat16
if
is_intel_xpu
():
if
args
.
use_split_cross_attention
==
False
and
args
.
use_quad_cross_attention
==
False
:
...
...
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