# Max Seq Lengths

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-seq-lengths%2F10765%3E%5C
**Category:** Beginners\
**Created:** [October 14, 2021, 10:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-seq-lengths%2F10765 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmoma1820)%5C
**Post date:** [October 14, 2021, 10:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-seq-lengths%2F10765%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbrando)%5C
**Post date:** [December 6, 2024, 7:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmax-seq-lengths%2F10765%2F2 "2024-12-06T19:46:27Z")

</div>

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