"docs/source/vscode:/vscode.git/clone" did not exist on "bdbe1662113b49e81c865f0ca9d3922b500c5414"
Unverified Commit dd9d45b6 authored by Younes Belkada's avatar Younes Belkada Committed by GitHub
Browse files

[`InstructBlip`] Fix instructblip slow test (#25171)

* fix instruct blip slow test

* Update tests/models/instructblip/test_modeling_instructblip.py
parent add0895d
...@@ -537,7 +537,7 @@ class InstructBlipModelIntegrationTest(unittest.TestCase): ...@@ -537,7 +537,7 @@ class InstructBlipModelIntegrationTest(unittest.TestCase):
logits = model(**inputs).logits logits = model(**inputs).logits
expected_slice = torch.tensor( 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, device=torch_device,
) )
self.assertTrue(torch.allclose(logits[0, :3, :3].float(), expected_slice, atol=1e-3)) self.assertTrue(torch.allclose(logits[0, :3, :3].float(), expected_slice, atol=1e-3))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment