mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 17:52:35 +06:00
add missing alignment_heads to Whisper integration test (#24487)
add missing alignment heads
This commit is contained in:
parent
868363abb9
commit
3b84d86b57
@ -1442,6 +1442,7 @@ class WhisperModelIntegrationTests(unittest.TestCase):
|
||||
processor = WhisperProcessor.from_pretrained("openai/whisper-tiny")
|
||||
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-tiny")
|
||||
model.to(torch_device)
|
||||
model.generation_config.alignment_heads = [[2, 2], [3, 0], [3, 2], [3, 3], [3, 4], [3, 5]]
|
||||
|
||||
input_speech = self._load_datasamples(4)
|
||||
input_features = processor.feature_extractor(raw_speech=input_speech, return_tensors="pt").input_features.to(
|
||||
|
Loading…
Reference in New Issue
Block a user