Replicate · Arazzo Workflow
Replicate Create a Deployment and Run a Prediction Through It
Version 1.0.0
Pick hardware, create a deployment for a model version, then run a prediction via the deployment.
View Spec
View on GitHub
Artificial IntelligenceMachine LearningImage GenerationLanguage ModelsModel DeploymentArazzoWorkflows
Provider
Workflows
deploy-and-predict
Create a deployment for a model version and run a prediction through it.
Lists hardware to confirm the requested SKU, creates a deployment pinning a model version to that hardware with instance bounds, submits a prediction through the deployment, and polls the prediction to completion.
1
listHardware
hardware.list
List the available hardware SKUs so the requested hardware can be validated before creating the deployment.
2
createDeployment
deployments.create
Create the deployment, pinning the model version to the chosen hardware and instance bounds.
3
createDeploymentPrediction
deployments.predictions.create
Run a prediction through the newly created deployment using its owner and name.
4
getPrediction
predictions.get
Retrieve the prediction state, repeating via the retry branch until the prediction reaches a terminal status.