# Control generated sequence length in characters

**URL:** <https://discuss.huggingface.co/t/control-generated-sequence-length-in-characters/10989>\
**Category:** Beginners\
**Created:** [October 22, 2021, 8:31am UTC](https://discuss.huggingface.co/t/control-generated-sequence-length-in-characters/10989 "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](https://discuss.huggingface.co/u/ivankrstev7)\
**Post date:** [October 22, 2021, 8:31am UTC](https://discuss.huggingface.co/t/control-generated-sequence-length-in-characters/10989/1 "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?
