Skip to content

Commit

Permalink
fix test_large_generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eustlb committed Nov 2, 2024
1 parent f648c1d commit 71f98ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/models/whisper/test_modeling_whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1841,8 +1841,8 @@ def test_tiny_generation(self):
def test_large_generation(self):
torch_device = "cpu"
set_seed(0)
processor = WhisperProcessor.from_pretrained("openai/whisper-large")
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large")
processor = WhisperProcessor.from_pretrained("openai/whisper-large-v3")
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-large-v3")
model.to(torch_device)

input_speech = self._load_datasamples(1)
Expand All @@ -1854,7 +1854,7 @@ def test_large_generation(self):
)
transcript = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]

EXPECTED_TRANSCRIPT = " Mr. Quilter is the apostle of the middle classes and we are glad"
EXPECTED_TRANSCRIPT = " Mr. Quilter is the apostle of the middle classes, and we are glad to welcome his"
self.assertEqual(transcript, EXPECTED_TRANSCRIPT)

@slow
Expand Down

0 comments on commit 71f98ae

Please sign in to comment.