Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix issue loading fp8 ltxav checkpoints. (#12582)

comfyanonymouscaa43d2395a6
diff --git a/comfy/ldm/lightricks/embeddings_connector.py b/comfy/ldm/lightricks/embeddings_connector.py
index 862bc844a..33adb9671 100644
--- a/comfy/ldm/lightricks/embeddings_connector.py
+++ b/comfy/ldm/lightricks/embeddings_connector.py
@@ -157,11 +157,9 @@ class Embeddings1DConnector(nn.Module):
self.num_learnable_registers = num_learnable_registers
if self.num_learnable_registers:
self.learnable_registers = nn.Parameter(
- torch.rand(
+ torch.empty(
self.num_learnable_registers, inner_dim, dtype=dtype, device=device
)
- * 2.0
- - 1.0
)
def get_fractional_positions(self, indices_grid):