Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf674b5

Browse files
authoredJun 13, 2024··
Merge pull request #19 from zenml-io/2024.06.12
Fixing the errors coming up in the pydantic branch
2 parents b790fcb + 5e415d0 commit cf674b5

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed
 

‎template/steps/deploying/{% if deploy_to_skypilot %}skypilot_deployment.py{% endif %}

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# {% include 'template/license_header' %}
22

3-
from typing import Optional, List
4-
53
import os
64
import re
7-
import sky
8-
from huggingface_hub import create_branch, login, HfApi
95

106
from zenml import step
117
from zenml.client import Client
@@ -16,14 +12,15 @@ logger = get_logger(__name__)
1612

1713

1814
@step()
19-
def deploy_to_skypilot(
20-
):
15+
def deploy_to_skypilot():
2116
"""
2217
This step deploy the model to a VM using SkyPilot.
2318

2419
This step requires `skypilot` to be installed.
25-
aswell as a configured cloud account locally (e.g. AWS, GCP, Azure).
20+
as well as a configured cloud account locally (e.g. AWS, GCP, Azure).
2621
"""
22+
import sky
23+
2724
### ADD YOUR OWN CODE HERE - THIS IS JUST AN EXAMPLE ###
2825
zenml_repo_root = Client().root
2926
if not zenml_repo_root:

‎template/steps/promotion/{% if metric_compare_promotion %}promote_metric_compare_promoter.py{% endif %}

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ model_registry = Client().active_stack.model_registry
1414

1515
@step
1616
def promote_metric_compare_promoter(
17-
latest_metrics: Dict[str, str],
18-
current_metrics: Dict[str, str],
17+
latest_metrics: Dict[str, Any],
18+
current_metrics: Dict[str, Any],
1919
metric_to_compare: str = "accuracy",
2020
):
2121
"""Try to promote trained model.

0 commit comments

Comments
 (0)
Please sign in to comment.