Skip to content

Commit 6aa0a97

Browse files
committed
Update version to 0.10.0
1 parent a17a631 commit 6aa0a97

File tree

24 files changed

+56
-58
lines changed

24 files changed

+56
-58
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
Cortex is an open source platform that takes machine learning models—trained with nearly any framework—and turns them into production web APIs in one command. <br>
44

5-
<!-- Delete on release branches -->
6-
<!-- CORTEX_VERSION_README_MINOR x1 -->
7-
[install](https://www.cortex.dev/install)[docs](https://www.cortex.dev)[examples](https://github.com/cortexlabs/cortex/tree/0.9/examples)[we're hiring](https://angel.co/cortex-labs-inc/jobs)[email us](mailto:[email protected])[chat with us](https://gitter.im/cortexlabs/cortex)<br><br>
8-
95
<!-- Set header Cache-Control=no-cache on the S3 object metadata (see https://help.github.com/en/articles/about-anonymized-image-urls) -->
106
![Demo](https://cortex-public.s3-us-west-2.amazonaws.com/demo/gif/v0.8.gif)<br>
117

@@ -47,12 +43,15 @@ The configuration below will download the model from the `cortex-examples` S3 bu
4743

4844
- kind: api
4945
name: generator
50-
model: s3://cortex-examples/text-generator/gpt-2/124M
51-
request_handler: handler.py
46+
tensorflow:
47+
model: s3://cortex-examples/tensorflow/text-generator/gpt-2/124M
48+
request_handler: handler.py
49+
compute:
50+
gpu: 1
5251
```
5352
5453
<!-- CORTEX_VERSION_README_MINOR -->
55-
You can run the code that generated the model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.9/examples/text-generator/gpt-2.ipynb).
54+
You can run the code that generated the model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.10/examples/tensorflow/text-generator/gpt-2.ipynb).
5655
5756
<br>
5857
@@ -66,11 +65,11 @@ The model requires encoded data for inference, but the API should accept strings
6665
from encoder import get_encoder
6766
encoder = get_encoder()
6867

69-
def pre_inference(sample, metadata):
68+
def pre_inference(sample, signature, metadata):
7069
context = encoder.encode(sample["text"])
7170
return {"context": [context]}
7271

73-
def post_inference(prediction, metadata):
72+
def post_inference(prediction, signature, metadata):
7473
response = prediction["sample"]
7574
return encoder.decode(response)
7675
```
@@ -126,9 +125,8 @@ The CLI sends configuration and code to the cluster every time you run `cortex d
126125

127126
## More examples
128127

129-
<!-- CORTEX_VERSION_README_MINOR x3 -->
130-
- [Iris classification](https://github.com/cortexlabs/cortex/tree/0.9/examples/iris-classifier)
131-
132-
- [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.9/examples/sentiment-analysis) with BERT
133-
134-
- [Image classification](https://github.com/cortexlabs/cortex/tree/0.9/examples/image-classifier) with Inception v3 and AlexNet
128+
<!-- CORTEX_VERSION_README_MINOR x4 -->
129+
- [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.10/examples/tensorflow/sentiment-analysis) in TensorFlow with BERT
130+
- [Image classification](https://github.com/cortexlabs/cortex/tree/0.10/examples/tensorflow/image-classifier) in TensorFlow with Inception v3
131+
- [Text Generation](https://github.com/cortexlabs/cortex/tree/0.10/examples/pytorch/text-generator) in PyTorch with Hugging Face's DistilGPT2
132+
- [Iris classification](https://github.com/cortexlabs/cortex/tree/0.10/examples/xgboost/iris-classifier) in XGBoost / ONNX

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.10.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.10.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.10.0
2121

2222
image=$1
2323

docs/cluster/config.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ cluster_name: cortex
3838
telemetry: true
3939

4040
# Image paths
41-
image_predictor_serve: cortexlabs/predictor-serve:master
42-
image_predictor_serve_gpu: cortexlabs/predictor-serve-gpu:master
43-
image_tf_serve: cortexlabs/tf-serve:master
44-
image_tf_serve_gpu: cortexlabs/tf-serve-gpu:master
45-
image_tf_api: cortexlabs/tf-api:master
46-
image_onnx_serve: cortexlabs/onnx-serve:master
47-
image_onnx_serve_gpu: cortexlabs/onnx-serve-gpu:master
48-
image_operator: cortexlabs/operator:master
49-
image_manager: cortexlabs/manager:master
50-
image_downloader: cortexlabs/downloader:master
51-
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:master
52-
image_metrics_server: cortexlabs/metrics-server:master
53-
image_nvidia: cortexlabs/nvidia:master
54-
image_fluentd: cortexlabs/fluentd:master
55-
image_statsd: cortexlabs/statsd:master
56-
image_istio_proxy: cortexlabs/istio-proxy:master
57-
image_istio_pilot: cortexlabs/istio-pilot:master
58-
image_istio_citadel: cortexlabs/istio-citadel:master
59-
image_istio_galley: cortexlabs/istio-galley:master
41+
image_predictor_serve: cortexlabs/predictor-serve:0.10.0
42+
image_predictor_serve_gpu: cortexlabs/predictor-serve-gpu:0.10.0
43+
image_tf_serve: cortexlabs/tf-serve:0.10.0
44+
image_tf_serve_gpu: cortexlabs/tf-serve-gpu:0.10.0
45+
image_tf_api: cortexlabs/tf-api:0.10.0
46+
image_onnx_serve: cortexlabs/onnx-serve:0.10.0
47+
image_onnx_serve_gpu: cortexlabs/onnx-serve-gpu:0.10.0
48+
image_operator: cortexlabs/operator:0.10.0
49+
image_manager: cortexlabs/manager:0.10.0
50+
image_downloader: cortexlabs/downloader:0.10.0
51+
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:0.10.0
52+
image_metrics_server: cortexlabs/metrics-server:0.10.0
53+
image_nvidia: cortexlabs/nvidia:0.10.0
54+
image_fluentd: cortexlabs/fluentd:0.10.0
55+
image_statsd: cortexlabs/statsd:0.10.0
56+
image_istio_proxy: cortexlabs/istio-proxy:0.10.0
57+
image_istio_pilot: cortexlabs/istio-pilot:0.10.0
58+
image_istio_citadel: cortexlabs/istio-citadel:0.10.0
59+
image_istio_galley: cortexlabs/istio-galley:0.10.0
6060
```

docs/cluster/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See [cluster configuration](config.md) to learn how you can customize your clust
1212
<!-- CORTEX_VERSION_MINOR -->
1313
```bash
1414
# Install the Cortex CLI on your machine
15-
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.10/get-cli.sh)"
1616

1717
# Provision infrastructure on AWS and install Cortex
1818
cortex cluster up
@@ -26,7 +26,7 @@ Note: This will create resources in your AWS account which aren't included in th
2626

2727
```bash
2828
# Clone the Cortex repository
29-
git clone -b master https://github.com/cortexlabs/cortex.git
29+
git clone -b 0.10 https://github.com/cortexlabs/cortex.git
3030

3131
# Navigate to the iris classifier example
3232
cd cortex/examples/tensorflow/iris-classifier

docs/cluster/update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cortex cluster update
2222
cortex cluster down
2323

2424
# Update your CLI
25-
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/master/get-cli.sh)"
25+
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.10/get-cli.sh)"
2626

2727
# Confirm version
2828
cortex version

docs/deployments/python-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Python client can be used to programmatically deploy models to a Cortex Clus
44

55
<!-- CORTEX_VERSION_BRANCH_STABLE, e.g. v0.9.0 -->
66
```bash
7-
pip install git+https://github.com/cortexlabs/cortex.git@master#egg=cortex\&subdirectory=pkg/workloads/cortex/client
7+
pip install git+https://github.com/cortexlabs/cortex.git@v0.10.0#egg=cortex\&subdirectory=pkg/workloads/cortex/client
88
```
99

1010
The Python client needs to be initialized with AWS credentials and an operator URL for your Cortex cluster. You can find the operator URL by running `cortex cluster info`.

docs/packaging/tensorflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Packaging TensorFlow models
22

33
<!-- CORTEX_VERSION_MINOR -->
4-
Export your trained model and upload the export directory, or a checkpoint directory containing the export directory (which is usually the case if you used `estimator.train_and_evaluate`). An example is shown below (here is the [complete example](https://github.com/cortexlabs/cortex/blob/master/examples/tensorflow/sentiment-analysis)):
4+
Export your trained model and upload the export directory, or a checkpoint directory containing the export directory (which is usually the case if you used `estimator.train_and_evaluate`). An example is shown below (here is the [complete example](https://github.com/cortexlabs/cortex/blob/0.10/examples/tensorflow/sentiment-analysis)):
55

66
```Python
77
import tensorflow as tf

docs/summary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* [Deploy machine learning models in production](../README.md)
44
* [Install](cluster/install.md)
55
* [GitHub](https://github.com/cortexlabs/cortex)
6-
* [Examples](https://github.com/cortexlabs/cortex/tree/master/examples) <!-- CORTEX_VERSION_MINOR -->
6+
* [Examples](https://github.com/cortexlabs/cortex/tree/0.10/examples) <!-- CORTEX_VERSION_MINOR -->
77
* [We're hiring](https://angel.co/cortex-labs-inc/jobs)
88
* [Email us](mailto:[email protected])
99
* [Chat with us](https://gitter.im/cortexlabs/cortex)

0 commit comments

Comments
 (0)