mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-06 11:32:09 +08:00
Better mem estimation for the LTXV 13B model. (#7963)
This commit is contained in:
parent
a4e679765e
commit
271c9c5b9e
@ -785,6 +785,10 @@ class LTXV(supported_models_base.BASE):
|
|||||||
vae_key_prefix = ["vae."]
|
vae_key_prefix = ["vae."]
|
||||||
text_encoder_key_prefix = ["text_encoders."]
|
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):
|
def get_model(self, state_dict, prefix="", device=None):
|
||||||
out = model_base.LTXV(self, device=device)
|
out = model_base.LTXV(self, device=device)
|
||||||
return out
|
return out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user