Skip to content

Commit

Permalink
Merge pull request #19 from zenml-io/2024.06.12
Browse files Browse the repository at this point in the history
Fixing the errors coming up in the pydantic branch
  • Loading branch information
bcdurak authored Jun 13, 2024
2 parents b790fcb + 5e415d0 commit cf674b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# {% include 'template/license_header' %}

from typing import Optional, List

import os
import re
import sky
from huggingface_hub import create_branch, login, HfApi

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


@step()
def deploy_to_skypilot(
):
def deploy_to_skypilot():
"""
This step deploy the model to a VM using SkyPilot.

This step requires `skypilot` to be installed.
aswell as a configured cloud account locally (e.g. AWS, GCP, Azure).
as well as a configured cloud account locally (e.g. AWS, GCP, Azure).
"""
import sky

### ADD YOUR OWN CODE HERE - THIS IS JUST AN EXAMPLE ###
zenml_repo_root = Client().root
if not zenml_repo_root:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ model_registry = Client().active_stack.model_registry

@step
def promote_metric_compare_promoter(
latest_metrics: Dict[str, str],
current_metrics: Dict[str, str],
latest_metrics: Dict[str, Any],
current_metrics: Dict[str, Any],
metric_to_compare: str = "accuracy",
):
"""Try to promote trained model.
Expand Down

0 comments on commit cf674b5

Please sign in to comment.