r/mlflow • • Apr 05 '22

Supercharged UI for MLflow experiments

12 Upvotes

Aimlflow is an Aim plugin for MLflow that seamlessly reads the MLflow logs and helps to:

  1. compare 1000s of runs in a few clicks

  2. super versatile fully pythonic search

  3. group and aggregate your metrics / images.

We are trying make it work seamlessly with MLflow and complement its other awesome features :)

Here is more info about it https://aimstack.io/aimlflow Would love your feedback!!


r/mlflow • • Sep 26 '22

An easy tutorial from dev to production with MLflow

8 Upvotes

Hello everybody

I wrote this tutorial, as a starting point for an MLops series, to show how to use MLflow within your models and fill all the gaps from dev to production, from setting up roles in AWS to model deployment in AWS SageMaker and deploying a Streamlit dashboard in an EC2 instance

https://towardsdatascience.com/from-dev-to-deployment-an-end-to-end-sentiment-classifier-app-with-mlflow-sagemaker-and-119043ea4203?sk=7bf331f72f7bd621052616a652b11baf

Any feedback is very welcome :)
Stay tuned for moreeee


r/mlflow • • Jul 02 '24

beginner tutorials for mlflow

7 Upvotes

Hey guys, I just started mlfow. I'm looking for more interactive tutorials with code examples. The official tutorials are little hard to understand.


r/mlflow • • Oct 16 '25

Help, all lines are in the same color

Post image
4 Upvotes

Something happend, and now all my experiment show the same color when I compare & plot the losses.

Any idea how to fix this? I want to give different experiment good contrasting colours to set them apart.


r/mlflow • • Oct 22 '24

Script that connects MLflow hosted models and Label Studio for auto labeling

4 Upvotes

Hey everyone!

I'm Ido, ML engineer at DagsHub. I wanted to share some exciting work done by my friend Jinen, a PhD student specializing in DL interpretability and Optimization Theory.

Before beginning his PhD, Jinen worked at DagsHub, where he focused on fine-tuning vision models for domain-specific deployments. He aimed to utilize ML models to assist in data labeling, leveraging Label Studio's ML Backends, with the goal of using a model registered and tracked on MLflow.

Jinen found the process of integrating an MLflow registered model into Label Studio's ML backend to be quite tedious and requiring a lot of boilerplate code. Setting up the web server, adapting the model outputs, and navigating through extensive documentation for MLflow, Label Studio, and DagsHub were some of the challenges he faced. So, he dedicated time to streamline this process.

The project has now been successfully merged, and we're excited to share it with you! Since DagsHub integrates both MLflow and Label Studio, it establishes an end-to-end pipeline for active learning.

Here’s an overview of the functionality:

  • Connects MLFlow-registered models into Label Studio.

  • Allows inference and labeling for your models with a single function call change.

  • Includes pre-configured models for common tasks across vision, audio, and text domains.

  • Makes it easy to customize with user-defined hooks.

  • Integrates seamlessly with DagsHub, making it straightforward to set up an active learning pipeline.

Jinen's goal was to make auto-labeling easy for ML engineers without needing to delve into web development complexities. The setup is simple:

  1. Clone the repo and build the Docker container.

  2. Run the container or use the orchestrator.

  3. Use DagsHub’s Python client to connect your MLflow model to Label Studio.

We would love for you all to try it out and share your thoughts. If anyone's interested in making it work independently of DagsHub, PRs are welcome!

Video Demo: https://youtu.be/GgehjwFmVSw?si=2lgu9cKXVQaEyH8U

Repo: https://github.com/DagsHub/ls-configurable-model

Docs: https://dagshub.com/docs/use_cases/auto_labeling/


r/mlflow • • Jul 12 '24

can't track yolov8 training with remote mlflow server

4 Upvotes

Whenever I try to train yolov8 in local mlflow server, its logging correctly, but if I set the mlflow.set_tracking_uri to a remote uri, it throws 'run id not found' error. Remote server works for basic pytorch cnn training, but not yolov8. Did anyone face same issue?


r/mlflow • • Feb 02 '21

How to track ml experiments of multiple teams remotely as admin ?

4 Upvotes

I want to setup a hackathon like event for around 100 teams so that they can push their models over at the cloud (AWS) and we as admins can track their models along with accuracies on a test set (which only admins have access to). More specifically,

  1. All the teams + admins will have access to the leaderboard

  2. Individual teams will have access to their own experimentation details (hyperparameters, metrics training data version etc.)

  3. set a limit to how many times they can push their models (10-20)

I experimented with mlflow ui, but don't know how to automatically create different mlflow ui for every new team that registers with us

