composable-logs-webui-0.0.16
توضیحات
This Python package contain compiled web assets for a fork of the MLFlow front end.It is modified so that it can be deployed as a static website without a backend.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | composable-logs-webui-0.0.16 |
| نام | composable-logs-webui |
| نسخه کتابخانه | 0.0.16 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matias Dahl (based on a modified version of the MLFlow project) |
| ایمیل نویسنده | matias.dahl@iki.fi |
| آدرس صفحه اصلی | https://composable-logs.github.io/composable-logs/ |
| آدرس اینترنتی | https://pypi.org/project/composable-logs-webui/ |
| مجوز | Various, see the description |
**This repository contains a modified version of ML Flow suitable for hosting static experiment tracking data**
<div align="center">
<!--
-- Need an empty line above: https://stackoverflow.com/a/70293384
-- First <a href>..</a> also should be on one line
-->
<a href="https://github.com/composable-logs/mlflow#license"></a>
<a href="https://github.com/composable-logs/mlflow/actions/workflows/cicd_main-release.yml">

</a>
<a href="https://pypi.org/project/composable-logs-webui/">

</a>
</div>
## Motivation: Static hosting of MLFlow UI for experiment tracking
The usual MLFlow front end (for experiment tracking) relies on a backend API for querying results about past experiments.
The modified MLFlow version in this repo is part of the `Composable Logs` project.
This makes it possible to run data/ml workflows (or pipelines) on serverless/ephemeral infrastructure.
That is, it makes possible to track and report on experiments without a backend API or SQL database.
One use case is to run workflows on CI/CD infrastructure.
The modified version of MLFlow in this repo loads all data from a static JSON file, and static assets (like images) are loaded separately.
Thus, deploying the modified MLFlow UI only requires only static web hosting.
**[Main project documentation](https://composable-logs.github.io/composable-logs/)**
## Live demo
- Example deployment on Github Pages: https://composable-logs.github.io/mnist-digits-demo-pipeline/
- Screenshot:
[](https://composable-logs.github.io/mnist-digits-demo-pipeline/)
- This demo is a task and experiment tracker for an mnist-digits ML training workflow scheduled to run daily.
It uses no cloud infrastructure except services on Github (Github actions for compute, Build artifacts for storage, and Github Pages for reporting).
## Repo structure
Even if the modications in this fork only modify a small part of the entire ML Flow project (that is, the experiment tracking UI), the directory structure of the `mlflow`-repo has been modified as little as possible.
- The original Github and Circleci actions have been disabled in this fork (the relevant directories are renamed to `disabled--{circleci, github-actions}`).
- New Github actions are in the `.github` directory.
Root directory for MLFlow front end codes:
[mlflow/mlflow/server/js/](https://github.com/composable-logs/mlflow/tree/static_mlflow/mlflow/server/js/)
### Main branches in this repo
- `master`: MLFlow original history up to 2/2022 (commit `2078937040654cf79d7c4c065f994ba537568561`) when the repo was forked.
- `static_mlflow`: branch with all modifications.
- The pull request [PR2](https://github.com/composable-logs/mlflow/pull/2) show the changes between these branches.
## Release process
- Triggered on updates to the file `mlflow/mlflow/server/js/webui-py-package/PYTHON_PACKAGE_VERSION`
- On release:
- The React Javascript frontend is compiled and the static assets are published as a Python package (see below).
- The published commit is tagged with `static-v<release version>`.
The version is taken from first line in `PYTHON_PACKAGE_VERSION` file.
- Tags of form `v1.2.3` refer to original MLFlow releases.
For details, see the Github actions in this repo.
## Installation
Install as Python package hosted on [PyPI](https://pypi.org/project/composable-logs-webui/):
```bash
pip install composable-logs-webui --target /where/to/install
```
After installation the static assets for the modified MLFlow UI are in the directory `/where/to/install/assets`.
## Could this be merged into ML Flow?
Unlikely without significant refactorings.
- Most modifications (but not all) are behind the feature flag `HOST_STATIC_SITE`.
- The unit tests have not been updated.
- Due to large number of changes, merging the current modifications might not make sense.
It would complicate the main code base for an edge use case.
- The MLFlow repo contain an open and inactive feature request from ["Freeze" experiments in ui to static html site](https://github.com/mlflow/mlflow/issues/4645) (8/2021).
## License
Original MLFlow project copyright Databricks 2018 and distributed under the Apache 2 license.
Please see [LICENSE.txt](LICENSE.txt).
The contributions in this repo copyright Matias Dahl 2022 are also released under the Apache 2 license.
The intent is that the original MLFlow codebase and modifications can be combined and released and distributed under the terms of the Apache 2 license.
---
Please note that the Python package linked above contains compiled assets covered by various licenses.
نحوه نصب
نصب پکیج whl composable-logs-webui-0.0.16:
pip install composable-logs-webui-0.0.16.whl
نصب پکیج tar.gz composable-logs-webui-0.0.16:
pip install composable-logs-webui-0.0.16.tar.gz