Skip to content

Commit

Permalink
removing deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Nov 13, 2024
1 parent dadf9be commit 8d87577
Show file tree
Hide file tree
Showing 2 changed files with 3 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 }}
4 changes: 2 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,7 +135,7 @@ 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",
)
Expand Down

0 comments on commit 8d87577

Please sign in to comment.