    def max_positions(self):
        """Maximum length supported by the model."""
        return (self.encoder_max_positions, self.decoder_max_positions)
Maximum length supported by the model.
fairseq/model_parallel/models/pipeline_parallel_transformer/model.py