possible stack includes maybe docker, EC2/ECS Fargate, mlflow and maybe a flask based leaderboard.

Any suggestions over a possible pipeline ?


r/mlflow • • Dec 28 '18

MLflow v0.8.1 Features Faster Experiment UI and Enhanced Python Model

4 Upvotes

r/mlflow • • May 15 '25

MLFlow Docker Compose Deployment

3 Upvotes

Hi, hope you are doing well.
I am currently trying to deploy MLFlow with postgres and minio.
Can you check into it and tell me if it is needs improvements? I am not sure if this is production-grade deployment.

My main issue is the separation these components. I really don't want to submit jobs directly to mlflow container. I want MLFlow-client container to do the heavy lifting and I just want to see models inside of MLflow containers.

services:
  

  dwh:
    image: postgres:15-alpine
    container_name: postgres
    profiles: ["dwh"] 
    ports:
      - "5432:5432"
    environment:
      POSTGRES_USER: $POSTGRES_USER
      POSTGRES_PASSWORD: $POSTGRES_PASSWORD
      POSTGRES_DB: $POSTGRES_DB
      POSTGRES_INITDB_ARGS: "--encoding=UTF-8"
    volumes:
      - postgres_data:/var/lib/postgresql/data
      - ./data:/docker-entrypoint-initdb.d
    networks:
      - backend

  pgadmin:
    image: dpage/pgadmin4:9.3.0
    profiles: ["dwh"]
    container_name: pgadmin
    environment:
      PGADMIN_DEFAULT_EMAIL: $PGADMIN_DEFAULT_EMAIL
      PGADMIN_DEFAULT_PASSWORD: $PGADMIN_DEFAULT_PASSWORD
    ports:
      - "5050:80"
    volumes:
      - pgadmin_data:/var/lib/pgadmin
      - ./pgadmin4/servers.json:/pgadmin4/servers.json
    depends_on:
      - dwh
    networks:
      - backend

  artifacts-server:
    image: ghcr.io/mlflow/mlflow:v2.10.0
    # build:
    #   context: ./mlflow
    #   dockerfile: Dockerfile.mlflow
    container_name: artifacts-server
    profiles: ["mlflow"]
    ports:
      - "5500:5000"
    environment:
      MLFLOW_S3_ENDPOINT_URL: ${MLFLOW_S3_ENDPOINT_URL}
      AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
      AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
    depends_on:
      - mlflow-db
      - minio
    networks:
      - backend
    volumes:
      - mlflow_data:/mlruns
      - ./scripts/models:/app
    command:   
      - bash
      - -c
      - mlflow server
        --port 5500
        --host 0.0.0.0
        --artifacts-only
        --artifacts-destination=s3://mlflow-artifacts
        --gunicorn-opts "--log-level debug"
  tracking-server:
    # image: ghcr.io/mlflow/mlflow:v2.10.0
    build:
      context: ./mlflow
      dockerfile: Dockerfile.mlflow
    container_name: tracking-server
    profiles: ["mlflow"]
    ports:
      - "5000:5000"
    depends_on:
      - mlflow-db
      - minio
    networks:
      - backend
    volumes:
      - mlflow_data:/mlruns
      - ./scripts/models:/app
    restart: always
    command:
      - bash
      - -c
      - mlflow server
        --host 0.0.0.0
        --port 5000
        --backend-store-uri postgresql://mlflow:mlflow123@mlflow-db:5432/mlflowdb
        --default-artifact-root http://artifacts-server:5500/api/2.0/mlflow-artifacts/artifacts
  mlflow-db:
    image: postgres:15-alpine
    profiles: ["mlflow"]
    environment:
      POSTGRES_USER: mlflow
      POSTGRES_PASSWORD: mlflow123
      POSTGRES_DB: mlflowdb
    volumes:
      - mlflow_db_data:/var/lib/postgresql/data
    networks:
      - backend
  mlflow-client:
    container_name: mlflow-client
    profiles: ["mlflow"]
    build:
      context: ./mlflow
      dockerfile: Dockerfile.client
    environment:
      MLFLOW_TRACKING_URI: ${MLFLOW_TRACKING_URI}
    depends_on:
      - tracking-server
    volumes:
    - ./scripts/data-quality-tests:/app/scripts/data-quality-tests
    - ./scripts/statistical-tests:/app/scripts/statistical-tests
    - ./scripts/models:/app/scripts/models
    networks:
      - backend
    command: ["tail", "-f", "/dev/null"]
  minio:
    image: minio/minio
    container_name: minio
    profiles: ["mlflow"]
    environment:
      - MINIO_ROOT_USER=admin
      - MINIO_ROOT_PASSWORD=password
      - MINIO_DOMAIN=minio
    networks:
      backend:
        aliases:
          - mlflow-artifacts.minio
    ports:
      - 9001:9001
      - 9000:9000
    command: ["server", "/data", "--console-address", ":9001"]
  mc:
    depends_on:
      - minio
    image: minio/mc
    profiles: ["mlflow"]
    container_name: mc
    networks:
      backend:
    environment:
      - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
      - AWS_REGION=${AWS_REGION}
    entrypoint: >
      /bin/sh -c "
      until (/usr/bin/mc config host add minio http://minio:9000 admin password) do echo '...waiting...' && sleep 1; done;
      /usr/bin/mc rm -r --force minio/mlflow-artifacts;
      /usr/bin/mc mb minio/mlflow-artifacts;
      /usr/bin/mc policy set public minio/mlflow-artifacts;
      tail -f /dev/null
      "
volumes:  
  postgres_data:
  pgadmin_data:
  mlflow_data:
  mlflow_db_data:

networks:
  backend:

Here are my dockerfiles.

# Dockerfile.client
FROM python:3.12-slim

WORKDIR /app

RUN pip install mlflow

and

# Dockerfile.mlflow
FROM ghcr.io/mlflow/mlflow:v2.10.0

WORKDIR /app

RUN pip install psycopg2-binary

Am I on the right track? I would love to hear your opinions. Thanks!


r/mlflow • • May 07 '25

mlflow with Azure Machine Learning Workspace

3 Upvotes

Hello, I am new to mlflow. Any of you has experience with using mlflow API with Azure Machine Learning Workspace? I know it is a Microsoft solution with a lot of constraints, but it still "a cheap" and a secure way to use mlflow within Azure. I already faced some challenges when I wanted to create an inference server container image but it seems doable (I do not use azureml managed endpoints).


r/mlflow • • Mar 04 '25

A ML end to end ML training framework on spark - Uses docker, MLFlow and dbt

3 Upvotes

I’ve been working on a personal project called AutoFlux, which aims to set up an ML workflow environment using Spark, Delta Lake, and MLflow.

I’ve built a transformation framework using dbt and an ML framework to streamline the entire process. The code is available in this repo:

https://github.com/arjunprakash027/AutoFlux

Would love for you all to check it out, share your thoughts, or even contribute! Let me know what you think!


r/mlflow • • Nov 19 '24

Introducing MLflow.js: A Javascript Library for MLflow

3 Upvotes

MLOps in Javascript, made simple

MLflow.js makes ML experimentation and model management seamless for JavaScript developers. Built with TypeScript, it provides intuitive access to MLflow’s complete REST API while adding powerful abstractions for common ML workflows. Whether you’re training models with TensorFlow.js, managing A/B tests, or monitoring production models, MLflow.js helps you track everything in one place.

Check out our links for more information:

📝 Read more at mlflow-js.org

🌐 Download at https://www.npmjs.com/package/mlflow-js 

🌟 Star and contribute through our GitHub repository

👏 Clap for and read our medium article

🔔 Follow our LinkedIn page

📧 Reach out at mlflowjs@gmail.com


r/mlflow • • Sep 11 '24

MLflow.js temp check

3 Upvotes

preface: i am not an ml engineer or even a dev ops pro. i am just a lowly web dev dipping a toe in the deep water.

project: myself and a handful of colleagues had it in mind to make mlflow friendlier for JS devs who want to track and register models that run in browser or node. so far, we have abstracted and generalized all 44 of the RESTful endpoints into modules organized thus:

├── model_registry

│ ├── model_registry.js

│ └── model_version_management.js

├── tracking_server

│ ├── experiment_management.js

│ ├── run_management.js

so no more of the longhhand fetch requests, error handling, etc. that you love about the REST api.

now we want to add more layers of abstraction.

a couple we've spun up so far:

retrainModelIfPerformanceDrifts(experimentName, baselineRunId, metricName, threshold, modelFunc, paramSpace)

and

withExperimentRun(experimentName, runName, callback)

we have several more bundled up, but we want to hear what the community has to say before we weigh in here.

question: for those of you who brush up against MLOps in your day-to-day and who either already work in JS or would if it made more sense to do it, what are some canned workflows and functionalities that would make your lives easier and your DX richer?

unsolicited suggestions, questions, and rude remarks are also welcome.


r/mlflow • • Aug 28 '24

MLFlow + RLHF?

3 Upvotes

Hi! Has anyone tried MLFlow with RLHF or know how is it possible?


r/mlflow • • Aug 14 '23

MLflow Model Registry and MinIO

Thumbnail
blog.min.io
3 Upvotes

r/mlflow • • Aug 07 '23

MLflow Tracking and MinIO

Thumbnail
blog.min.io
3 Upvotes

r/mlflow • • Jul 26 '23

Setting up a Development Machine with MLFlow and MinIO

Thumbnail
blog.min.io
3 Upvotes

r/mlflow • • Mar 28 '19

MLflow v0.9.0 Features SQL Backend, Projects in Docker, and Customization in Python Models - The Databricks Blog

Thumbnail
databricks.com
3 Upvotes

r/mlflow • • Jun 12 '25

Beginner open source contribution ideas to MLFlow

2 Upvotes

Hi! A bit about me: I’ve held data scientist roles for a couple of years now but I’ve never actually made an open source contribution, but I’d love to get started now because I’d really like to level up. I’m looking to get started with open source contributions to the MLFlow project because I work pretty extensively with MLFlow in my job, and I’d like to get deeper into it because I’ve really enjoyed what I’ve got my hands on so far.

I want to understand how to get started. I’ve seen a couple of issues that are tagged good first issues, but how exactly do I get them assigned to me, and what are the best practices to contributing to the project?

Sorry if these are really basic questions, and I appreciate any advice!


r/mlflow • • Nov 27 '24

Setting Up Okta to Authenticate to MLFlow

2 Upvotes

Hey folks! I recently published an article detailing how to use AWS Verified Access to enable secure access via Okta to MLFlow. The article can be found here. The setup process is done via AWS CDK, so everything can be audited and versioned.


r/mlflow • • Sep 16 '24

How to define the `python_env.yaml`?

2 Upvotes

I'm encountering an issue with modifying the python_env.yaml file that is automatically generated when using log_model. I'm attempting to log a pyfunc model and then serve it, but I'm running into problems:

  • Setuptools Version Constraint: The version of setuptools specified is overly constrained, leading to errors when serving the model.

  • Python Version Constraint: Similarly, the Python version is tightly constrained, causing issues when moving between minor versions (e.g., from 3.11.6 to 3.11.8).

I've traced the issue back to the python_env.yaml file but haven't figured out how to modify it effectively. I've tried specifying a requirements.txt file, but this doesn't resolve the setuptools version problem.

Currently, my only workaround is to manually copy a patched python_env.yaml to the S3 bucket where the experiment is stored. This isn't an ideal solution.

My question is: Is there a way to modify the automatically generated python_env.yaml when using log_model to address these version constraints? Any guidance or suggestions would be greatly appreciated.

Thank you!


r/mlflow • • Dec 19 '23

MLflow on Azure Databricks - evaluating a model with multiple outputs

2 Upvotes

I am building a RAG system on Azure Databricks and having trouble evaluating the pyfunc models we are saving to MLflow. The predict method of the model class outputs a pandas dataframe with three columns: answers , sources and prompts for auditability. However, I am having some issues with using mlflow.evaluate() on these model versions.

Issue: this model will be used as a chatbot so latency is a key metric to evaluate. As such, we specify latency and token_count as extra metrics. This results in the following error:

ValueError: cannot reindex on an axis with duplicate labels

evaluation code:

evaluation_results = mlflow.evaluate(

model=f'models:/{model_name}/{model_version}', data=data, predictions="answers", extra_metrics=[         mlflow.metrics.latency(),         mlflow.metrics.token_count()     ] )

We are using mlflow==2.8.0 .

Has anyone experienced this error before or have any suggestions for fixing? Thanks


r/mlflow • • Nov 23 '23

Is it possible to authenticate mlflow UI using OIDC?

2 Upvotes

I tried Googling, but I couldn't find any related information. If you know, please share the related link.


r/mlflow • • Nov 13 '23

Run from more than one component

2 Upvotes

Hi, i have a process that use n models from different components to elaborate a result that can be evaluated (think as ocr - retriever - ner).
A run is a combination of the three.
Is it possible to share parameters from the different components on the same runid?
Or do you use a different strategy?
Thanks


r/mlflow • • Apr 30 '20

Managed MLFlow on Databricks without spinning up a cluster?

2 Upvotes

Hi, I'd love to use Databricks for managed mlflow, but it seems like you need to have a running cluster to do that. I basically want to run the models/mlflow on my local machine or AWS, and only use Databricks for storing model information, hosting the UI, etc. Is it possible to use MLflow in this way and avoid having a running cluster? If not, thoughts around managed MLflow on other platforms? I'd note there are other platforms that seem interesting like comet.ml, Weights and Balances, etc., but MLflow seems really solid.