Pass tokenizer or model arguments
When I use an ASR model, I get the following message in the logs:/opt/conda/lib/python3.9/site-packages/transformers/generation_utils.py:1296: UserWarning: Neithermax_lengthnormax_new_tokenshas been set,max_lengthwill default to 20 (self.config.max_length). Controllingmax_lengthvia the config is deprecated andmax_lengthwill be removed from the config in v5 of Transformers – we recommend usingmax_new_tokensto control the maximum length of the generation.Typically with generative models, arguments likemax_lengthcan be passed to the pipeline object to control the tokenizer or model, but my attempts to do so in a request for an ASR endpoint did not work. I know I could create a custom handler, but I’m curious if there is a way to do it with the default endpoint.