Skip to content

Commit c228e8e

Browse files
committed
update
1 parent b83a7ce commit c228e8e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/lora/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,16 +2316,14 @@ def test_lora_unload_add_adapter(self):
23162316
pipe, _ = self.add_adapters_to_pipeline(
23172317
pipe, text_lora_config=text_lora_config, denoiser_lora_config=denoiser_lora_config
23182318
)
2319-
output_lora = pipe(**inputs, generator=torch.manual_seed(0))[0]
2319+
_ = pipe(**inputs, generator=torch.manual_seed(0))[0]
23202320

23212321
# unload and then add.
23222322
pipe.unload_lora_weights()
23232323
pipe, _ = self.add_adapters_to_pipeline(
23242324
pipe, text_lora_config=text_lora_config, denoiser_lora_config=denoiser_lora_config
23252325
)
2326-
2327-
output_lora_2 = pipe(**inputs, generator=torch.manual_seed(0))[0]
2328-
self.assertTrue(np.allclose(output_lora, output_lora_2, atol=1e-3, rtol=1e-3), "Lora outputs should match.")
2326+
_ = pipe(**inputs, generator=torch.manual_seed(0))[0]
23292327

23302328
def test_inference_load_delete_load_adapters(self):
23312329
"Tests if `load_lora_weights()` -> `delete_adapters()` -> `load_lora_weights()` works."

0 commit comments

Comments
 (0)