Deploying Custom Models
Deploy your custom models to SoraNova
Prerequisites
Make sure you have:
- Access to your webconsole instance (as root user)
Push your model image
Suppose you have a custom model image that you want to deploy to SoraNova. You should first pull the image to your webconsole instance.
For example, if you have a custom model image hosted on docker.soracloud.net
, you can pull it with the following command:
Then, you can seed your custom model with the following command:
The
sora
CLI is a command-line interface used to interact with your SoraNova instance. If you haven’t installed it yet, follow the Quickstart guide.
Define the deployment recipe
You can deploy it by creating a new recipe by creating a model.hcl
file with the following contents:
The deployment configuration DSL shown below is experimental and subject to change in future releases.
health
needs to be defined by the image to tell SoraNova how to check if the model is healthy.Deploy and Interact
To deploy the model:
After deployment, list your models using:
/openapi.json
endpoint, you can inspect it’s API using sora model api <model-slug>
.🎉 That’s it — your model is now live and ready to serve requests. Happy building!