You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: labs/DSGo-Oct2021/procedures/odsc-4-deploy-model.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,28 +22,34 @@ In this lab you will:
22
22
Now we're going to deploy the model to its own compute instance so that it can be used. This will take the model from the catalog and create a runtime version of it that's ready to receive requests.
23
23
24
24
1. Confirm you have completed all the prerequisites and are viewing your Data Science project.
25
+
25
26

26
27
27
28
1. Under *Resources*, select **Models** to see the list of models in your model catalog.
29
+
28
30

29
31
30
32
1. Find the row containing **sklearn-employee-attrition**. On the right end of the row, click the 3-dot icon to open a pop-up menu.
31
33
32
34
1. In the pop-up menu, click **Create model deployment**. The *Create Model Deployment* dialog opens.
35
+
33
36

34
37
35
38
1. In the *Create Model Deployment* dialog, configure the fields as described below.
39
+
36
40

37
41
- Ensure *Compartment* is set to **root**.
38
42
- Enter *Name* as **MyModelDeployment**
39
43
- Ensure *Models* is set to **sklearn-employee-attrition**
40
44
- In the *Compute* box, click **Select**.
41
45
- Enter **1** for *Number of Instances* and check **VM.Standard2.4**. Then click **Submit**.
46
+
42
47

43
48
44
49
- (We will not configure Logging in this lab.)
45
50
46
51
- Click **Create** in the Create Model deployment dialog. It takes about 10 minutes for the deployment to be provisioned and its status will be *Creating*. Wait for the status to change to *Active* to indicate the model is deployed.
52
+
47
53

48
54
49
55
> **Note** - You just deployed the model through the OCI Console, but you can also deploy a model using python code in a notebook. The ADS library provides functions to do this. See [Model Deployment with ADS](https://docs.oracle.com/en-us/iaas/tools/ads-sdk/latest/user_guide/model_deployment/model_deployment.html) for more information.
@@ -62,14 +68,17 @@ Now that the model is deployed, we will go back to the notebook and invoke its H
62
68
- Click on **Open**. It will open in a separate browser tab. If prompted to sign-in, provide your Oracle Cloud credentials. <br/>
63
69

64
70
71
+
65
72
1. Ensure you are viewing the browser tab/window displaying *LabNotebookSession*. <br/>
73
+
66
74

67
75
68
76
1. Open notebook **2-model-deployment.ipynb**, but don't start stepping through it yet.
69
77
70
78
1. In the next-to-the-last code block, find the statement:
71
79
> # Replace with the uri of your model deployment: <br/>uri = ''
72
80
81
+
73
82
1.**Paste** your deployed model endpoint URI into the statement between the single quote marks.
0 commit comments