Skip to main content

No project description provided

Project description

Intro

MLOps Utilities provides:

  • Implementation of high level operations most commonly occuring in workflows for production-ready ML models:
    • Dataset versioning
    • Building of training pipeline from initial code sources: Jupyter notebooks, python modules, etc.
    • Training pipeline deployment
    • Scheduling its execution on timely or event-triggered execution, e.g., new dataset version
    • Zero-config lineage tracking
    • Zero-config model versioning and model registry
    • Model packaging and deployment
    • Model endpoint management
    • Data quality monitoring setup
    • Model quality monitoring setup
  • In AWS cloud.

Installation

pip install mlops-utilities

User Guide

Concepts

This library simplifies MLOps workflow implementation by greatly reducing amount of boilerplate code and configuration required. It does so by relying on specific conventions for project structure described below.

Use cases are sorted by increasing complexity.

[NOT IMPLEMENTED] The simplest case

You made a single Jupyter notebook that:

  • takes as input a training dataset location
  • preprocess data using Pandas
  • train model using scikit-learn
  • evaluate model using scikit-learn
  • uses one of the predefined kernels of Sagemaker Studio as an execution environment.
  • You have not changed this environment with pip installs. If you did then check the next use case.

You prepared / Project Structure:

<PROJECT_ROOT>
  |-- my_project07.ipynb

Library usage:

To build and deploy pipeline (in SageMaker) use the following CLI command:

mlops upsert-pipeline TODO header of help description for this command

or from code:

from mlops_utilities.actions import upsert_pipeline
...
TODO
upsert_pipeline(TODO args example)

To execute the previously upserted pipeline:

mlops run-pipeline TODO

Training pipeline execution produces new model version in model registry. To deploy it onto real-time endpoint use the following CLI command:

mlops deploy-model TODO

[NOT IMPLEMENTED] The "simple" layout

TODO - The same as default layout but without writing pipeline definition using SageMaker SDK.

The "default" layout

If you separated code of different pipeline steps and defined training pipeline using SageMaker SDK.

You prepared / Project Structure:

<PROJECT_ROOT>
  |-- components
          |-- preprocessing
                  |-- preprocess.py
                  |__ requirements.txt
          |-- training
                  |__ train.py
          |__ <folders for other steps>
  |-- pipelines
          |-- training_pipeline.py
          |-- training_pipeline.defaults.conf
          |-- inference_pipeline.py
          |__ inference_pipeline.defaults.conf

Structure of Pipeline Definition Script

TODO

Component Structure and Environments

TODO

Library usage:

To build and deploy pipeline (in SageMaker) use the following CLI command:

mlops upsert-pipeline TODO header of help description for this command

or from code:

from mlops_utilities.actions import upsert_pipeline
...
TODO
upsert_pipeline(TODO args example)

To execute the previously upserted pipeline:

mlops run-pipeline TODO

Training pipeline execution produces new model version in model registry. To deploy it onto real-time endpoint use the following CLI command:

mlops deploy-model TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlops_utilities-0.4.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlops_utilities-0.4.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mlops_utilities-0.4.4.tar.gz.

File metadata

  • Download URL: mlops_utilities-0.4.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for mlops_utilities-0.4.4.tar.gz
Algorithm Hash digest
SHA256 fd31da178456e34fba0e6428276020424ab53b37e19747fa0470b0468273ce9f
MD5 05250f0a94534f3c85fd9c45838a7a37
BLAKE2b-256 b3783c3aa1c99e19c4e63a44d40a49807541e2978dd04ca8354fd40fc1f89dd6

See more details on using hashes here.

File details

Details for the file mlops_utilities-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: mlops_utilities-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-1031-azure

File hashes

Hashes for mlops_utilities-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d78e50a35b4fa879f7391f5b30c86838efceeae9d6b81fc784b33a0fa9f95469
MD5 4d7ec7a0009c35513782810e40ce4f37
BLAKE2b-256 044a899e89c4b5f4126b35ccfcd45cc9bb5473798eae359a6a027bacbd73c5ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page