Skip to main content
MLflow helps to track and manage your machine learning experiments. With clusters for MLflow in Nebius AI Cloud, you can deploy MLflow in a cloud in just a couple of clicks and connect to it easily from machines that run your workloads. This guide covers how to set up your environment to work with Managed Service for MLflow, create your first cluster, run a simple experiment and access its artifacts in Object Storage.

Prerequisites

Meet the following prerequisites, depending on the preferred interface:
  1. Install the MLflow Python package that provides an API to run and manage experiments in your code:
  2. Make sure you are in a group that has the admin role within your tenant or project; for example, the default admins group. You can check this in the Administration → IAM section of the web console.

Steps

Create a cluster

  1. In the sidebar, go to  MLflow.
  2. Click Create cluster.
  3. On the cluster creation page that opens, set the following parameters:
    • Name: Enter a name for your cluster.
    • Service account: Select the mlflow-sa service account. It was created for Managed MLflow by default after you signed up for Nebius AI Cloud.
    • Access: Select the Public and private option. In this case, the cluster has both public and private tracking endpoints. You can access the public endpoint from the internet and the private endpoint from the network where the cluster is located (for example, via a virtual machine in this network).
    • Cluster size: Select Medium.
    • Admin credentials: Enter a username and a strong password.
  4. Click Create cluster.
Together with the cluster, Managed Service for MLflow creates a bucket in Object Storage to store the experiment logs and metrics. This bucket is not deleted automatically after you delete the cluster. You are still charged for the bucket until you delete it.

Configure connection to MLflow Tracking

  1. Get the cluster tracking endpoint and save it to an environment variable:
    Go to the cluster page and copy the Public Tracking URI value. Append https:// and save the resulting URL to an environment variable:
  2. Set up other environment variables used by MLflow Tracking:
For more details on secure connection to the tracking server, see MLflow documentation.

Run an experiment and check its results

  1. Run an experiment:
    1. Create a Python script, nebius_mlflow_test.py, that trains a linear regression model on a simple, randomly populated dataset and uses MLflow autologging to log the training:
    2. Run the script:
  2. Check the experiment artifacts:
    Go to the cluster page and click Go to web UI. Enter the admin credentials you specified when creating the cluster.In the left pane, you can see a list of experiments. Select the experiment you just ran and review its results.
If the client where you work requires a certificate, use the certificate provided by your operating system. For example, check the /etc/ssl/ folder on macOS.