> For the complete documentation index, see [llms.txt](https://academy.dnanexus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.dnanexus.com/mlaccelerator/mlflow/usingexistingmodels.md). Agents can also search and read this documentation through its [MCP server](https://academy.dnanexus.com/~gitbook/mcp).

# Using Existing Model

*AI/ML Accelerator - MLflow is specifically built to track your ML experiments on the DNAnexus platform environment via the ML JupyterLab (another app in the AI/ML Accelerator package) environment. A license is required in order to use the AI/ML Accelerator package. For more information, please contact DNAnexus Sales via* [*sales@dnanexus.com*](mailto:sales@dnanexus.com)*.*

Once a model has been logged in the DNAnexus project by MLflow, you can load and use it for inference or further evaluation. Below are the instructions for retrieving the model path and loading it for use.

## **Retrieve the Model Path**

When you log a model, MLflow generates a run\_ID and stores the model in a specific path. To get the model path, simply click on the model in the **'Artifacts'** section of a **Run** and copy the Path as below.

{alt="The path to the model which is stored in the DNAnexus platform"}

<figure><img src="https://1979569080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPtCOm9rXoRi4P9rh1ET8%2Fuploads%2Fgit-blob-e6b67e504573da6b6ab90ed665ae691c617918bc%2FRetrieveMLflow.png?alt=media" alt=""><figcaption></figcaption></figure>

The path to the model which is stored in the DNAnexus platform

## **Load the Model**

Once you have the model path, use the appropriate load\_model function to load the model from the specified path. Below are the two examples.

For generic models

```
loaded_model = mlflow.pyfunc.load_model("<model_path>")
predictions = loaded_model.predict(data)
```

For framework-specific models (e.g., scikit-learn)

```
loaded_model = mlflow.sklearn.load_model("<model_path>")
predictions = loaded_model.predict(data)
```

## **Resources**

[Full Documentation](https://documentation.dnanexus.com/)

To create a support ticket if there are technical issues:

1. Go to the Help header (same section where Projects and Tools are) inside the platform
2. Select "Contact Support"
3. Fill in the Subject and Message to submit a support ticket.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.dnanexus.com/mlaccelerator/mlflow/usingexistingmodels.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
