Skip to content

Commit 20273e5

Browse files
authored
[tests] chore: rename lora model-level tests. (#11481)
chore: rename lora model-level tests.
1 parent d4dc4d7 commit 20273e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models/test_modeling_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ def test_deprecated_kwargs(self):
10601060
@parameterized.expand([True, False])
10611061
@torch.no_grad()
10621062
@unittest.skipIf(not is_peft_available(), "Only with PEFT")
1063-
def test_save_load_lora_adapter(self, use_dora=False):
1063+
def test_lora_save_load_adapter(self, use_dora=False):
10641064
import safetensors
10651065
from peft import LoraConfig
10661066
from peft.utils import get_peft_model_state_dict
@@ -1117,7 +1117,7 @@ def test_save_load_lora_adapter(self, use_dora=False):
11171117
self.assertTrue(torch.allclose(outputs_with_lora, outputs_with_lora_2, atol=1e-4, rtol=1e-4))
11181118

11191119
@unittest.skipIf(not is_peft_available(), "Only with PEFT")
1120-
def test_wrong_adapter_name_raises_error(self):
1120+
def test_lora_wrong_adapter_name_raises_error(self):
11211121
from peft import LoraConfig
11221122

11231123
from diffusers.loaders.peft import PeftAdapterMixin

0 commit comments

Comments
 (0)