Migrating from Mystic
Deploy a Model from Mystic on Cerebrium
Introduction
We are saddened by the news that Mystic AI is sunsetting their services. They were a early pioneer in the space and really pushed the industry forward. To support their users and ensure that their apps still remain functional despite the circumstances, this guide will walk you through migrating apps from Mystic to Cerebrium.
We’ll show you how to convert your existing Mystic code (Using a stable diffusion example) and configuration to work with the Cerebrium platform. You’ll learn about the tools and features available to make this transition as seamless as possible, including ways to optimize your deployments for better performance and cost efficiency.
Key Differences
Cerebrium helps teams deploy and run their models efficiently. Our infrastructure is designed for reliable performance:
- The average model cold starts in 2-5 seconds
- Updates to your code deploy quickly, taking only 8-14 seconds
- 99.9 % uptime
Cerebrium gives you precise control over your computing resources. Instead of managing entire instances, which can become costly and unnecessary, you choose exactly how much CPU, memory, and GPU power you need. You pay only for the resources you use, calculated down to the second. To better understand costs for your specific needs, you can use our pricing calculator.
Migration Process
1. Project Setup and Configuration
Start by installing Cerebrium’s command-line tool and creating your project:
Next, we’ll convert your existing configuration to Cerebrium’s format. Here’s what your current Mystic configuration may look like:
Transforms into Cerebrium’s easy-to-understand TOML config:
2. Code Migration
Now we’ll convert your model implementation. Here’s what a typical Mystic pipeline looks like:
Which becomes much simpler in Cerebrium. Add the following to you main.py
file:
3. Deployment
Deploy your model with a single command:
4. Inference
Once your app is deployed, you’re now able to successfully make requests to your model using a the below example cURL request:
Transitioning between platforms requires careful planning and execution. We’re here to help make this process as smooth as possible for teams like yours. Our platform provides the tools and support you need to ensure your apps continue running with unparalleled reliability.
Join Our Community
Connect with other developers and our team in our active communities for better response and issue resolution times:
- Join our Discord server
- Join our Slack workspace
These communities are great places to share migration experiences, get quick answers to technical questions, learn best practices from other developers, and stay updated on new features and improvements.