Skip to main content


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

Create a deployment of an ECD model.


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).



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 = pc.create_deployment('titanic_deployment', model, replace=True)