Skip to content

Commit f9bd3eb

Browse files
committed
fix
1 parent b12f797 commit f9bd3eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/lora/test_lora_layers_flux.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,10 @@ def test_with_norm_in_state_dict(self):
196196
lora_unload_output = pipe(**inputs, generator=torch.manual_seed(0))[0]
197197

198198
self.assertTrue(pipe.transformer._transformer_norm_layers is None)
199-
self.assertFalse(np.allclose(original_output, lora_load_output, atol=1e-5, rtol=1e-5))
200199
self.assertTrue(np.allclose(original_output, lora_unload_output, atol=1e-5, rtol=1e-5))
200+
self.assertFalse(
201+
np.allclose(original_output, lora_load_output, atol=1e-6, rtol=1e-6), f"{norm_layer} is tested"
202+
)
201203

202204
with CaptureLogger(logger) as cap_logger:
203205
for key in list(norm_state_dict.keys()):

0 commit comments

Comments
 (0)