Skip to content

Commit

Permalink
Mlflow Plugin Fix (#6685) (#6704)
Browse files Browse the repository at this point in the history
* Mlflow plugin fix

Co-authored-by: Francesco Petrini <francescogpetrini@gmail.com>
  • Loading branch information
tanmayv25 and fpetrini15 authored Dec 14, 2023
1 parent ea6d71e commit bbd0d1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/mlflow-triton-plugin/mlflow_triton/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ def _get_copy_paths(self, artifact_path, name, flavor):
# with proper model versions and version strategy, which may differ from
# the versioning in MLFlow
for file in artifact_path.iterdir():
if file.name not in ["MLmodel", "conda.yaml"]:
if file.is_dir():
copy_paths["model_path"]["from"] = file
break
copy_paths["model_path"]["to"] = triton_deployment_dir
elif flavor == "onnx":
# Look for model file via MLModel metadata or iterating dir
Expand Down

0 comments on commit bbd0d1a

Please sign in to comment.