We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70eb49 commit d05a8d2Copy full SHA for d05a8d2
tests/models/test_lora_layers.py
@@ -618,7 +618,10 @@ def test_unload_lora(self):
618
self.assertFalse(np.allclose(initial_images, lora_images))
619
self.assertTrue(np.allclose(initial_images, unloaded_lora_images, atol=1e-3))
620
621
- def test_load_unload_load_lora(self):
+ 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.
625
generator = torch.manual_seed(0)
626
prompt = "masterpiece, best quality, mountain"
627
num_inference_steps = 2
0 commit comments