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
b1fd26fe
"doc/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "b063c417ea5159f13658ac94575cb03878e64610"
Commit
b1fd26fe
authored
Jun 04, 2024
by
comfyanonymous
Browse files
pytorch xpu should be flash or mem efficient attention?
parent
20447e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/model_management.py
comfy/model_management.py
+2
-0
No files found.
comfy/model_management.py
View file @
b1fd26fe
...
...
@@ -693,6 +693,8 @@ def pytorch_attention_flash_attention():
#TODO: more reliable way of checking for flash attention?
if
is_nvidia
():
#pytorch flash attention only works on Nvidia
return
True
if
is_intel_xpu
():
return
True
return
False
def
force_upcast_attention_dtype
():
...
...
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