    def num_tokens(self, index):
        """dummy implementation: we don't use --max-tokens"""
        return 1
dummy implementation: we don't use --max-tokens
examples/MMPT/mmpt/datasets/fairseqmmdataset.py