Skip to content

Commit

Permalink
Update onnx flavor to support s3 prefix and custom endpoint URL
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaodong Ye <[email protected]>
  • Loading branch information
yeahdongcn committed May 11, 2023
1 parent cccf9ba commit affa822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy/mlflow-triton-plugin/mlflow_triton/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,11 @@ def _copy_files_to_triton_repo(self, artifact_path, name, flavor):

if flavor == "onnx":
s3_path = os.path.join(
self.server_config['s3_prefix'],
copy_paths[key]['to'].replace(
self.server_config['triton_model_repo'], ''),
self.server_config['triton_model_repo'], '').replace('/', '', 1),
filename,
).replace('/', '', 1)
)

elif flavor == "triton":
rel_path = os.path.relpath(
Expand Down

0 comments on commit affa822

Please sign in to comment.