From 92ad76624751c0f4a7973e19812fd1b01a60a5e5 Mon Sep 17 00:00:00 2001 From: Guillaume Besson Date: Tue, 20 Jan 2026 10:01:22 +0100 Subject: [PATCH] Fix variable name in docstring for PeftAdapterMixin.set_adapters --- src/diffusers/loaders/peft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diffusers/loaders/peft.py b/src/diffusers/loaders/peft.py index 16f1a5d1ec7e..6cdd66a0f2c4 100644 --- a/src/diffusers/loaders/peft.py +++ b/src/diffusers/loaders/peft.py @@ -478,7 +478,7 @@ def set_adapters( Args: adapter_names (`List[str]` or `str`): The names of the adapters to use. - adapter_weights (`Union[List[float], float]`, *optional*): + weights (`Union[List[float], float]`, *optional*): The adapter(s) weights to use with the UNet. If `None`, the weights are set to `1.0` for all the adapters. @@ -495,7 +495,7 @@ def set_adapters( "jbilcke-hf/sdxl-cinematic-1", weight_name="pytorch_lora_weights.safetensors", adapter_name="cinematic" ) pipeline.load_lora_weights("nerijs/pixel-art-xl", weight_name="pixel-art-xl.safetensors", adapter_name="pixel") - pipeline.unet.set_adapters(["cinematic", "pixel"], adapter_weights=[0.5, 0.5]) + pipeline.unet.set_adapters(["cinematic", "pixel"], weights=[0.5, 0.5]) ``` """ if not USE_PEFT_BACKEND: