As for input length, it’s unconstrained. T5 can take in an arbitrary sequence length, however, memory requirements still apply. Memory consumption scales quadratically with input sentence length, so you’ll quickly run out of it.
Cheers