mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
ZLUDA loosen attention settings
This commit is contained in:
+2
-1
@@ -6,4 +6,5 @@ from modules import shared, devices
|
||||
def initialize_zluda():
|
||||
if platform.system() == "Windows" and devices.cuda_ok and torch.cuda.get_device_name(devices.get_optimal_device()).endswith("[ZLUDA]"):
|
||||
torch.backends.cudnn.enabled = False
|
||||
shared.opts.cross_attention_optimization = "Batch matrix-matrix"
|
||||
if shared.opts.cross_attention_optimization == "Scaled-Dot-Product":
|
||||
shared.opts.cross_attention_optimization = "Batch matrix-matrix"
|
||||
|
||||
Reference in New Issue
Block a user