Max length transformers problem

Max length transformers problem what techniques to use to fit transformers with more than 512 tokens