Skip to content

Commit

Permalink
CI: fix failures (huggingface#34371)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
zucchini-nlp authored and BernardZach committed Dec 6, 2024
1 parent caa65f8 commit cbcad62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ def forward(
)

video_features = None
num_frames = 0
if pixel_values_videos is not None:
video_features, num_frames = self.get_video_features(
pixel_values_videos=pixel_values_videos, vision_feature_layer=vision_feature_layer
Expand Down
2 changes: 1 addition & 1 deletion tests/models/instructblip/test_modeling_instructblip.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def test_inference_vicuna_7b(self):
logits = model(**inputs).logits

expected_slice = torch.tensor(
[[-3.3926, -12.2969, 8.4922], [-5.0195, -11.9531, 8.1406], [-4.0039, -13.3594, 9.2578]],
[[-3.3047, -12.0625, 8.4922], [-4.9258, -11.7578, 8.1406], [-3.9297, -13.5000, 9.2500]],
device=torch_device,
)

Expand Down

0 comments on commit cbcad62

Please sign in to comment.