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
3661e106
Commit
3661e106
authored
Jan 29, 2023
by
comfyanonymous
Browse files
Add a command line option to disable upcasting in some cross attention ops.
parent
50db297c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
main.py
main.py
+4
-0
No files found.
main.py
View file @
3661e106
...
@@ -6,6 +6,10 @@ import threading
...
@@ -6,6 +6,10 @@ import threading
import
queue
import
queue
import
traceback
import
traceback
if
'--dont-upcast-attention'
in
sys
.
argv
:
print
(
"disabling upcasting of attention"
)
os
.
environ
[
'ATTN_PRECISION'
]
=
"fp16"
import
torch
import
torch
import
nodes
import
nodes
...
...
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