# Setup MLflow in Neevcloud Instance

## Setup MLflow in NeevCloud

### What is MLflow?

MLflow is an open-source platform designed to manage the machine learning lifecycle. It includes features to:

* Track experiments and runs
* Package and share models
* Deploy models to various environments
* Monitor model performance

Now set the MLflow in Neevcloud

## **Setup Environment**

1. Ubuntu 22.04
2. Python3
3. Mlflow

Create a ubuntu-22 [instance](https://docs.neevcloud.com/neevcloud-products/computes/getting-started-launch-vms).

### **Update && Upgrade all the packages**

```
sudo apt-get update -y
sudo apt-get upgrade -y
```

### **Install python and set the environment**

```
sudo apt-get install -y python3-pip 
```

The pip is the package installer for Python, which allows you to easily install and manage libraries and packages for your Python projects

```
sudo apt-get install -y python3-venv
```

The venv module in Python creates isolated environments for projects, preventing dependency conflicts, ensuring reproducibility, and allowing safe experimentation without affecting the system-wide Python installation.

### **Set up a packagesVirtual environment**

```
sudo python3 -m venv myenv
```

```
source myenv/bin/activate
```

<figure><img src="/files/j9wp3d46AWKHKMVKvSJV" alt=""><figcaption></figcaption></figure>

### **Install necessary packages**

**Upgrade and install packages within the environment.**

```
pip install --upgrade pip
```

<figure><img src="/files/AKKCN4f8fWfzIObTi8SW" alt=""><figcaption></figcaption></figure>

```
pip install --upgrade setuptools
pip install mlflow scikit-learn
```

MLFLOW\_TRACKING\_URI=<http://0.0.0.0:5000> sets the MLflow Tracking Server URL, enabling centralized logging and tracking of machine learning experiments for collaboration and consistency.

```
export MLFLOW_TRACKING_URI=http://0.0.0.0:5000
```

The command runs the MLflow server in the background, ensuring it continues running after logout, logs output to mlflow\.log, and sets up the tracking server with SQLite backend

```
nohup mlflow server --backend-store-uri sqlite:///mlflow.db --default-artifact-root ./mlruns --host 0.0.0.0 --port 5000 &> mlflow.log &

```

After running the command open your browser and log in with the IP (Your server IP) and **Port(5000)**

<http://your\\_server\\_ip:5000&#x20>;

<figure><img src="/files/XjpvAeCHriCTpf6l9kbG" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neevcloud.com/neevcloud-guide/neevcloud-knowledgebase/setup-mlflow-in-neevcloud-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
