    def max_positions(self):
        """Maximum output length supported by the decoder."""
        if self.embed_positions is None:
            return self.max_target_positions
        return min(self.max_target_positions, self.embed_positions.max_positions)
Maximum output length supported by the decoder.
fairseq/models/speech_dlm/modules/speech_dlm_decoder.py