# Possibly incorrect sequence length warning for sequences greater than model\_max\_length

**URL:** <https://discuss.huggingface.co/t/possibly-incorrect-sequence-length-warning-for-sequences-greater-than-model-max-length/16933>\
**Category:** 🤗Transformers\
**Created:** [April 18, 2022, 4:05pm UTC](https://discuss.huggingface.co/t/possibly-incorrect-sequence-length-warning-for-sequences-greater-than-model-max-length/16933 "2022-04-18T16:05:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marksverdhei](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/marksverdhei/32/4444_2.png) [@marksverdhei](https://discuss.huggingface.co/u/marksverdhei)\
**Post date:** [April 18, 2022, 4:05pm UTC](https://discuss.huggingface.co/t/possibly-incorrect-sequence-length-warning-for-sequences-greater-than-model-max-length/16933/1 "2022-04-18T16:05:53Z")

</div>

Hi,  
I got the warning when evaluating a T5 model:

```auto
Token indices sequence length is longer than the specified maximum sequence length for this model (2348 > 512). Running this sequence through the model will result in indexing errors

```

However, there were no errors.

My question is:  
What indexing exactly is this warning referring to?

My best guess is that they refer to indexing errors for fixed positional embeddings, but then, shouldnt models that use relative positional embeddings not raise this warning?
