Skip to main content

Hexa MLOps package

Project description

HexaMLOPS CLI

The HexaMLOps command line tool allows data science teams to generate deployment files needed for platforms like Azure, Kubeflow, and more (coming soon).

By using our abstraction files, data science teams can easily generate deployment files that are compatible with the CLI or SDK of various Machine Learning (ML) platforms, enabling seamless operations on those platforms.

Installation

# Create a VENV
python3 -m venv VENV
. ./VENV/bin/activate
pip install hexa_mlops --upgrade # upgrade to last version

Usage

$ hexa [engine_type] [ file_type ] [ command ] {parameters}

Get Started

Please refer to the User guide for in-depth instructions.

For usage and help content, pass in the -h parameter, for example:

$ hexa az -h
$ hexa general -h

Testing

python -m build && pip install . && cd tests && python -m unittest

Inputs

Primary input files are configuration.yaml and training.yaml

configuration.yaml example

# General fields
resource_group: xxx
workspace_name: xxx
location: xxx
experiment_name: hexa_mlops
tags: created_by:hexa_mlops

# Fields to generate files for training
training:  
  compute_name: hexa_compute
  max_instances: 2

  environment_name: hexa_env
  environment_version: 1
  environment_dependencies:
    - python=3.8
    - numpy=1.21.2
    - pip=21.2.4
    - scikit-learn=0.24.2
    - pip:
        - inference-schema[numpy-support]==1.3.0
        - xlrd==2.0.1
        - mlflow==2.6.0
        - azureml-mlflow==1.42.0
    source_code_path: ./src
# Fields to generate files for inference
inference:
    compute_name: inference_compute
    max_instances: 3
    environment_name: inference_env
    environment_version: 2
    endpoint_name: hexa_ml_endpoint
    deployment_name: hexa_ml_blue_deployment

training.yaml example

# Global input
inputs:
  - name: data_config
    type: uri_file
    path: ./src/download_data/config_yaml
# Global output
outputs:
  - name: data_output
    type: uri_folder
    mode: upload

# Jobs within your training pipeline
steps:
  - name: download_data
    inputs:
      - data_config: parent.inputs.data_config
     
    outputs:
      - data_folder: 

  - name : data_prep
    inputs:
      - json_folder: download_data.outputs.data_folder
    outputs:
      - output_folder: parent.outputs.data_output
 

Outputs

Command to generate files which are used with Azure Machine Learning CLI for ML operation on Azure ML platform, for example:

  • Training a model with pipeline.yaml
$ hexa az training_pipeline generate config.yaml pipeline.yaml training.yaml
  • Deploy a model as an online endpoint with online_deployment.yaml
$ hexa az online_deployment generate config.yaml online_deployment.yaml

For other supported file types, check -h command

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

hexa_mlops-0.1.0a0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

hexa_mlops-0.1.0a0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file hexa_mlops-0.1.0a0.tar.gz.

File metadata

  • Download URL: hexa_mlops-0.1.0a0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for hexa_mlops-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 6930e56f4868ed28c31afef1e8be1edaeedfff8c8fe0db6beb60308a82c68dc3
MD5 f530becf8df36db79759f95bac3b4fe6
BLAKE2b-256 a5a9e99ca4b63956217e1ba1d583c003252240e3023b0d6b9cd6e8b7be07998a

See more details on using hashes here.

File details

Details for the file hexa_mlops-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: hexa_mlops-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for hexa_mlops-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 139f37ebb161c5d9e790d01411818e6f74028972016bab68f76b89bfe4f18225
MD5 d3efc54c266090d79f8b19d9435ccd29
BLAKE2b-256 d93f63000d82c3b8dc5a2c5b074456f0021c4620e0f0ddc827e98d7790ddc179

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