Detalles completos del error:
Traceback (most recent call last):
File "D:\CORTADOR\CORTADOR IA BY_EUROBLOKE\SCRIPTS\final2.py", line 84, in main
pipe = pipeline(
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\pipelines_init_.py", line 926, in pipeline
framework, model = infer_framework_load_model(
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\pipelines\base.py", line 302, in infer_framework_load_model
raise ValueError(
ValueError: Could not load model openai/whisper-large-v3 with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForCTC'>, <class 'transformers.models.auto.modeling_auto.AutoModelForSpeechSeq2Seq'>, <class 'transformers.models.whisper.modeling_whisper.WhisperForConditionalGeneration'>). See the original errors:
while loading with AutoModelForCTC, an error is thrown:
Traceback (most recent call last):
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\pipelines\base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\auto\auto_factory.py", line 567, in from_pretrained
raise ValueError(
ValueError: Unrecognized configuration class <class 'transformers.models.whisper.configuration_whisper.WhisperConfig'> for this kind of AutoModel: AutoModelForCTC.
Model type should be one of Data2VecAudioConfig, HubertConfig, MCTCTConfig, SEWConfig, SEWDConfig, UniSpeechConfig, UniSpeechSatConfig, Wav2Vec2Config, Wav2Vec2BertConfig, Wav2Vec2ConformerConfig, WavLMConfig.
while loading with AutoModelForSpeechSeq2Seq, an error is thrown:
Traceback (most recent call last):
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\pipelines\base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\models\auto\auto_factory.py", line 564, in from_pretrained
return model_class.from_pretrained(
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 4091, in from_pretrained
config = cls._autoset_attn_implementation(
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 1589, in _autoset_attn_implementation
raise ValueError(message + ".")
ValueError: Specified attn_implementation="torch" is not supported. The only possible arguments are attn_implementation="eager" (manual attention implementation), "attn_implementation=flash_attention_2" (implementation using flash attention 2), "attn_implementation=sdpa" (implementation using torch.nn.functional.scaled_dot_product_attention).
while loading with WhisperForConditionalGeneration, an error is thrown:
Traceback (most recent call last):
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\pipelines\base.py", line 289, in infer_framework_load_model
model = model_class.from_pretrained(model, **kwargs)
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 4091, in from_pretrained
config = cls._autoset_attn_implementation(
File "C:\Users\Eurobloke\AppData\Local\Programs\Python\Python310\lib\site-packages\transformers\modeling_utils.py", line 1589, in _autoset_attn_implementation
raise ValueError(message + ".")
ValueError: Specified is not supported. The only possible arguments are (manual attention implementation), (implementation using flash attention 2), (implementation using torch.nn.functional.scaled_dot_product_attention).