# Max Seq Lengths

**URL:** <https://discuss.huggingface.co/t/max-seq-lengths/10765>\
**Category:** Beginners\
**Created:** [October 14, 2021, 10:22am UTC](https://discuss.huggingface.co/t/max-seq-lengths/10765 "2021-10-14T10:22:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moma1820](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/moma1820/32/4141_2.png) [@moma1820](https://discuss.huggingface.co/u/moma1820)\
**Post date:** [October 14, 2021, 10:22am UTC](https://discuss.huggingface.co/t/max-seq-lengths/10765/1 "2021-10-14T10:22:48Z")

</div>

Hi,  
i was wondering what the default max seq lengths are when using trainer api?

I am fine tuning on a RoBERTa based model

---

<div class="post-metadata">

**Author:** ![brando](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/brando/32/30114_2.png) [@brando](https://discuss.huggingface.co/u/brando)\
**Post date:** [December 6, 2024, 7:46pm UTC](https://discuss.huggingface.co/t/max-seq-lengths/10765/2 "2024-12-06T19:46:27Z")

</div>

are you wondering what values or if to set it in the tokenizer and trainer?
