Multi-instance transformers

Hello!

I have a dataset where each sample is composed of n texts (the sum of their lengths in tokens is always greater than 512) and I would like to know if someone know what approach could I take to face this problem. It is a classification problem.

Thank you very much