Oigres:

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


The Error is pretty clear. It looks like truncate is not applied correctly.
Which model are you using?