Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlflow 2.18.0: make a multi-output recipe #9

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions recipe/README_SKINNY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
=======================================================================
MLflow Skinny: A Lightweight Machine Learning Lifecycle Platform Client
=======================================================================

MLflow Skinny is a lightweight MLflow package without SQL storage, server, UI, or data science dependencies.
MLflow Skinny supports:

* Tracking operations (logging / loading / searching params, metrics, tags + logging / loading artifacts)
* Model registration, search, artifact loading, and transitions
* Execution of GitHub projects within notebook & against a remote target.

Additional dependencies can be installed to leverage the full feature set of MLflow. For example:

* To use the `mlflow.sklearn` component of MLflow Models, install `scikit-learn`, `numpy`, and `pandas`.
* To use SQL-based metadata storage, install `sqlalchemy`, `alembic`, and `sqlparse`.
38 changes: 38 additions & 0 deletions recipe/build-mlflow.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@echo on

if not exist pyproject-full.toml (
copy pyproject.toml pyproject.full.toml
)

if [%PKG_NAME%] == [mlflow-skinny] (
set MLFLOW_SKINNY=1
# https://github.com/mlflow/mlflow/pull/4134
copy %RECIPE_DIR%/README_SKINNY.rst %SRC_DIR%
copy pyproject.skinny.toml pyproject.toml
) else (
copy pyproject.full.toml pyproject.toml
)

if [%PKG_NAME%] == [mlflow-ui] (
pushd mlflow\server\js

@rem The lockfile is not installable in an immutable fashion on Windows
set YARN_ENABLE_IMMUTABLE_INSTALLS=false
cmd /c yarn install
if %ERRORLEVEL% neq 0 exit 1
cmd /c yarn build
if %ERRORLEVEL% neq 0 exit 1

popd
)

%PREFIX%/python.exe -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv
if %ERRORLEVEL% neq 0 exit 1

xcopy /i /s /y mlflow\server\js\build %SP_DIR%\mlflow\server\js\build

if [%PKG_NAME%] NEQ [mlflow-ui-dbg] (
rmdir /s /q %SP_DIR%\mlflow\server\js\node_modules
bash -c 'rm -f ${SP_DIR//\\\\//}/mlflow/server/js/build/static/css/*.css.map'
bash -c 'rm -f ${SP_DIR//\\\\//}/mlflow/server/js/build/static/js/*.js.map'
)
30 changes: 30 additions & 0 deletions recipe/build-mlflow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -euxo pipefail

if [ ! -f pyproject.full.toml ]; then
cp pyproject.toml pyproject.full.toml
fi

if [[ "${PKG_NAME}" == "mlflow-skinny" ]]; then
export MLFLOW_SKINNY=1
# https://github.com/mlflow/mlflow/pull/4134
cp ${RECIPE_DIR}/README_SKINNY.rst ${SRC_DIR}
cp pyproject.skinny.toml pyproject.toml
else
cp pyproject.full.toml pyproject.toml
fi

if [[ "${PKG_NAME}" == "mlflow-ui" ]]; then
pushd mlflow/server/js
yarn install
yarn build
popd
fi

$PREFIX/bin/python -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv
if [[ "$PKG_NAME" != "mlflow-ui-dbg" ]]; then
rm -rf $SP_DIR/mlflow/server/js/node_modules
rm -f $SP_DIR/mlflow/server/js/build/static/css/*.css.map
rm -f $SP_DIR/mlflow/server/js/build/static/js/*.js.map
fi
3 changes: 0 additions & 3 deletions recipe/conda_build_config.yaml

This file was deleted.

Loading