Skip to content

Commit 7f19a35

Browse files
committed
fix CI
1 parent 8d065d3 commit 7f19a35

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/models/video_llama_3/test_modeling_video_llama_3.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,8 @@ def test_small_model_integration_test_batch_wo_image(self):
883883
EXPECTED_DECODED_TEXT = Expectations(
884884
{
885885
("cuda", None): [
886-
"user\n\nDescribe the image.\nassistant\nThe image captures a vibrant nighttime scene on a bustling city street. A woman in a striking red dress",
887-
"user\nWhat is relativity?\nassistant\nRelativity is a scientific theory that describes the relationship between space and time. It was first proposed by",
886+
'user\n\nDescribe the image.\nassistant\nThe image captures a vibrant night scene in a bustling Japanese city. A woman in a striking red dress',
887+
'user\nWhat is relativity?\nassistant\nRelativity is a scientific theory that describes the relationship between space and time. It was first proposed by'
888888
],
889889
("xpu", None): [
890890
"user\n\nDescribe the image.\nassistant\nThe image captures a vibrant nighttime scene on a bustling city street. A woman in a striking red dress",
@@ -898,6 +898,7 @@ def test_small_model_integration_test_batch_wo_image(self):
898898
self.processor.batch_decode(output, skip_special_tokens=True),
899899
EXPECTED_DECODED_TEXT,
900900
)
901+
901902
def test_small_model_integration_test_batch_different_resolutions(self):
902903
model = VideoLlama3ForConditionalGeneration.from_pretrained(
903904
"lkhl/VideoLLaMA3-2B-Image-HF", dtype=torch.bfloat16, device_map=torch_device
@@ -917,8 +918,8 @@ def test_small_model_integration_test_batch_different_resolutions(self):
917918
EXPECTED_DECODED_TEXT = Expectations(
918919
{
919920
("cuda", None): [
920-
"user\n\nDescribe the image.\nassistant\nThe image captures a vibrant nighttime scene on a bustling city street. A woman in a striking red dress",
921-
"user\n\nDescribe the image.\nassistant\nThe image depicts a striking urban scene at night. A person is standing in the center of a wet",
921+
'user\n\nDescribe the image.\nassistant\nThe image captures a vibrant night scene in a bustling Japanese city. A woman in a striking red dress',
922+
'user\n\nDescribe the image.\nassistant\nThe image depicts a striking urban scene at night. A person is standing in the center of a wet'
922923
],
923924
("xpu", None): [
924925
"user\n\nDescribe the image.\nassistant\nThe image captures a vibrant night scene in a bustling Japanese city. A woman in a striking red dress",

0 commit comments

Comments
 (0)