File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,44 @@ You can configure your cloud deployment using YAML. Take a look at the sample YA
116
116
117
117
__ tfserving-endpoint.yml__
118
118
119
+ ``` yml
120
+ $schema : https://azuremlsdk2.blob.core.windows.net/latest/managedOnlineEndpoint.schema.json
121
+ name : tfserving-endpoint
122
+ auth_mode : aml_token
123
+ ` ` `
124
+
119
125
__tfserving-deployment.yml__
120
126
127
+ ` ` ` yml
128
+ $schema : https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
129
+ name : tfserving-deployment
130
+ endpoint_name : tfserving-endpoint
131
+ model :
132
+ name : tfserving-mounted
133
+ version : {{MODEL_VERSION}}
134
+ path : ./half_plus_two
135
+ environment_variables :
136
+ MODEL_BASE_PATH : /var/azureml-app/azureml-models/tfserving-mounted/{{MODEL_VERSION}}
137
+ MODEL_NAME : half_plus_two
138
+ environment :
139
+ # name: tfserving
140
+ # version: 1
141
+ image : docker.io/tensorflow/serving:latest
142
+ inference_config :
143
+ liveness_route :
144
+ port : 8501
145
+ path : /v1/models/half_plus_two
146
+ readiness_route :
147
+ port : 8501
148
+ path : /v1/models/half_plus_two
149
+ scoring_route :
150
+ port : 8501
151
+ path : /v1/models/half_plus_two:predict
152
+ instance_type : Standard_DS3_v2
153
+ instance_count : 1
154
+ ` ` `
155
+
156
+
121
157
# [Python SDK](#tab/python)
122
158
123
159
### Connect to Azure Machine Learning workspace
You can’t perform that action at this time.
0 commit comments