Skip to main content

Yummy mlflow rust model server

Project description

Yummy-MLflow rust addons

This repository contains Yummy mlflow addon written in Rust.

Yummy mlflow

The MLflow rust wrapper currently supports models: [x] lightgbm [x] catboost (only binary classification)

The implementation currently supports MLflow models kept on local path. To run the model run:

yummy_mlflow.model_serve(MODEL_PATH, HOST, POST, LOG_LEVEL)

example:

import yummy_mlflow

yummy_mlflow.model_serve(model_path, '0.0.0.0', 8080, 'error')

The yummy-mlflow will expose HTTP server. The request response is compatible with MLflow model serving API.

Example:

Request:

curl -X POST "http://test1:8080/invocations" \
-H "Content-Type: application/json" \
-d '{
    "columns": ["0","1","2","3","4","5","6","7","8","9","10",
               "11","12"],
    "data": [
     [ 0.913333, -0.598156, -0.425909, -0.929365,  1.281985,
       0.488531,  0.874184, -1.223610,  0.050988,  0.342557,
      -0.164303,  0.830961,  0.997086,
    ]]
}'

Response:

[[0.9849612333276241, 0.008531186707393178, 0.006507579964982725]]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

yummy_mlflow-0.0.9-cp39-cp39-manylinux_2_31_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.31+ x86-64

File details

Details for the file yummy_mlflow-0.0.9-cp39-cp39-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for yummy_mlflow-0.0.9-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 c09364f12bbe5a2d93a632bf6c67f85380cfdb2ea2aaa50e1261f0e32acfd6e3
MD5 2854a53747e2b711ef003a3053f7b1d1
BLAKE2b-256 0486a7240847257245d60aa1f325b6a2bfff30b0675944b2f7d1214f0ee28d59

See more details on using hashes here.

Supported by

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