Skip to main content


pc.create_deployment(name, model, engine_name, replace, exists_ok, comment)

Create an deployment. Returns an list of deployment verisons.


   name: str
Name of the deployment to be created.

   model: model object
Model to deploy.

   engine_name: str
Optional serving engine name to deploy to (Default None).

   replace: bool
Optional flag replace a deployment (default False).

   exists_ok: bool
Optional flag to only create deployment if not exists (default False).

   comment: str
Optional comment for the deployment (default None).


   List of Deployment


Creates or replaces the deployment named titanic_deployment using the model Titanic Model with the default serving engine.

model = pc.get_model('Titanic Model')

deployment = client.create_deployment('titanic_deployment', model, replace=True)