Skip to content

Commit

Permalink
Merge pull request #28 from zenml-io/2024.11.28
Browse files Browse the repository at this point in the history
Removing the deprecated `log_xxx_metadata` calls
  • Loading branch information
bcdurak authored Dec 2, 2024
2 parents dadf9be + 1ae14e3 commit 4f9d89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ jobs:
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
ref-zenml: ${{ inputs.ref-zenml || 'feature/followup-run-metadata' }}
ref-template: ${{ inputs.ref-template || github.ref }}
5 changes: 3 additions & 2 deletions template/steps/training/model_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
TrainingArguments,
AutoModelForSequenceClassification,
)
from zenml import ArtifactConfig, log_artifact_metadata, step
from zenml import ArtifactConfig, log_metadata, step
from zenml.client import Client
from zenml.integrations.mlflow.experiment_trackers import MLFlowExperimentTracker
from zenml.logger import get_logger
Expand Down Expand Up @@ -135,9 +135,10 @@ def model_trainer(
eval_results = trainer.evaluate(metric_key_prefix="")

# Log the evaluation results in model control plane
log_artifact_metadata(
log_metadata(
metadata={"metrics": eval_results},
artifact_name="model",
infer_artifact=True,
)
### YOUR CODE ENDS HERE ###

Expand Down

0 comments on commit 4f9d89b

Please sign in to comment.