    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/models/fairseq_model.py