Skip to content

Commit

Permalink
include value in model tag ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonhyejin committed Mar 5, 2025
1 parent eb88a71 commit ddc8161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/source/mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ def _get_ml_model_properties_workunit(
if model_version.user_id
else None
)
model_version_tags = [f"{k}:{v}" for k, v in model_version.tags.items()]

ml_model_properties = MLModelPropertiesClass(
customProperties=model_version.tags,
Expand All @@ -599,8 +600,7 @@ def _get_ml_model_properties_workunit(
),
hyperParams=hyperparams,
trainingMetrics=training_metrics,
# mlflow tags are dicts, but datahub tags are lists. currently use only keys from mlflow tags
tags=list(model_version.tags.keys()),
tags=model_version_tags,
groups=[ml_model_group_urn],
trainingJobs=training_jobs,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
}
],
"tags": [
"model_version_id"
"model_version_id:1"
],
"groups": [
"urn:li:mlModelGroup:(urn:li:dataPlatform:mlflow,test-model,PROD)"
Expand Down

0 comments on commit ddc8161

Please sign in to comment.