Skip to main content

yamlflow

Yet Another ML flow

We follow convention over configuration (also known as coding by convention) software design paradigm.

Here are some of the features the yamlflow provides.

  1. Build and publish your ML solution as a RESTful Web Service with yaml.

    • You don't need to write web realated code, or dockerfiles.

    • You don't need to benchmark which python web server or framework is best in terms of performance.

    • WE do it for you. All the best, packed in.

Metrics for inference

  • Throughput (How many requests can server process in some interval of time)

  • Latency (How long does it take to get a prediction for a single request)

Python REST API

async
    - web-server(ASGI): Uvicorn, Hypercorn, Daphne
    - web-(micro)framework: Starlete, ...
    - API-framework: FastAPI, ...

sync
    - web-server(WSGI): gunicorn, uWSGI, Gevent, Twisted Web
    - web-(micro)framework: Flask
    - API-framework: None

Project structure

.
├── model
│   ├── ...
│   ├── pipeline.py
│   └── requirements.txt
├── service
│   ├── objects
│   ├── config.py
│   └── predictor.py
├── train
│   ├── ...
│   ├── train.py
│   └── requirements.txt
├── README.md
└── yamlflow.yaml

example yamlflow.yaml

kind: Service
meta:
  registry: your.docker.registry
  user: dockerusername
project:
  name: ml-project
  version: 0.1.0
backend:
  runtime: torch
  device: cpu
port: 8002

Installation guide

pip install yamlflow

User guide

yamlflow init
yamlflow build
yamlflow run

Developer guide

pyenv install 3.8.6
poetry env use ~/.pyenv/versions/3.8.6/bin/python
poetry shell
poetry install

Release files for yamlflow 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yamlflow 0.0.9
File Size Uploaded
yamlflow-0.0.9.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yamlflow 0.0.9
File Interpreter ABI Platform
yamlflow-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / yamlflow-0.0.9.tar.gz

Download URL yamlflow-0.0.9.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5a95d034207ad6a38f96323b1a682d3516b4d52a44298b4dd9ad3e042a5f24e6
BLAKE2b-256 checksum
How to use checksums
a7a4046d5a21653bd6b79bc6c9674bc3d2d89b453e3fe98f9343521d404290e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.6 Linux/5.4.0-72-generic

Release files / yamlflow-0.0.9-py3-none-any.whl

Download URL yamlflow-0.0.9-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be7d994a8bbcc1bc41abd46ac44b7835566dcec891f0240181ff89da649c6f09
BLAKE2b-256 checksum
How to use checksums
e01c3d5687afd447a92ab7f5d895eeb187e6509db582476d3c8c93eec6544db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.6 Linux/5.4.0-72-generic

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page