Skip to content

Commit 99fe09c

Browse files
committed
update
1 parent 0ae3408 commit 99fe09c

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/diffusers/loaders/lora_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def _fetch_state_dict(
227227
file_extension=".safetensors",
228228
local_files_only=local_files_only,
229229
)
230-
231230
model_file = _get_model_file(
232231
pretrained_model_name_or_path_or_dict,
233232
weights_name=weight_name or LORA_WEIGHT_NAME_SAFE,

src/diffusers/utils/peft_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,7 @@ def unscale_lora_layers(model, weight: Optional[float] = None):
147147
module.set_scale(adapter_name, 1.0)
148148

149149

150-
def get_peft_kwargs(
151-
rank_dict,
152-
network_alpha_dict,
153-
peft_state_dict,
154-
is_unet=True,
155-
):
150+
def get_peft_kwargs(rank_dict, network_alpha_dict, peft_state_dict, is_unet=True):
156151
rank_pattern = {}
157152
alpha_pattern = {}
158153
r = lora_alpha = list(rank_dict.values())[0]

tests/lora/test_lora_layers_wan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
WanPipeline,
2525
WanTransformer3DModel,
2626
)
27-
from diffusers.utils.testing_utils import floats_tensor, require_peft_backend
27+
from diffusers.utils.testing_utils import floats_tensor, require_peft_backend, skip_mps
2828

2929

3030
sys.path.append(".")
@@ -33,7 +33,7 @@
3333

3434

3535
@require_peft_backend
36-
# @skip_mps
36+
@skip_mps
3737
class WanLoRATests(unittest.TestCase, PeftLoraLoaderMixinTests):
3838
pipeline_class = WanPipeline
3939
scheduler_cls = FlowMatchEulerDiscreteScheduler

0 commit comments

Comments
 (0)