Skip to content

Commit d05a8d2

Browse files
committed
load_unload_lora_lora.
1 parent c70eb49 commit d05a8d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/models/test_lora_layers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,10 @@ def test_unload_lora(self):
618618
self.assertFalse(np.allclose(initial_images, lora_images))
619619
self.assertTrue(np.allclose(initial_images, unloaded_lora_images, atol=1e-3))
620620

621-
def test_load_unload_load_lora(self):
621+
def test_load_unload_load_kohya_lora(self):
622+
# This test ensures that a Kohya-style LoRA can be safely unloaded and then loaded
623+
# without introducing any side-effects. Even though the test uses a Kohya-style
624+
# LoRA, the underlying adapter handling mechanism is format-agnostic.
622625
generator = torch.manual_seed(0)
623626
prompt = "masterpiece, best quality, mountain"
624627
num_inference_steps = 2

0 commit comments

Comments
 (0)