Skip to content

Instantly share code, notes, and snippets.

@tehybel
tehybel / StableDiffusionXLLoRAModelLoader.py
Created March 13, 2025 11:12
Enabling tiled decode for SDXL in OneTrainer
# ... some lines from this file are left out ...
def load(
self,
model_type: ModelType,
model_names: ModelNames,
weight_dtypes: ModelWeightDtypes,
) -> StableDiffusionXLModel | None:
base_model_loader = StableDiffusionXLModelLoader()
lora_model_loader = StableDiffusionXLLoRALoader()
embedding_loader = StableDiffusionXLEmbeddingLoader()