    def to_triton(self) -> int:
        """
        save model in triton and return the status.
        0 means do nothing, -1 means failed, 1 means successfully created the model repo.
        """
        if not set(self._model_format_priority) & set(self._op.supported_formats):
            return 0
        if not self._create_model_dir():
            return -1
        return self._prepare_model()
save model in triton and return the status.
0 means do nothing, -1 means failed, 1 means successfully created the model repo.
towhee/serve/triton/model_to_triton.py