ames="feng")

feng_peft_model = get_peft_model(
    sdxl_unet,
    pipeline.unet.peft_config["feng"],
    adapter_name="feng"
)

original_state_dict = {f"base_model.model.{k}": v for k, v in pipe.unet.state_dict().items()}
feng_peft_model.load_state_dict(original_state_dict, strict=True) Load a base UNet model and then load the adapters onto it.   Copied from peft import PeftModel

base_unet = UNet2DConditionModel.from_pretrained(
    "stabilit