Adjust memory usage factor calculation for flux2 klein.

This commit is contained in:
comfyanonymous 2026-01-15 20:02:20 -05:00 committed by GitHub
parent 6125b3a5e7
commit cc73235051
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -763,7 +763,7 @@ class Flux2(Flux):
def __init__(self, unet_config):
super().__init__(unet_config)
self.memory_usage_factor = self.memory_usage_factor * (2.0 * 2.0) * 2.36
self.memory_usage_factor = self.memory_usage_factor * (2.0 * 2.0) * (unet_config['hidden_size'] / 2604)
def get_model(self, state_dict, prefix="", device=None):
out = model_base.Flux2(self, device=device)