Skip to content

Commit e49a9f3

Browse files
committed
Update version to 0.18.0
1 parent 17e1c2a commit e49a9f3

File tree

27 files changed

+80
-86
lines changed

27 files changed

+80
-86
lines changed

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
<!-- Delete on release branches -->
2-
<img src='https://s3-us-west-2.amazonaws.com/cortex-public/logo.png' height='88'>
3-
41
# Build machine learning APIs
52

63
<br>
74

8-
<!-- Delete on release branches -->
9-
<!-- CORTEX_VERSION_README_MINOR -->
10-
[install](https://docs.cortex.dev/install)[docs](https://docs.cortex.dev)[examples](https://github.com/cortexlabs/cortex/tree/0.17/examples)[we're hiring](https://angel.co/cortex-labs-inc/jobs)[chat with us](https://gitter.im/cortexlabs/cortex)<br><br>
11-
125
<!-- Set header Cache-Control=no-cache on the S3 object metadata (see https://help.github.com/en/articles/about-anonymized-image-urls) -->
136
![Demo](https://d1zqebknpdh033.cloudfront.net/demo/gif/v0.13_2.gif)
147

@@ -33,7 +26,7 @@
3326

3427
<!-- CORTEX_VERSION_README_MINOR -->
3528
```bash
36-
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.17/get-cli.sh)"
29+
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh)"
3730
```
3831

3932
### Implement your predictor
@@ -147,6 +140,6 @@ Cortex manages its own Kubernetes cluster so that end-to-end functionality like
147140
## Examples
148141

149142
<!-- CORTEX_VERSION_README_MINOR x3 -->
150-
* [Image classification](https://github.com/cortexlabs/cortex/tree/0.17/examples/tensorflow/image-classifier): deploy an Inception model to classify images.
151-
* [Search completion](https://github.com/cortexlabs/cortex/tree/0.17/examples/pytorch/search-completer): deploy Facebook's RoBERTa model to complete search terms.
152-
* [Text generation](https://github.com/cortexlabs/cortex/tree/0.17/examples/pytorch/text-generator): deploy Hugging Face's DistilGPT2 model to generate text.
143+
* [Image classification](https://github.com/cortexlabs/cortex/tree/0.18/examples/tensorflow/image-classifier): deploy an Inception model to classify images.
144+
* [Search completion](https://github.com/cortexlabs/cortex/tree/0.18/examples/pytorch/search-completer): deploy Facebook's RoBERTa model to complete search terms.
145+
* [Text generation](https://github.com/cortexlabs/cortex/tree/0.18/examples/pytorch/text-generator): deploy Hugging Face's DistilGPT2 model to generate text.

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.18.0
2323

2424
slim="false"
2525
while [[ $# -gt 0 ]]; do

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.18.0
2323

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

build/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if [ "$is_release_branch" = "true" ]; then
9898
! -path "./bin/*" \
9999
! -path "./.git/*" \
100100
! -name ".*" \
101-
-exec grep -R -A 100 -e "CORTEX_VERSION" {} \;)
101+
-exec grep -R -A 5 -e "CORTEX_VERSION" {} \;)
102102
output=$(echo "$output" | grep -e "master" || true)
103103
if [[ $output ]]; then
104104
echo 'occurrences of "master" which should be changed to the version number:'

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.18.0
2121

2222
slim="false"
2323
while [[ $# -gt 0 ]]; do

docs/cluster-management/config.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ instance_volume_type: gp2
4747

4848
# whether the subnets used for EC2 instances should be public or private (default: "public")
4949
# if "public", instances will be assigned public IP addresses; if "private", instances won't have public IPs and a NAT gateway will be created to allow outgoing network requests
50-
# see https://docs.cortex.dev/v/master/miscellaneous/security#private-cluster for more information
50+
# see https://docs.cortex.dev/v/0.18/miscellaneous/security#private-cluster for more information
5151
subnet_visibility: public # must be "public" or "private"
5252

5353
# whether to include a NAT gateway with the cluster (a NAT gateway is necessary when using private subnets)
@@ -56,12 +56,12 @@ nat_gateway: none # must be "none", "single", or "highly_available" (highly_ava
5656

5757
# whether the API load balancer should be internet-facing or internal (default: "internet-facing")
5858
# note: if using "internal", APIs will still be accessible via the public API Gateway endpoint unless you also disable API Gateway in your API's configuration (if you do that, you must configure VPC Peering to connect to your APIs)
59-
# see https://docs.cortex.dev/v/master/miscellaneous/security#private-cluster for more information
59+
# see https://docs.cortex.dev/v/0.18/miscellaneous/security#private-cluster for more information
6060
api_load_balancer_scheme: internet-facing # must be "internet-facing" or "internal"
6161

6262
# whether the operator load balancer should be internet-facing or internal (default: "internet-facing")
63-
# note: if using "internal", you must configure VPC Peering to connect your CLI to your cluster operator (https://docs.cortex.dev/v/master/guides/vpc-peering)
64-
# see https://docs.cortex.dev/v/master/miscellaneous/security#private-cluster for more information
63+
# note: if using "internal", you must configure VPC Peering to connect your CLI to your cluster operator (https://docs.cortex.dev/v/0.18/guides/vpc-peering)
64+
# see https://docs.cortex.dev/v/0.18/miscellaneous/security#private-cluster for more information
6565
operator_load_balancer_scheme: internet-facing # must be "internet-facing" or "internal"
6666

6767
# CloudWatch log group for cortex (default: <cluster_name>)
@@ -71,10 +71,10 @@ log_group: cortex
7171
tags: # <string>: <string> map of key/value pairs
7272

7373
# whether to use spot instances in the cluster (default: false)
74-
# see https://docs.cortex.dev/v/master/cluster-management/spot-instances for additional details on spot configuration
74+
# see https://docs.cortex.dev/v/0.18/cluster-management/spot-instances for additional details on spot configuration
7575
spot: false
7676

77-
# see https://docs.cortex.dev/v/master/guides/custom-domain for instructions on how to set up a custom domain
77+
# see https://docs.cortex.dev/v/0.18/guides/custom-domain for instructions on how to set up a custom domain
7878
ssl_certificate_arn:
7979
```
8080
@@ -85,19 +85,19 @@ The docker images used by the Cortex cluster can also be overridden, although th
8585
<!-- CORTEX_VERSION_BRANCH_STABLE -->
8686
```yaml
8787
# docker image paths
88-
image_operator: cortexlabs/operator:master
89-
image_manager: cortexlabs/manager:master
90-
image_downloader: cortexlabs/downloader:master
91-
image_request_monitor: cortexlabs/request-monitor:master
92-
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:master
93-
image_metrics_server: cortexlabs/metrics-server:master
94-
image_inferentia: cortexlabs/inferentia:master
95-
image_neuron_rtd: cortexlabs/neuron-rtd:master
96-
image_nvidia: cortexlabs/nvidia:master
97-
image_fluentd: cortexlabs/fluentd:master
98-
image_statsd: cortexlabs/statsd:master
99-
image_istio_proxy: cortexlabs/istio-proxy:master
100-
image_istio_pilot: cortexlabs/istio-pilot:master
101-
image_istio_citadel: cortexlabs/istio-citadel:master
102-
image_istio_galley: cortexlabs/istio-galley:master
88+
image_operator: cortexlabs/operator:0.18.0
89+
image_manager: cortexlabs/manager:0.18.0
90+
image_downloader: cortexlabs/downloader:0.18.0
91+
image_request_monitor: cortexlabs/request-monitor:0.18.0
92+
image_cluster_autoscaler: cortexlabs/cluster-autoscaler:0.18.0
93+
image_metrics_server: cortexlabs/metrics-server:0.18.0
94+
image_inferentia: cortexlabs/inferentia:0.18.0
95+
image_neuron_rtd: cortexlabs/neuron-rtd:0.18.0
96+
image_nvidia: cortexlabs/nvidia:0.18.0
97+
image_fluentd: cortexlabs/fluentd:0.18.0
98+
image_statsd: cortexlabs/statsd:0.18.0
99+
image_istio_proxy: cortexlabs/istio-proxy:0.18.0
100+
image_istio_pilot: cortexlabs/istio-pilot:0.18.0
101+
image_istio_citadel: cortexlabs/istio-citadel:0.18.0
102+
image_istio_galley: cortexlabs/istio-galley:0.18.0
103103
```

docs/cluster-management/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- CORTEX_VERSION_MINOR -->
1010
```bash
11-
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/master/get-cli.sh)"
11+
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh)"
1212
```
1313

1414
Continue to [deploy an example](#deploy-an-example) below.
@@ -26,7 +26,7 @@ To use GPU nodes, you may need to subscribe to the [EKS-optimized AMI with GPU S
2626
<!-- CORTEX_VERSION_MINOR -->
2727
```bash
2828
# install the CLI on your machine
29-
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/master/get-cli.sh)"
29+
$ bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/0.18/get-cli.sh)"
3030

3131
# provision infrastructure on AWS and spin up a cluster
3232
$ cortex cluster up
@@ -37,7 +37,7 @@ $ cortex cluster up
3737
<!-- CORTEX_VERSION_MINOR -->
3838
```bash
3939
# clone the Cortex repository
40-
$ git clone -b master https://github.com/cortexlabs/cortex.git
40+
$ git clone -b 0.18 https://github.com/cortexlabs/cortex.git
4141

4242
# navigate to the TensorFlow iris classification example
4343
$ cd cortex/examples/tensorflow/iris-classifier

docs/cluster-management/update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cortex cluster configure
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.18/get-cli.sh)"
2626

2727
# confirm version
2828
cortex version

docs/deployments/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ deleting my-api
6363
<!-- CORTEX_VERSION_MINOR -->
6464
* [Tutorial](../../examples/sklearn/iris-classifier/README.md) provides a step-by-step walkthough of deploying an iris classifier API
6565
* [CLI documentation](../miscellaneous/cli.md) lists all CLI commands
66-
* [Examples](https://github.com/cortexlabs/cortex/tree/master/examples) demonstrate how to deploy models from common ML libraries
66+
* [Examples](https://github.com/cortexlabs/cortex/tree/0.18/examples) demonstrate how to deploy models from common ML libraries

docs/deployments/exporting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Here are examples for some common ML libraries:
1111
The recommended approach is export your PyTorch model with [torch.save()](https://pytorch.org/docs/stable/torch.html?highlight=save#torch.save). Here is PyTorch's documentation on [saving and loading models](https://pytorch.org/tutorials/beginner/saving_loading_models.html).
1212

1313
<!-- CORTEX_VERSION_MINOR -->
14-
[examples/pytorch/iris-classifier](https://github.com/cortexlabs/cortex/blob/master/examples/pytorch/iris-classifier) exports its trained model like this:
14+
[examples/pytorch/iris-classifier](https://github.com/cortexlabs/cortex/blob/0.18/examples/pytorch/iris-classifier) exports its trained model like this:
1515

1616
```python
1717
torch.save(model.state_dict(), "weights.pth")
@@ -24,7 +24,7 @@ For Inferentia-equipped instances, check the [Inferentia instructions](inferenti
2424
It may also be possible to export your PyTorch model into the ONNX format using [torch.onnx.export()](https://pytorch.org/docs/stable/onnx.html#torch.onnx.export).
2525

2626
<!-- CORTEX_VERSION_MINOR -->
27-
For example, if [examples/pytorch/iris-classifier](https://github.com/cortexlabs/cortex/blob/master/examples/pytorch/iris-classifier) were to export the model to ONNX, it would look like this:
27+
For example, if [examples/pytorch/iris-classifier](https://github.com/cortexlabs/cortex/blob/0.18/examples/pytorch/iris-classifier) were to export the model to ONNX, it would look like this:
2828

2929
```python
3030
placeholder = torch.randn(1, 4)
@@ -52,7 +52,7 @@ A TensorFlow `SavedModel` directory should have this structure:
5252
```
5353

5454
<!-- CORTEX_VERSION_MINOR -->
55-
Most of the TensorFlow examples use this approach. Here is the relevant code from [examples/tensorflow/sentiment-analyzer](https://github.com/cortexlabs/cortex/blob/master/examples/tensorflow/sentiment-analyzer):
55+
Most of the TensorFlow examples use this approach. Here is the relevant code from [examples/tensorflow/sentiment-analyzer](https://github.com/cortexlabs/cortex/blob/0.18/examples/tensorflow/sentiment-analyzer):
5656

5757
```python
5858
import tensorflow as tf
@@ -90,14 +90,14 @@ aws s3 cp bert.zip s3://my-bucket/bert.zip
9090
```
9191

9292
<!-- CORTEX_VERSION_MINOR -->
93-
[examples/tensorflow/iris-classifier](https://github.com/cortexlabs/cortex/blob/master/examples/tensorflow/iris-classifier) also use the `SavedModel` approach, and includes a Python notebook demonstrating how it was exported.
93+
[examples/tensorflow/iris-classifier](https://github.com/cortexlabs/cortex/blob/0.18/examples/tensorflow/iris-classifier) also use the `SavedModel` approach, and includes a Python notebook demonstrating how it was exported.
9494

9595
### Other model formats
9696

9797
There are other ways to export Keras or TensorFlow models, and as long as they can be loaded and used to make predictions in Python, they will be supported by Cortex.
9898

9999
<!-- CORTEX_VERSION_MINOR -->
100-
For example, the `crnn` API in [examples/tensorflow/license-plate-reader](https://github.com/cortexlabs/cortex/blob/master/examples/tensorflow/license-plate-reader) uses this approach.
100+
For example, the `crnn` API in [examples/tensorflow/license-plate-reader](https://github.com/cortexlabs/cortex/blob/0.18/examples/tensorflow/license-plate-reader) uses this approach.
101101

102102
## Scikit-learn
103103

@@ -106,7 +106,7 @@ For example, the `crnn` API in [examples/tensorflow/license-plate-reader](https:
106106
Scikit-learn models are typically exported using `pickle`. Here is [Scikit-learn's documentation](https://scikit-learn.org/stable/modules/model_persistence.html).
107107

108108
<!-- CORTEX_VERSION_MINOR -->
109-
[examples/sklearn/iris-classifier](https://github.com/cortexlabs/cortex/blob/master/examples/sklearn/iris-classifier) uses this approach. Here is the relevant code:
109+
[examples/sklearn/iris-classifier](https://github.com/cortexlabs/cortex/blob/0.18/examples/sklearn/iris-classifier) uses this approach. Here is the relevant code:
110110

111111
```python
112112
pickle.dump(model, open("model.pkl", "wb"))
@@ -159,7 +159,7 @@ model.save_model("model.bin")
159159
It is also possible to export an XGBoost model to the ONNX format using [onnxmltools](https://github.com/onnx/onnxmltools).
160160

161161
<!-- CORTEX_VERSION_MINOR -->
162-
[examples/onnx/iris-classifier](https://github.com/cortexlabs/cortex/blob/master/examples/onnx/iris-classifier) uses this approach. Here is the relevant code:
162+
[examples/onnx/iris-classifier](https://github.com/cortexlabs/cortex/blob/0.18/examples/onnx/iris-classifier) uses this approach. Here is the relevant code:
163163

164164
```python
165165
from onnxmltools.convert import convert_xgboost

0 commit comments

Comments
 (0)