1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

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

This commit is contained in:
comfyanonymous
2025-05-06 06:52:37 -07:00
committed by GitHub
parent a4e679765e
commit 271c9c5b9e

View File

@@ -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