The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fp8 weight support for Stable Cascade.
comfyanonymous11e3221f1fd0
diff --git a/comfy/ldm/cascade/common.py b/comfy/ldm/cascade/common.pyindex c2ef3ec4b..124902c09 100644--- a/comfy/ldm/cascade/common.py+++ b/comfy/ldm/cascade/common.py@@ -84,7 +84,7 @@ class GlobalResponseNorm(nn.Module):def forward(self, x):Gx = torch.norm(x, p=2, dim=(1, 2), keepdim=True)Nx = Gx / (Gx.mean(dim=-1, keepdim=True) + 1e-6)- return self.gamma.to(x.device) * (x * Nx) + self.beta.to(x.device) + x+ return self.gamma.to(device=x.device, dtype=x.dtype) * (x * Nx) + self.beta.to(device=x.device, dtype=x.dtype) + xclass ResBlock(nn.Module):