Closed bruno-hays closed 10 months ago
Hi @Hubert-Bonisseur, thanks for raising this issue!
Indeed, this seems to be the result of two PRs - #25884 - which enables saving image processors in pipelines and #25438 which adapted ASR's pipeline's init.
cc @sanchit-gandhi who knows more about the decisions in #25438 and the reason for removing the super().__init__
call
Overriding the init was required to ensure we could correctly set ASR-specific decoding params when we instantiate the pipeline: https://github.com/huggingface/transformers/pull/25438#issuecomment-1676918766
Here's a PR to fix the save_pretrained
functionality of the ASR pipeline: https://github.com/huggingface/transformers/pull/28486
System Info
transformers-4.37.0.dev0
Who can help?
@Narsil
Information
Tasks
examples
folder (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.
https://github.com/bentoml/BentoML/issues/4339