How to set up MLFlow properly
pip install the following:
PyMySQL==0.9.3
psycopg2-binary==2.8.5
werkzeug==2.0.3
mlflow
mlflow[extras]==1.14.1
Set up the artifact dir:
mkdir -p mlflow/artifacts
chmod -R 1777 mlflow
This will run a detached process in cli using SQLLite:
mlflow server --host 0.0.0.0 --backend-store-uri sqlite:///mlflow.sqlite.db --default-artifact-root './mlflow/artifacts' </dev/null &>/dev/null &
You will then be able to see the UI, fully functioning, at:
http://{{server_ip or localhost}}:5000
- If you are on a server you may have to expose the port like ufw allow 5000/tcp
, or however your cloud provider wants you to do it.
Check my answer here to shut a detached mlflow process down:
How to safely shutdown mlflow ui?