Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/models/phi4_multimodal/test_modeling_phi4_multimodal.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ def test_flex_attention_with_grads(self):
@slow
class Phi4MultimodalIntegrationTest(unittest.TestCase):
checkpoint_path = "microsoft/Phi-4-multimodal-instruct"
revision = "refs/pr/70"
revision = "refs/pr/94"
image_url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/tasks/australia.jpg"
audio_url = "https://huggingface.co/datasets/raushan-testing-hf/audio-test/resolve/main/f2641_0_throatclearing.wav"

def setUp(self):
# Currently, the Phi-4 checkpoint on the hub is not working with the latest Phi-4 code, so the slow integration tests
# won't pass without using the correct revision (refs/pr/70)
# won't pass without using the correct revision (refs/pr/94)
self.processor = AutoProcessor.from_pretrained(self.checkpoint_path, revision=self.revision)
self.generation_config = GenerationConfig(max_new_tokens=20, do_sample=False)
self.user_token = "<|user|>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
class Phi4MultimodalProcessorTest(ProcessorTesterMixin, unittest.TestCase):
processor_class = Phi4MultimodalProcessor
checkpoint_path = "microsoft/Phi-4-multimodal-instruct"
revision = "refs/pr/70"
revision = "refs/pr/94"
text_input_name = "input_ids"
images_input_name = "image_pixel_values"
audio_input_name = "audio_input_features"
Expand Down
Loading