Skip to content

Commit

Permalink
Update version to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deliahu committed Sep 24, 2019
1 parent cd9d381 commit 25cbb98
Show file tree
Hide file tree
Showing 26 changed files with 59 additions and 59 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img src='https://cortex-public.s3-us-west-2.amazonaws.com/logo.png' height='88'>

<!-- CORTEX_VERSION_MINOR x2 (e.g. docs.cortex.dev/v/0.8/...) -->
[install](https://docs.cortex.dev/install)[docs](https://docs.cortex.dev)[examples](examples)[we're hiring](https://angel.co/cortex-labs-inc/jobs)[email us](mailto:[email protected])[chat with us](https://gitter.im/cortexlabs/cortex)
[install](https://docs.cortex.dev/v/0.8/install)[docs](https://docs.cortex.dev/v/0.8)[examples](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>

Expand Down Expand Up @@ -70,7 +70,7 @@ $ curl http://***.amazonaws.com/my-api -d '{"a": 1, "b": 2, "c": 3}'
```bash
# Download the install script
$ curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.7/cortex.sh && chmod +x cortex.sh
$ curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.8/cortex.sh && chmod +x cortex.sh

# Install the Cortex CLI on your machine: the CLI sends configuration and code to the Cortex cluster
$ ./cortex.sh install cli
Expand All @@ -89,7 +89,7 @@ $ ./cortex.sh install
```
<!-- CORTEX_VERSION_MINOR (e.g. docs.cortex.dev/v/0.8/...) -->
See [installation instructions](https://docs.cortex.dev/cluster/install) for more details.
See [installation instructions](https://docs.cortex.dev/v/0.8/cluster/install) for more details.
<br>
Expand All @@ -114,8 +114,8 @@ See [installation instructions](https://docs.cortex.dev/cluster/install) for mor
## Examples
<!-- CORTEX_VERSION_MINOR_STABLE x3 -->
- [Text generation](https://github.com/cortexlabs/cortex/tree/0.7/examples/text-generator) with GPT-2
- [Text generation](https://github.com/cortexlabs/cortex/tree/0.8/examples/text-generator) with GPT-2
- [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.7/examples/sentiment-analysis) with BERT
- [Sentiment analysis](https://github.com/cortexlabs/cortex/tree/0.8/examples/sentiment-analysis) with BERT
- [Image classification](https://github.com/cortexlabs/cortex/tree/0.7/examples/image-classifier) with Inception v3
- [Image classification](https://github.com/cortexlabs/cortex/tree/0.8/examples/image-classifier) with Inception v3
2 changes: 1 addition & 1 deletion build/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail

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

CORTEX_VERSION=master
CORTEX_VERSION=0.8.0

dir=$1
image=$2
Expand Down
2 changes: 1 addition & 1 deletion build/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -euo pipefail

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

CORTEX_VERSION=master
CORTEX_VERSION=0.8.0

arg1=${1:-""}
upload="false"
Expand Down
2 changes: 1 addition & 1 deletion build/push-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -euo pipefail

CORTEX_VERSION=master
CORTEX_VERSION=0.8.0

image=$1

Expand Down
2 changes: 1 addition & 1 deletion cortex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ set -u
### CONFIGURATION ###
#####################

export CORTEX_VERSION_STABLE=master
export CORTEX_VERSION_STABLE=0.8.0

export CORTEX_CONFIG="${CORTEX_CONFIG:-""}"
if [ "$CORTEX_CONFIG" != "" ]; then
Expand Down
34 changes: 17 additions & 17 deletions docs/cluster/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ export CORTEX_NODES_MAX=5
export CORTEX_NAMESPACE="cortex"

# Image paths
export CORTEX_IMAGE_MANAGER="cortexlabs/manager:master"
export CORTEX_IMAGE_FLUENTD="cortexlabs/fluentd:master"
export CORTEX_IMAGE_STATSD="cortexlabs/statsd:master"
export CORTEX_IMAGE_OPERATOR="cortexlabs/operator:master"
export CORTEX_IMAGE_TF_SERVE="cortexlabs/tf-serve:master"
export CORTEX_IMAGE_TF_API="cortexlabs/tf-api:master"
export CORTEX_IMAGE_TF_SERVE_GPU="cortexlabs/tf-serve-gpu:master"
export CORTEX_IMAGE_ONNX_SERVE="cortexlabs/onnx-serve:master"
export CORTEX_IMAGE_ONNX_SERVE_GPU="cortexlabs/onnx-serve-gpu:master"
export CORTEX_IMAGE_CLUSTER_AUTOSCALER="cortexlabs/cluster-autoscaler:master"
export CORTEX_IMAGE_NVIDIA="cortexlabs/nvidia:master"
export CORTEX_IMAGE_METRICS_SERVER="cortexlabs/metrics-server:master"
export CORTEX_IMAGE_ISTIO_PROXY="cortexlabs/istio-proxy:master"
export CORTEX_IMAGE_ISTIO_PILOT="cortexlabs/istio-pilot:master"
export CORTEX_IMAGE_ISTIO_CITADEL="cortexlabs/istio-citadel:master"
export CORTEX_IMAGE_ISTIO_GALLEY="cortexlabs/istio-galley:master"
export CORTEX_IMAGE_DOWNLOADER="cortexlabs/downloader:master"
export CORTEX_IMAGE_MANAGER="cortexlabs/manager:0.8.0"
export CORTEX_IMAGE_FLUENTD="cortexlabs/fluentd:0.8.0"
export CORTEX_IMAGE_STATSD="cortexlabs/statsd:0.8.0"
export CORTEX_IMAGE_OPERATOR="cortexlabs/operator:0.8.0"
export CORTEX_IMAGE_TF_SERVE="cortexlabs/tf-serve:0.8.0"
export CORTEX_IMAGE_TF_API="cortexlabs/tf-api:0.8.0"
export CORTEX_IMAGE_TF_SERVE_GPU="cortexlabs/tf-serve-gpu:0.8.0"
export CORTEX_IMAGE_ONNX_SERVE="cortexlabs/onnx-serve:0.8.0"
export CORTEX_IMAGE_ONNX_SERVE_GPU="cortexlabs/onnx-serve-gpu:0.8.0"
export CORTEX_IMAGE_CLUSTER_AUTOSCALER="cortexlabs/cluster-autoscaler:0.8.0"
export CORTEX_IMAGE_NVIDIA="cortexlabs/nvidia:0.8.0"
export CORTEX_IMAGE_METRICS_SERVER="cortexlabs/metrics-server:0.8.0"
export CORTEX_IMAGE_ISTIO_PROXY="cortexlabs/istio-proxy:0.8.0"
export CORTEX_IMAGE_ISTIO_PILOT="cortexlabs/istio-pilot:0.8.0"
export CORTEX_IMAGE_ISTIO_CITADEL="cortexlabs/istio-citadel:0.8.0"
export CORTEX_IMAGE_ISTIO_GALLEY="cortexlabs/istio-galley:0.8.0"
export CORTEX_IMAGE_DOWNLOADER="cortexlabs/downloader:0.8.0"

# Flag to enable collecting error reports and usage stats. If flag is not set to either "true" or "false", you will be prompted.
export CORTEX_ENABLE_TELEMETRY=""
Expand Down
4 changes: 2 additions & 2 deletions docs/cluster/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See [cluster configuration](config.md) to customize your installation.

```bash
# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/master/cortex.sh
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.8/cortex.sh

# Change permissions
chmod +x cortex.sh
Expand Down Expand Up @@ -42,7 +42,7 @@ This will create resources in your AWS account which aren't included in the free

```bash
# Clone the Cortex repository
git clone -b master https://github.com/cortexlabs/cortex.git
git clone -b 0.8 https://github.com/cortexlabs/cortex.git

# Navigate to the iris classification example
cd cortex/examples/iris-classifier
Expand Down
2 changes: 1 addition & 1 deletion docs/cluster/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

```bash
# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/master/cortex.sh
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.8/cortex.sh

# Change permissions
chmod +x cortex.sh
Expand Down
2 changes: 1 addition & 1 deletion docs/cluster/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See [cluster configuration](config.md) to customize your installation.

```bash
# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/master/cortex.sh
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.8/cortex.sh

# Change permissions
chmod +x cortex.sh
Expand Down
10 changes: 5 additions & 5 deletions docs/deployments/packaging-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## TensorFlow

<!-- CORTEX_VERSION_MINOR -->
Export your trained model and upload the export directory, or 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/sentiment-analysis)):
Export your trained model and upload the export directory, or 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.8/examples/sentiment-analysis)):

```Python
import tensorflow as tf
Expand Down Expand Up @@ -80,10 +80,10 @@ with open("sklearn.onnx", "wb") as f:
<!-- CORTEX_VERSION_MINOR x4 -->
Here are complete examples of converting models from some of the common ML frameworks to ONNX:
* [PyTorch](https://github.com/cortexlabs/cortex/blob/master/examples/iris-classifier/models/pytorch_model.py)
* [Sklearn](https://github.com/cortexlabs/cortex/blob/master/examples/iris-classifier/models/sklearn_model.py)
* [XGBoost](https://github.com/cortexlabs/cortex/blob/master/examples/iris-classifier/models/xgboost_model.py)
* [Keras](https://github.com/cortexlabs/cortex/blob/master/examples/iris-classifier/models/keras_model.py)
* [PyTorch](https://github.com/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/pytorch_model.py)
* [Sklearn](https://github.com/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/sklearn_model.py)
* [XGBoost](https://github.com/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/xgboost_model.py)
* [Keras](https://github.com/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/keras_model.py)
Upload your trained model in ONNX format to Amazon S3 using the AWS web console or CLI:
Expand Down
2 changes: 1 addition & 1 deletion docs/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

* [README](../README.md)
* [Install](cluster/install.md)
* [Examples](https://github.com/cortexlabs/cortex/tree/master/examples) <!-- CORTEX_VERSION_MINOR -->
* [Examples](https://github.com/cortexlabs/cortex/tree/0.8/examples) <!-- CORTEX_VERSION_MINOR -->

## Deployments

Expand Down
4 changes: 2 additions & 2 deletions examples/image-classifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ A `deployment` specifies a set of resources that are deployed as a single unit.
```
<!-- CORTEX_VERSION_MINOR x2 -->
You can run the code that generated the exported models used in this example folder here:
- [Pytorch Alexnet](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/image-classifier/alexnet.ipynb)
- [Tensorflow Inception V3](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/image-classifier/inception.ipynb)
- [Pytorch Alexnet](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/image-classifier/alexnet.ipynb)
- [Tensorflow Inception V3](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/image-classifier/inception.ipynb)
## Add request handling
Expand Down
2 changes: 1 addition & 1 deletion examples/image-classifier/alexnet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/image-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/image-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/image-classifier/inception.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/image-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/image-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
10 changes: 5 additions & 5 deletions examples/iris-classifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Define a `deployment` and an `api` resource in `cortex.yaml`. A `deployment` spe
```
<!-- CORTEX_VERSION_MINOR x5 -->
You can run the code that generated the exported models used in this folder example here:
- [Tensorflow](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/iris-classifier/models/tensorflow.ipynb)
- [Pytorch](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/iris-classifier/models/pytorch.ipynb)
- [Keras](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/iris-classifier/models/keras.ipynb)
- [XGBoost](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/iris-classifier/models/xgboost.ipynb)
- [sklearn](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/iris-classifier/models/sklearn.ipynb)
- [Tensorflow](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/tensorflow.ipynb)
- [Pytorch](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/pytorch.ipynb)
- [Keras](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/keras.ipynb)
- [XGBoost](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/xgboost.ipynb)
- [sklearn](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/iris-classifier/models/sklearn.ipynb)
## Add request handling
Expand Down
2 changes: 1 addition & 1 deletion examples/iris-classifier/models/keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/iris-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/iris-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/iris-classifier/models/pytorch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/iris-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/iris-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions examples/iris-classifier/models/sklearn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"We also need to upload the mean and standard deviation, so that the [pre-inference request handler](https://github.com/cortexlabs/cortex/blob/master/examples/iris-classifier/handlers/sklearn.py) can normalize the data before making real-time predictions."
"We also need to upload the mean and standard deviation, so that the [pre-inference request handler](https://github.com/cortexlabs/cortex/blob/0.8/examples/iris-classifier/handlers/sklearn.py) can normalize the data before making real-time predictions."
]
},
{
Expand Down Expand Up @@ -347,7 +347,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/iris-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/iris-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/iris-classifier/models/tensorflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/iris-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/iris-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/iris-classifier/models/xgboost.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/iris-classifier) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/iris-classifier) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/sentiment-analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A `deployment` specifies a set of resources that are deployed as a single unit.
request_handler: sentiment.py
```
<!-- CORTEX_VERSION_MINOR -->
You can run the code that generated the exported BERT model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/sentiment-analysis/bert.ipynb).
You can run the code that generated the exported BERT model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/sentiment-analysis/bert.ipynb).
## Add request handling
Expand Down
2 changes: 1 addition & 1 deletion examples/sentiment-analysis/bert.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/sentiment-analysis) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/sentiment-analysis) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/text-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A `deployment` specifies a set of resources that are deployed as a single unit.
gpu: 1
```
<!-- CORTEX_VERSION_MINOR -->
You can run the code that generated the exported GPT-2 model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/master/examples/text-generator/gpt-2.ipynb).
You can run the code that generated the exported GPT-2 model [here](https://colab.research.google.com/github/cortexlabs/cortex/blob/0.8/examples/text-generator/gpt-2.ipynb).
## Add request handling
Expand Down
4 changes: 2 additions & 2 deletions examples/text-generator/gpt-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR x2 -->\n",
"We also need to upload `vocab.bpe` and `encoder.json`, so that the [encoder](https://github.com/cortexlabs/cortex/blob/master/examples/text-generator/encoder.py) in the [pre-inference request handler](https://github.com/cortexlabs/cortex/blob/master/examples/text-generator/handler.py) can encode the input text before making a request to the model."
"We also need to upload `vocab.bpe` and `encoder.json`, so that the [encoder](https://github.com/cortexlabs/cortex/blob/0.8/examples/text-generator/encoder.py) in the [pre-inference request handler](https://github.com/cortexlabs/cortex/blob/0.8/examples/text-generator/handler.py) can encode the input text before making a request to the model."
]
},
{
Expand Down Expand Up @@ -374,7 +374,7 @@
},
"source": [
"<!-- CORTEX_VERSION_MINOR -->\n",
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/master/examples/text-generator) for how to deploy the model as an API."
"That's it! See the [example on GitHub](https://github.com/cortexlabs/cortex/tree/0.8/examples/text-generator) for how to deploy the model as an API."
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package consts

var (
CortexVersion = "master" // CORTEX_VERSION
CortexVersion = "0.8.0" // CORTEX_VERSION

ContextCacheDir = "/mnt/context"
EmptyDirMountPath = "/mnt"
Expand Down
2 changes: 1 addition & 1 deletion pkg/workloads/cortex/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

CORTEX_VERSION = "master"
CORTEX_VERSION = "0.8.0"

0 comments on commit 25cbb98

Please sign in to comment.