How to get model references logged by a specific run? #1485
-
We are trying to save a model using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To get the logged model refs: from polyaxon.client import RunClient
run_client = RunClient(project="PROJECT_NAME", run_uuid="RUN_UUID")
# Query the lineage information
lineages = run_client.get_artifacts_lineage(query="kind: model").results
# Download the lineage assets
for lineage in lineages:
run_client.download_artifact_for_lineage(lineage=lineage) You can restrict the ref to specific lineage by filtering further by name: lineages = run_client.get_artifacts_lineage(query="kind: model, name: best_auc").results |
Beta Was this translation helpful? Give feedback.
To get the logged model refs:
You can restrict the ref to specific lineage by filtering further by name: