# Control generated sequence length in characters

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-generated-sequence-length-in-characters%2F10989%3E%5C
**Category:** Beginners\
**Created:** [October 22, 2021, 8:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-generated-sequence-length-in-characters%2F10989 "2021-10-22T08:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivankrstev7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ivankrstev7/32/4201_2.png) [@ivankrstev7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fivankrstev7)%5C
**Post date:** [October 22, 2021, 8:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcontrol-generated-sequence-length-in-characters%2F10989%2F1 "2021-10-22T08:31:34Z")

</div>

Hello all,  
as far as I know, the `min_length` and `max_length` parameters in `model.generate()` refer to the minimum and maximum length in tokens. My question is, whether there is a way to control the length of the generated sequence in characters?
