# MAX\_LEN in ZeroShot

**URL:** <https://discuss.huggingface.co/t/max-len-in-zeroshot/26464>\
**Category:** Models\
**Created:** [November 21, 2022, 6:20pm UTC](https://discuss.huggingface.co/t/max-len-in-zeroshot/26464 "2022-11-21T18:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mabu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mabu/32/4596_2.png) [@mabu](https://discuss.huggingface.co/u/mabu)\
**Post date:** [November 21, 2022, 6:20pm UTC](https://discuss.huggingface.co/t/max-len-in-zeroshot/26464/1 "2022-11-21T18:20:32Z")

</div>

Hello there, how can I change the `MAX_LEN` property in the `zero-shot-classification` pipeline?

Should I define a model via something like `AutoModelForSequenceClassification` first and then pass to `pipeline` or I can set the property directly to `pipeline`?
