> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating an existing model

> Already have a model you'd like to migrate to Slai? Here's how to port it over.

> [card] [Want us to help migrate your models?](https://calendly.com/elimernit/60min)
>
> You can book a 60 min call with our engineering team, and we'll get your models running by the end of the call.

Porting a model generally takes 10-20 minutes of refactoring. At a high level, the steps are:

1. Create an empty sandbox
2. [Install Python Requirements](https://docs.slai.io/sandbox/dependencies.md)
3. (*Optional*) Upload pre-trained weights to the [data folder](https://docs.slai.io/sandbox/datasets.md) (if you want to avoiding connecting your dataset and retraining the model from scratch)
4. Copy the model's code into the sandbox, returning your model class from the [`train.py` function](https://docs.slai.io/sandbox/train)
5. Train the model
6. Create your [model handler](https://docs.slai.io/sandbox/model-handler.md)
7. [Package and deploy](https://docs.slai.io/sandbox/deployments.md)

## Example: Basic Scikit-Learn Model

[https://www.loom.com/embed/8b6dc67991fc472e84b2c9d93fe67541](https://www.loom.com/embed/8b6dc67991fc472e84b2c9d93fe67541)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.