SDNQ skip bad layers on svd and fix svd with dequantize_fp32

This commit is contained in:
Disty0
2025-10-17 17:25:50 +03:00
parent 7593f862df
commit f12caf81f9
6 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ def diffusers_callback_legacy(step: int, timestep: int, latents: typing.Union[to
def diffusers_callback(pipe, step: int = 0, timestep: int = 0, kwargs: dict = {}):
t0 = time.time()
if devices.backend == "ipex": # xe driver on linux needs this
if devices.backend == "ipex":
torch.xpu.synchronize(devices.device)
elif (devices.backend == "zluda") or (devices.backend == "rocm") or (devices.backend == "cuda"):
elif devices.backend in {"cuda", "zluda", "rocm"}:
torch.cuda.synchronize(devices.device)
latents = kwargs.get('latents', None)
if debug: