When you're satisfied with its results, reliability, and performance, you can deploy a model from
the Decision
Optimizationexperiment UI.
The main stages for deployment are as follows:
From the Decision
Optimizationexperiment UI, save your model scenario as a
Model in
your Project.
Promote your
Model to your deployment space.
From your deployment space, create a new deployment.
You can then create and run jobs to your deployed model.
These stages are detailed in the following procedure.
Procedure
Copy link to section
To save your model for deployment:
In the Decision
Optimizationexperiment UI, either from the Scenario or from the Overview pane, click the menu icon for the
scenario that you want to deploy, and select Save for
deployment
Specify a name for your model and add a description, if needed, then click
Next.
Review the Input and Output schema and
select the tables you want to include in the schema.
Review the Run parameters and add, modify or delete any
parameters as necessary.
Review the Environment and Model files
that are listed in the Review and save window.
Click Save.
The model is then available in the Models section of
your project.
To promote your model to your deployment space:
View your model in the Models section of your project.
You can see a summary with input and output schema. Click Promote to deployment
space.
In the Promote to space window that opens, check that the
Target space field displays the name of your deployment space and click
Promote.
Click the link deployment space in the message that you receive
that confirms successful promotion.
Your promoted model is displayed in the Assets tab of your
Deployment space. The information pane shows you the Type, Software
specification, description and any defined tags such as the Python version used.
To create a new deployment:
From the Assets tab of your deployment space, open your
model and click New Deployment.
In the Create a deployment window that opens, specify a name for your
deployment and select a Hardware specification.
Click Create to create the deployment. Your deployment window
opens from which you can later create jobs.
Results
Copy link to section
You can access information about your deployment on the Deployments
tab of your model in your deployment space.
Creating and running Decision
Optimization jobs
Copy link to section
You can create and run jobs to your deployed model.
Procedure
Copy link to section
Return to your deployment space by using the navigation path and (if the data pane isn't
already open) click the data icon to open the data pane. Upload your input
data tables, and solution and kpi output tables here. (You must have output tables defined in your
model to be able to see the solution and kpi values.)
Open your deployment model, by selecting it in the Deployments tab of your deployment
space and click New job.
Define the details of your job by entering a name, and an optional description for your
job and click Next.
Configure your job by selecting a hardware specification and
Next.
You can choose to schedule your job here, or leave
the default schedule option off and click Next. You can also
optionally choose to turn on notifications or click Next.
Choose the data that you want to use in your job by clicking Select the source for each
of your input and output tables. Click Next.
You can now review and create your model by clicking
Create.
When you receive a successful job creation message,
you can then view it by opening it from your deployment space. There you can see the run status of
your job.
Open the run for your job.
Your job log opens and you can also view and copy
the payload information.
Results
Copy link to section
You can create and monitor jobs, and get solutions by using the watsonx.ai Runtime Python
client.
See the RunDeployedModelnotebook in the DO-samples. Select the relevant
product and version subfolder.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.