Allow fine tuning pruned versions of chroma. Allow flash attention 2 for chroma if it is installed.

This commit is contained in:
Jaret Burkett
2025-05-21 07:02:50 -06:00
parent 48e11cf843
commit 79499fa795
3 changed files with 43 additions and 6 deletions

View File

@@ -253,13 +253,13 @@ class StableDiffusion:
def get_bucket_divisibility(self):
if self.vae is None:
return 8
return 16
divisibility = 2 ** (len(self.vae.config['block_out_channels']) - 1)
# flux packs this again,
if self.is_flux or self.is_v3:
divisibility = divisibility * 2
return divisibility
return divisibility * 2 # todo remove this
def load_model(self):