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.

Better mem estimation for the LTXV 13B model. (#7963)

comfyanonymous271c9c5b9eb0
diff --git a/comfy/supported_models.py b/comfy/supported_models.py
index d5210cfac..a1dea2343 100644
--- a/comfy/supported_models.py
+++ b/comfy/supported_models.py
@@ -785,6 +785,10 @@ class LTXV(supported_models_base.BASE):
vae_key_prefix = ["vae."]
text_encoder_key_prefix = ["text_encoders."]
+ def __init__(self, unet_config):
+ super().__init__(unet_config)
+ self.memory_usage_factor = (unet_config.get("cross_attention_dim", 2048) / 2048) * 5.5
+
def get_model(self, state_dict, prefix="", device=None):
out = model_base.LTXV(self, device=device)
return out