System Info
transformers-4.37.0.dev0
Who can help?
@Narsil
Information
Tasks
Reproduction
from transformers import pipeline
asr_pipeline = pipeline('automatic-speech-recognition',
model="openai/whisper-tiny")
asr_pipeline.save_pretrained("pipeline_save")
Gives this error:
Traceback (most recent call last):
File "/Users/bruno/testing.py", line 6, in <module>
asr_pipeline.save_pretrained("pipeline_save")
File "/Users/bruno/venv/lib/python3.11/site-packages/transformers/pipelines/base.py", line 883, in save_pretrained
if self.image_processor is not None:
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'AutomaticSpeechRecognitionPipeline' object has no attribute 'image_processor'
Expected behavior
The pipeline should be saved.
save_pretrained a pipeline is used by BentoML, as a result versions of transformers newer than 4.32.1 cannot be used to serve a AutomaticSpeechRecognitionPipeline with bentoML.
bentoml/BentoML#4339
System Info
transformers-4.37.0.dev0
Who can help?
@Narsil
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
Gives this error:
Expected behavior
The pipeline should be saved.
save_pretrained a pipeline is used by BentoML, as a result versions of transformers newer than 4.32.1 cannot be used to serve a AutomaticSpeechRecognitionPipeline with bentoML.
bentoml/BentoML#4339