Skip to content

Commit

Permalink
upload model config to mlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdrydew committed May 2, 2022
1 parent 6d1189b commit 7de367f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions export_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def to_save(x):
mlflow.set_tracking_uri(args.mlflow_url)
mlflow.set_experiment('model_export')

mlflow.log_artifact(str(model_path / 'config.yaml'), artifact_path='model_onnx')
mlflow.onnx.log_model(onnx_model, artifact_path='model_onnx', registered_model_name=args.mlflow_model_name)


Expand Down

0 comments on commit 7de367f

Please sign in to comment.