Skip to content

Commit 8846635

Browse files
authored
fix deprecation in lora after 0.34.0 release (huggingface#11802)
1 parent dd28509 commit 8846635

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

src/diffusers/loaders/lora_base.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,15 +1022,3 @@ def save_function(weights, filename):
10221022
@classmethod
10231023
def _optionally_disable_offloading(cls, _pipeline):
10241024
return _func_optionally_disable_offloading(_pipeline=_pipeline)
1025-
1026-
@classmethod
1027-
def _fetch_state_dict(cls, *args, **kwargs):
1028-
deprecation_message = f"Using the `_fetch_state_dict()` method from {cls} has been deprecated and will be removed in a future version. Please use `from diffusers.loaders.lora_base import _fetch_state_dict`."
1029-
deprecate("_fetch_state_dict", "0.35.0", deprecation_message)
1030-
return _fetch_state_dict(*args, **kwargs)
1031-
1032-
@classmethod
1033-
def _best_guess_weight_name(cls, *args, **kwargs):
1034-
deprecation_message = f"Using the `_best_guess_weight_name()` method from {cls} has been deprecated and will be removed in a future version. Please use `from diffusers.loaders.lora_base import _best_guess_weight_name`."
1035-
deprecate("_best_guess_weight_name", "0.35.0", deprecation_message)
1036-
return _best_guess_weight_name(*args, **kwargs)

tests/lora/test_deprecated_utilities.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)