Skip to content

Commit c7a27d5

Browse files
committed
Update version to 0.12.0
1 parent 39e8e36 commit c7a27d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+96
-141
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ Cortex is an open source platform for deploying machine learning models as produ
44

55
<br>
66

7-
<!-- Delete on release branches -->
8-
<!-- CORTEX_VERSION_README_MINOR -->
9-
[install](https://www.cortex.dev/install)[tutorial](https://www.cortex.dev/iris-classifier)[docs](https://www.cortex.dev)[examples](https://github.com/cortexlabs/cortex/tree/0.11/examples)[we're hiring](https://angel.co/cortex-labs-inc/jobs)[email us](mailto:hello@cortex.dev)[chat with us](https://gitter.im/cortexlabs/cortex)<br><br>
10-
117
<!-- Set header Cache-Control=no-cache on the S3 object metadata (see https://help.github.com/en/articles/about-anonymized-image-urls) -->
128
![Demo](https://d1zqebknpdh033.cloudfront.net/demo/gif/v0.11.gif)
139

@@ -33,7 +29,7 @@ Cortex is designed to be self-hosted on any AWS account. You can spin up a clust
3329
<!-- CORTEX_VERSION_README_MINOR -->
3430
```bash
3531
# install the CLI on your machine
36-
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.11/get-cli.sh)"
32+
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.12/get-cli.sh)"
3733

3834
# provision infrastructure on AWS and spin up a cluster
3935
$ cortex cluster up
@@ -57,10 +53,12 @@ your cluster is ready!
5753
```python
5854
# predictor.py
5955

60-
model = download_model()
56+
class PythonPredictor:
57+
def __init__(self, config):
58+
self.model = download_model()
6159

62-
def predict(sample, metadata):
63-
return model.predict(sample["text"])
60+
def predict(self, payload):
61+
return model.predict(payload["text"])
6462
```
6563

6664
### Configure your deployment
@@ -74,6 +72,7 @@ def predict(sample, metadata):
7472
- kind: api
7573
name: classifier
7674
predictor:
75+
type: python
7776
path: predictor.py
7877
tracker:
7978
model_type: classification
@@ -130,8 +129,8 @@ The CLI sends configuration and code to the cluster every time you run `cortex d
130129
## Examples of Cortex deployments
131130

132131
<!-- CORTEX_VERSION_README_MINOR x5 -->
133-
* [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.11/examples/tensorflow/sentiment-analyzer): deploy a BERT model for sentiment analysis.
134-
* [Image classification](https://github.com/cortexlabs/cortex/tree/0.11/examples/tensorflow/image-classifier): deploy an Inception model to classify images.
135-
* [Search completion](https://github.com/cortexlabs/cortex/tree/0.11/examples/pytorch/search-completer): deploy Facebook's RoBERTa model to complete search terms.
136-
* [Text generation](https://github.com/cortexlabs/cortex/tree/0.11/examples/pytorch/text-generator): deploy Hugging Face's DistilGPT2 model to generate text.
137-
* [Iris classification](https://github.com/cortexlabs/cortex/tree/0.11/examples/sklearn/iris-classifier): deploy a scikit-learn model to classify iris flowers.
132+
* [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.12/examples/tensorflow/sentiment-analyzer): deploy a BERT model for sentiment analysis.
133+
* [Image classification](https://github.com/cortexlabs/cortex/tree/0.12/examples/tensorflow/image-classifier): deploy an Inception model to classify images.
134+
* [Search completion](https://github.com/cortexlabs/cortex/tree/0.12/examples/pytorch/search-completer): deploy Facebook's RoBERTa model to complete search terms.
135+
* [Text generation](https://github.com/cortexlabs/cortex/tree/0.12/examples/pytorch/text-generator): deploy Hugging Face's DistilGPT2 model to generate text.
136+
* [Iris classification](https://github.com/cortexlabs/cortex/tree/0.12/examples/sklearn/iris-classifier): deploy a scikit-learn model to classify iris flowers.

build/build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -euo pipefail
1919

2020
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"
2121

22-
CORTEX_VERSION=master
22+
CORTEX_VERSION=0.12.0
2323

2424
dir=$1
2525
image=$2

build/cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -euo pipefail
1919

2020
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"
2121

22-
CORTEX_VERSION=master
22+
CORTEX_VERSION=0.12.0
2323

2424
arg1=${1:-""}
2525
upload="false"

build/push-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
set -euo pipefail
1919

20-
CORTEX_VERSION=master
20+
CORTEX_VERSION=0.12.0
2121

2222
image=$1
2323

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# AWS credentials
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
As of now, Cortex only runs on AWS. We plan to support other cloud providers in the future. If you don't have an AWS account you can get started with one [here](https://portal.aws.amazon.com/billing/signup#/start).
64

75
Follow this [tutorial](https://aws.amazon.com/premiumsupport/knowledge-center/create-access-key) to create an access key. Enable programmatic access for the IAM user, and attach the built-in `AdministratorAccess` policy to your IAM user (or see [security](security.md) for a minimal access configuration).

docs/cluster-management/cli.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# CLI commands
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
## deploy
64

75
```text

docs/cluster-management/config.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Cluster configuration
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
The Cortex cluster may be configured by providing a configuration file to `cortex cluster up` or `cortex cluster update` via the `--config` flag (e.g. `cortex cluster up --config=cluster.yaml`). Below is the schema for the cluster configuration file, with default values shown (unless otherwise specified):
64

75
<!-- CORTEX_VERSION_BRANCH_STABLE -->
@@ -45,27 +43,27 @@ instance_volume_size: 50
4543
log_group: cortex
4644

4745
# whether to use spot instances in the cluster (default: false)
48-
# see cortex.dev/v/master/cluster-management/spot-instances for additional details on spot configuration
46+
# see cortex.dev/v/0.12/cluster-management/spot-instances for additional details on spot configuration
4947
spot: false
5048

5149
# docker image paths
52-
image_python_serve: cortexlabs/python-serve:master
53-
image_python_serve_gpu: cortexlabs/python-serve-gpu:master
54-
image_tf_serve: cortexlabs/tf-serve:master
55-
image_tf_serve_gpu: cortexlabs/tf-serve-gpu:master
56-
image_tf_api: cortexlabs/tf-api:master
57-
image_onnx_serve: cortexlabs/onnx-serve:master
58-
image_onnx_serve_gpu: cortexlabs/onnx-serve-gpu:master
59-
image_operator: cortexlabs/operator:master
60-
image_manager: cortexlabs/manager:master
61-
image_downloader: cortexlabs/downloader:master
62-
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:master
63-
image_metrics_server: cortexlabs/metrics-server:master
64-
image_nvidia: cortexlabs/nvidia:master
65-
image_fluentd: cortexlabs/fluentd:master
66-
image_statsd: cortexlabs/statsd:master
67-
image_istio_proxy: cortexlabs/istio-proxy:master
68-
image_istio_pilot: cortexlabs/istio-pilot:master
69-
image_istio_citadel: cortexlabs/istio-citadel:master
70-
image_istio_galley: cortexlabs/istio-galley:master
50+
image_python_serve: cortexlabs/python-serve:0.12.0
51+
image_python_serve_gpu: cortexlabs/python-serve-gpu:0.12.0
52+
image_tf_serve: cortexlabs/tf-serve:0.12.0
53+
image_tf_serve_gpu: cortexlabs/tf-serve-gpu:0.12.0
54+
image_tf_api: cortexlabs/tf-api:0.12.0
55+
image_onnx_serve: cortexlabs/onnx-serve:0.12.0
56+
image_onnx_serve_gpu: cortexlabs/onnx-serve-gpu:0.12.0
57+
image_operator: cortexlabs/operator:0.12.0
58+
image_manager: cortexlabs/manager:0.12.0
59+
image_downloader: cortexlabs/downloader:0.12.0
60+
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:0.12.0
61+
image_metrics_server: cortexlabs/metrics-server:0.12.0
62+
image_nvidia: cortexlabs/nvidia:0.12.0
63+
image_fluentd: cortexlabs/fluentd:0.12.0
64+
image_statsd: cortexlabs/statsd:0.12.0
65+
image_istio_proxy: cortexlabs/istio-proxy:0.12.0
66+
image_istio_pilot: cortexlabs/istio-pilot:0.12.0
67+
image_istio_citadel: cortexlabs/istio-citadel:0.12.0
68+
image_istio_galley: cortexlabs/istio-galley:0.12.0
7169
```

docs/cluster-management/ec2-instances.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# EC2 instances
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
You can spin up a Cortex cluster on a variety of AWS instance types. If you are unsure about which instance to pick, review these options as a starting point. This is not a comprehensive guide so please refer to the [full documentation](https://aws.amazon.com/ec2/instance-types/) on AWS for more information.
64

75
## T3 instances

docs/cluster-management/install.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Install
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
## Prerequisites
64

75
1. [Docker](https://docs.docker.com/install)
@@ -14,7 +12,7 @@ See [cluster configuration](config.md) to learn how you can customize your insta
1412
<!-- CORTEX_VERSION_MINOR -->
1513
```bash
1614
# install the CLI on your machine
17-
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/master/get-cli.sh)"
15+
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.12/get-cli.sh)"
1816

1917
# provision infrastructure on AWS and spin up a cluster
2018
cortex cluster up
@@ -28,7 +26,7 @@ Note: This will create resources in your AWS account which aren't included in th
2826

2927
```bash
3028
# clone the Cortex repository
31-
git clone -b master https://github.com/cortexlabs/cortex.git
29+
git clone -b 0.12 https://github.com/cortexlabs/cortex.git
3230

3331
# navigate to the iris classifier example
3432
cd cortex/examples/sklearn/iris-classifier

docs/cluster-management/security.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Security
22

3-
_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_
4-
53
## IAM permissions
64

75
If you are not using a sensitive AWS account and do not have a lot of experience with IAM configuration, attaching the existing policy `AdministratorAccess` to your IAM user will make getting started much easier.

0 commit comments

Comments
 (0)