From dd9d45b6ecc0861847e21d461187711331a56138 Mon Sep 17 00:00:00 2001 From: Younes Belkada <49240599+younesbelkada@users.noreply.github.com> Date: Fri, 28 Jul 2023 17:00:10 +0200 Subject: [PATCH] [`InstructBlip`] Fix instructblip slow test (#25171) * fix instruct blip slow test * Update tests/models/instructblip/test_modeling_instructblip.py --- tests/models/instructblip/test_modeling_instructblip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/models/instructblip/test_modeling_instructblip.py b/tests/models/instructblip/test_modeling_instructblip.py index e3fe2074e6..fab53e4d92 100644 --- a/tests/models/instructblip/test_modeling_instructblip.py +++ b/tests/models/instructblip/test_modeling_instructblip.py @@ -537,7 +537,7 @@ class InstructBlipModelIntegrationTest(unittest.TestCase): logits = model(**inputs).logits expected_slice = torch.tensor( - [[-3.5410, -12.2812, 8.2812], [-5.2500, -12.0938, 7.8398], [-4.1523, -13.8281, 9.0000]], + [[-3.5020, -12.3281, 8.4453], [-5.1406, -11.9609, 7.8711], [-4.0430, -13.4375, 9.1172]], device=torch_device, ) self.assertTrue(torch.allclose(logits[0, :3, :3].float(), expected_slice, atol=1e-3))