@property
def num_replica(self) -> int:
    if (is_gpu_available() and self.resource_quota.on_gpu):
        return len(self.resource_quota.gpus)
    return 1
@property
def num_replica(self) -> int:
    if (is_gpu_available() and self.resource_quota.on_gpu):
        return len(self.resource_quota.gpus)
    return 1