src/transformers/training_args_tf.py/TFTrainingArguments/n_replicas
class TFTrainingArguments:    def n_replicas(self) -> int:
        """
        The number of replicas (CPUs, GPUs or TPU cores) used in this training.
        """
        requires_backends(self, ["tf"])
        return self._setup_strategy.num_replicas_in_sync