# min\_length in generate method

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmin-length-in-generate-method%2F10580%3E%5C
**Category:** Models\
**Created:** [October 7, 2021, 8:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmin-length-in-generate-method%2F10580 "2021-10-07T08:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sooftware](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sooftware/32/2847_2.png) [@sooftware](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsooftware)%5C
**Post date:** [October 7, 2021, 8:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmin-length-in-generate-method%2F10580%2F1 "2021-10-07T08:01:22Z")

</div>

Hi! I have a question about `generate` method.  
Model’s original eos\_token is `</s>` but, I designated eos\_token `<sep>` when I use generate method.  
If min\_length is specified, I want to determine the minimum length until is generated.  
What can I do?
