> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/synchronize-mlflow.md). Agents can also search and read this documentation through its [MCP server](https://docs.collibra.com/~gitbook/mcp).

# Synchronize MLflow

Synchronizing MLflow is the process of integrating metadata from MLflow and making the data available in Collibra Platform.

You can synchronize manually, or you can automate it by adding a synchronization schedule.

## Prerequisites

In your Collibra environment:

* You have [created a MLflow AI connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/create-an-mlflow-ai-connection-to-an-edge-or-collibra-cloud-site.md).
* You have [added a MLflow AI capability](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/add-the-mlflow-ai-capability.md) to the MLflow AI connection.
* You have a [resource role](https://docs.collibra.com/ai-command-center/terminology.md) with the **Configure external system** [resource permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Owner**.
* You have a [global role](https://docs.collibra.com/ai-command-center/terminology.md) with the **Catalog** [global permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Catalog Author**.
* You have a [global role](https://docs.collibra.com/ai-command-center/terminology.md) with the **View Edge connections and capabilities** [global permission](https://docs.collibra.com/ai-command-center/terminology.md), for example, **Edge integration engineer**.

## Steps

{% tabs %}
{% tab title="Manually synchronize MLflow AI" %}
{% stepper %}
{% step %}
Open the **Create integration** step.

* If you just [created the MLflow AI connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/create-an-mlflow-ai-connection-to-an-edge-or-collibra-cloud-site.md), you are already in this step.
* Otherwise, on the main toolbar, click <i class="fa-grid-round">:grid-round:</i> → **Integrations**, and then click the **More options** icon on the card of your MLflow AI connection and select **Add an integration**.
  {% endstep %}

{% step %}
In the **Integration** list, select **MLflow AI**, enter a **Name**, and click **Next**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The **Connect to source** step opens.
{% endstep %}

{% step %}
Click **Skip**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The configuration page opens.
{% endstep %}

{% step %}
Complete the fields as needed.

<table><thead><tr><th width="152">Field</th><th>Action</th><th>Required</th></tr></thead><tbody><tr><td>Domain</td><td><p>Select the domain asset in which you want to add the MLflow AI assets.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Ensure that you select a domain of the type Technology Asset Domain.</p></div></td><td><i class="fa-check">:check:</i> Yes</td></tr><tr><td>Ingest training data lineage for AI model versions</td><td><p>Optionally, select the <strong>Ingest training data lineage for AI model versions</strong> option to create lineage relations from each ingested MLflow AI Model Version asset to existing Table assets that were used as training data. This setting requires the referenced table to already be ingested via the Databricks Unity Catalog integration.</p><p>Lineage is captured only for training runs that explicitly logged a Delta table as the training dataset in MLflow, for example via <code>mlflow.log_input()</code> or ML framework autologging.</p></td><td><i class="fa-xmark">:xmark:</i> No</td></tr><tr><td>Custom AI Metrics Mappings</td><td><p>Optionally, in <strong>Custom AI Metrics Mappings</strong>, define the custom MLflow AI Model Version metrics that you want to integrate. You do this by adding the mapping between the custom metric and Collibra attribute.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If you use this feature, add any custom attributes/characteristics, as needed, to the asset type assignment.</p></div><p>To add a custom AI metric mapping:</p><ol><li>Click <strong>Add Custom AI Metrics Mappings</strong>.</li><li>In <strong>Metric</strong>, type the name of the custom metric manually.<br>Use the exact name as in the MLflow AI Model Version asset.</li><li>In <strong>Attribute</strong>, select the attribute in which you want to see the value.<br>Make sure to select an attribute that is included in the MLflow AI Model Version asset type assignment.</li></ol><p>For more information, go to the <a href="https://mlflow.org/docs/latest/index.html">MLflow documentation</a>.</p></td><td><i class="fa-xmark">:xmark:</i> No</td></tr><tr><td>Tag Attribute Mappings</td><td><p>Optionally, in <strong>Tag Attribute Mappings</strong>, map MLflow tag keys to Collibra attributes. Unmapped tags are ingested as Source Tags.</p><p>To add a tag attribute mapping:</p><ol><li>Click <strong>Add Tag Mapping</strong>.</li><li>In <strong>Tag Key</strong>, enter the MLflow tag key whose value you want to map.</li><li>In <strong>Applies To</strong>, select a source asset type from which you want to map the tag key.</li><li>In <strong>Collibra Attribute</strong>, select the attribute to map the tag value to. The attribute must already exist in your operating model and be assigned to the asset type.</li></ol></td><td><i class="fa-xmark">:xmark:</i> No</td></tr></tbody></table>
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Click the synchronize button in the toolbar.\ <i class="fa-chevrons-right">:chevrons-right:</i> A notification indicates the synchronization has started.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Add a synchronization schedule" %}
{% stepper %}
{% step %}
Open the **Create integration** step.

* If you just [created the MLflow AI connection](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/create-an-mlflow-ai-connection-to-an-edge-or-collibra-cloud-site.md), you are already in this step.
* Otherwise, on the main toolbar, click <i class="fa-grid-round">:grid-round:</i> → **Integrations**, and then click the **More options** icon on the card of your MLflow AI connection and select **Add an integration**.
  {% endstep %}

{% step %}
In the **Integration** list, select **MLflow AI**, enter a **Name**, and click **Next**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The **Connect to source** step opens.
{% endstep %}

{% step %}
Click **Skip**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The configuration page opens.
{% endstep %}

{% step %}
Complete the fields as needed.

<table><thead><tr><th width="152">Field</th><th>Action</th><th>Required</th></tr></thead><tbody><tr><td>Domain</td><td><p>Select the domain asset in which you want to add the MLflow AI assets.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Ensure that you select a domain of the type Technology Asset Domain.</p></div></td><td><i class="fa-check">:check:</i> Yes</td></tr><tr><td>Ingest training data lineage for AI model versions</td><td><p>Optionally, select the <strong>Ingest training data lineage for AI model versions</strong> option to create lineage relations from each ingested MLflow AI Model Version asset to existing Table assets that were used as training data. This setting requires the referenced table to already be ingested via the Databricks Unity Catalog integration.</p><p>Lineage is captured only for training runs that explicitly logged a Delta table as the training dataset in MLflow, for example via <code>mlflow.log_input()</code> or ML framework autologging.</p></td><td><i class="fa-xmark">:xmark:</i> No</td></tr><tr><td>Custom AI Metrics Mappings</td><td><p>Optionally, in <strong>Custom AI Metrics Mappings</strong>, define the custom MLflow AI Model Version metrics that you want to integrate. You do this by adding the mapping between the custom metric and Collibra attribute.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>If you use this feature, add any custom attributes/characteristics, as needed, to the asset type assignment.</p></div><p>To add a custom AI metric mapping:</p><ol><li>Click <strong>Add Custom AI Metrics Mappings</strong>.</li><li>In <strong>Metric</strong>, type the name of the custom metric manually.<br>Use the exact name as in the MLflow AI Model Version asset.</li><li>In <strong>Attribute</strong>, select the attribute in which you want to see the value.<br>Make sure to select an attribute that is included in the MLflow AI Model Version asset type assignment.</li></ol><p>For more information, go to the <a href="https://mlflow.org/docs/latest/index.html">MLflow documentation</a>.</p></td><td><i class="fa-xmark">:xmark:</i> No</td></tr><tr><td>Tag Attribute Mappings</td><td><p>Optionally, in <strong>Tag Attribute Mappings</strong>, map MLflow tag keys to Collibra attributes. Unmapped tags are ingested as Source Tags.</p><p>To add a tag attribute mapping:</p><ol><li>Click <strong>Add Tag Mapping</strong>.</li><li>In <strong>Tag Key</strong>, enter the MLflow tag key whose value you want to map.</li><li>In <strong>Applies To</strong>, select a source asset type from which you want to map the tag key.</li><li>In <strong>Collibra Attribute</strong>, select the attribute to map the tag value to. The attribute must already exist in your operating model and be assigned to the asset type.</li></ol></td><td><i class="fa-xmark">:xmark:</i> No</td></tr></tbody></table>
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Click **Scheduling** to expand it.
{% endstep %}

{% step %}
Enter the required information and click **Save**:

<table><thead><tr><th width="152">Field</th><th>Description</th></tr></thead><tbody><tr><td>Repeat</td><td>The interval when you want to synchronize automatically. The possible values are: <strong>Daily</strong>, <strong>Weekly</strong>, <strong>Monthly</strong>, and <strong>Cron expression</strong>.</td></tr><tr><td>Cron</td><td><p>The Quartz Cron expression that determines when the synchronization takes place.</p><p>This field is only visible if you select <code>Cron expression</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>Every</td><td><p>The day on which you want to synchronize, for example, Sunday.</p><p>This field is only visible if you select <code>Weekly</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>Every first</td><td><p>The day of the month on which you want to synchronize, for example, Tuesday.</p><p>This field is only visible if you select <code>Monthly</code> in the <strong>Repeat</strong> field.</p></td></tr><tr><td>At</td><td><p>The time at which you want to synchronize automatically, for example, 14:00.</p><ul><li>You can only schedule on the hour. For example, you can add a synchronization schedule at 8:00, but not at 8:45.</li><li>This field is only visible if you select <code>Daily</code>, <code>Weekly</code>, or <code>Monthly</code> in the <strong>Repeat</strong> field.</li></ul></td></tr><tr><td>Time zone</td><td>The time zone for the schedule.</td></tr></tbody></table>
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

## What's next

The synchronization job synchronizes the MLflow data.\
After the synchronization:

* You can [view a summary of the results](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/view-the-summary-of-a-mlflow-synchronization.md) from the Activities list.
* The resulting assets get a relation to the Domain that you selected.\
  For information on the integrated data, go to [Integrated MLflow data](https://docs.collibra.com/ai-command-center/ai-producers-working-with-ai-models-and-discovering-data/ai-integrations/about-the-mlflow-ai-integration/integrated-mlflow-data.md).
