    def max_positions(self):
        """Maximum input length supported by the encoder."""
        return 1e6  # an arbitrary large number
Maximum input length supported by the encoder.
fairseq/models/fairseq_encoder.py