Formatting

This commit is contained in:
Billy
2025-06-24 07:26:42 +10:00
parent de5f413440
commit 2832ca300f
2 changed files with 1 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class LoRALoader(ModelLoader):
# Strip 'bundle_emb' keys - these are unused and currently cause downstream errors.
# To revisit later to determine if they're needed/useful.
state_dict = { k: v for k, v in state_dict.items() if not k.startswith("bundle_emb") }
state_dict = {k: v for k, v in state_dict.items() if not k.startswith("bundle_emb")}
# At the time of writing, we support the OMI standard for base models Flux and SDXL
if config.format == ModelFormat.OMI and self._model_base in [

View File

@ -35,7 +35,6 @@ def convert_sdxl_keys_to_diffusers_format(state_dict: Dict[str, T]) -> dict[str,
new_state_dict: dict[str, T] = {}
for full_key, value in state_dict.items():
if full_key.startswith("lora_unet_"):
search_key = full_key.replace("lora_unet_", "")
# Use bisect to find the key in stability_unet_keys that *may* match the search_key's prefix.