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
# provision infrastructure on AWS and spin up a cluster
30
35
$ cortex cluster up
31
36
32
37
aws region: us-west-2
33
38
aws instance type: p2.xlarge
39
+
spot instances: yes
34
40
min instances: 0
35
41
max instances: 10
36
-
spot instances: yes
37
42
38
43
○ spinning up your cluster ...
39
44
your cluster is ready!
@@ -106,9 +111,9 @@ negative 4
106
111
107
112
<br>
108
113
109
-
## What is Cortex an alternative to?
114
+
## What is Cortex similar to?
110
115
111
-
Cortex is an open source alternative to serving models with SageMaker or building your own model deployment platform on top of AWS services like Elastic Kubernetes Service (EKS), Elastic Container Service (ECS), Lambda, Fargate, and Elastic Compute Cloud (EC2) or open source projects like Docker, Kubernetes, and TensorFlow Serving.
116
+
Cortex is an open source alternative to serving models with SageMaker or building your own model deployment platform on top of AWS services like Elastic Kubernetes Service (EKS), Elastic Container Service (ECS), Lambda, Fargate, and Elastic Compute Cloud (EC2) and open source projects like Docker, Kubernetes, and TensorFlow Serving.
api status up-to-date available requested last update
373
+
classifier live 1 1 1 10m
374
+
another-classifier live 1 1 1 5m
375
+
batch-classifier live 1 1 1 8s
376
+
```
377
+
378
+
<br>
379
+
380
+
## Try a batch prediction
381
+
382
+
```bash
383
+
$ curl http://***.amazonaws.com/iris/classifier \
384
+
-X POST -H "Content-Type: application/json" \
385
+
-d '[
386
+
{
387
+
"sepal_length": 5.2,
388
+
"sepal_width": 3.6,
389
+
"petal_length": 1.5,
390
+
"petal_width": 0.3
391
+
},
392
+
{
393
+
"sepal_length": 7.1,
394
+
"sepal_width": 3.3,
395
+
"petal_length": 4.8,
396
+
"petal_width": 1.5
397
+
},
398
+
{
399
+
"sepal_length": 6.4,
400
+
"sepal_width": 3.4,
401
+
"petal_length": 6.1,
402
+
"petal_width": 2.6
403
+
}
404
+
]'
405
+
406
+
["setosa","versicolor","virginica"]
291
407
```
292
408
293
409
<br>
@@ -301,6 +417,7 @@ $ cortex delete
301
417
302
418
deleting classifier api
303
419
deleting another-classifier api
420
+
deleting batch-classifier api
304
421
```
305
422
306
423
Running `cortex delete` will free up cluster resources and allow Cortex to scale down to the minimum number of instances you specified during cluster installation. It will not spin down your cluster.
0 commit comments