This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor run.py to run with both seldon and mlflow and other improvments
- Loading branch information
1 parent
621f305
commit 97e9aa6
Showing
11 changed files
with
332 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
|
||
from zenml.pipelines import pipeline | ||
|
||
# Path to a pip requirements file that contains requirements necessary to run | ||
# the pipeline | ||
|
||
|
||
@pipeline( | ||
enable_cache=False, | ||
requirements_file="../requirements.txt", | ||
required_integrations=["seldon", "mlflow", "evidently"], | ||
) | ||
def inference_pipeline( | ||
dynamic_importer, | ||
prediction_service_loader, | ||
predictor, | ||
): | ||
# Link all the steps artifacts together | ||
batch_data = dynamic_importer() | ||
model_deployment_service = prediction_service_loader() | ||
predictor(model_deployment_service, batch_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
git+https://github.com/zenml-io/zenml.git@misc/zenbytes | ||
zenml | ||
notebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.