def checkpoint_suffix(self) -> str:
        """Suffix to add to the checkpoint file name."""
        # if self.cfg.distributed_training.ddp_backend == "fully_sharded":
        #     return self.cfg.checkpoint.checkpoint_suffix + "-shard{0}".format(self.data_parallel_rank)
        # else:
        return self.cfg.checkpoint.checkpoint_suffix or ""
Suffix to add to the checkpoint file name.
kosmos-2/fairseq/fairseq/ds_trainer.py