diff --git a/README.md b/README.md index c88212a111..67ccd10f38 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -[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:hello@cortex.dev) • [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:hello@cortex.dev) • [chat with us](https://gitter.im/cortexlabs/cortex)
@@ -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 @@ -89,7 +89,7 @@ $ ./cortex.sh install ``` -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.
@@ -114,8 +114,8 @@ See [installation instructions](https://docs.cortex.dev/cluster/install) for mor ## Examples -- [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 diff --git a/build/build-image.sh b/build/build-image.sh index 7e8ce0353f..ec1a7e13d7 100755 --- a/build/build-image.sh +++ b/build/build-image.sh @@ -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 diff --git a/build/cli.sh b/build/cli.sh index fb515bbb11..7607f824e0 100755 --- a/build/cli.sh +++ b/build/cli.sh @@ -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" diff --git a/build/push-image.sh b/build/push-image.sh index b502d0d4f5..352025a582 100755 --- a/build/push-image.sh +++ b/build/push-image.sh @@ -17,7 +17,7 @@ set -euo pipefail -CORTEX_VERSION=master +CORTEX_VERSION=0.8.0 image=$1 diff --git a/cortex.sh b/cortex.sh index 35858119a3..e32ff3abc1 100755 --- a/cortex.sh +++ b/cortex.sh @@ -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 diff --git a/docs/cluster/config.md b/docs/cluster/config.md index 5ce3cf4a82..87f96f0361 100644 --- a/docs/cluster/config.md +++ b/docs/cluster/config.md @@ -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="" diff --git a/docs/cluster/install.md b/docs/cluster/install.md index 57b065aeb5..b37cbf13b0 100644 --- a/docs/cluster/install.md +++ b/docs/cluster/install.md @@ -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 @@ -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 diff --git a/docs/cluster/uninstall.md b/docs/cluster/uninstall.md index 35ffad1c83..9ce0a0f2ac 100644 --- a/docs/cluster/uninstall.md +++ b/docs/cluster/uninstall.md @@ -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 diff --git a/docs/cluster/update.md b/docs/cluster/update.md index 787af119a8..abd435c5fb 100644 --- a/docs/cluster/update.md +++ b/docs/cluster/update.md @@ -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 diff --git a/docs/deployments/packaging-models.md b/docs/deployments/packaging-models.md index 14ec75e289..2753287c93 100644 --- a/docs/deployments/packaging-models.md +++ b/docs/deployments/packaging-models.md @@ -3,7 +3,7 @@ ## TensorFlow -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 @@ -80,10 +80,10 @@ with open("sklearn.onnx", "wb") as f: 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: diff --git a/docs/summary.md b/docs/summary.md index ad67bcd6c8..ce65732228 100644 --- a/docs/summary.md +++ b/docs/summary.md @@ -2,7 +2,7 @@ * [README](../README.md) * [Install](cluster/install.md) -* [Examples](https://github.com/cortexlabs/cortex/tree/master/examples) +* [Examples](https://github.com/cortexlabs/cortex/tree/0.8/examples) ## Deployments diff --git a/examples/image-classifier/README.md b/examples/image-classifier/README.md index f8afd00a34..39e808a92d 100644 --- a/examples/image-classifier/README.md +++ b/examples/image-classifier/README.md @@ -17,8 +17,8 @@ A `deployment` specifies a set of resources that are deployed as a single unit. ``` 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 diff --git a/examples/image-classifier/alexnet.ipynb b/examples/image-classifier/alexnet.ipynb index 825f2e5857..81b0556efe 100644 --- a/examples/image-classifier/alexnet.ipynb +++ b/examples/image-classifier/alexnet.ipynb @@ -166,7 +166,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/image-classifier/inception.ipynb b/examples/image-classifier/inception.ipynb index f3796e9e74..ddcd197026 100644 --- a/examples/image-classifier/inception.ipynb +++ b/examples/image-classifier/inception.ipynb @@ -202,7 +202,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/iris-classifier/README.md b/examples/iris-classifier/README.md index 73310168ed..0e6bda723a 100644 --- a/examples/iris-classifier/README.md +++ b/examples/iris-classifier/README.md @@ -17,11 +17,11 @@ Define a `deployment` and an `api` resource in `cortex.yaml`. A `deployment` spe ``` 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 diff --git a/examples/iris-classifier/models/keras.ipynb b/examples/iris-classifier/models/keras.ipynb index 326ac11ff1..45a6850b58 100644 --- a/examples/iris-classifier/models/keras.ipynb +++ b/examples/iris-classifier/models/keras.ipynb @@ -242,7 +242,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/iris-classifier/models/pytorch.ipynb b/examples/iris-classifier/models/pytorch.ipynb index 2e16433452..677de384fc 100644 --- a/examples/iris-classifier/models/pytorch.ipynb +++ b/examples/iris-classifier/models/pytorch.ipynb @@ -274,7 +274,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/iris-classifier/models/sklearn.ipynb b/examples/iris-classifier/models/sklearn.ipynb index f4d7fbba47..e8d8c16cc6 100644 --- a/examples/iris-classifier/models/sklearn.ipynb +++ b/examples/iris-classifier/models/sklearn.ipynb @@ -293,7 +293,7 @@ }, "source": [ "\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." ] }, { @@ -347,7 +347,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/iris-classifier/models/tensorflow.ipynb b/examples/iris-classifier/models/tensorflow.ipynb index 3b1877af64..eded59ad70 100644 --- a/examples/iris-classifier/models/tensorflow.ipynb +++ b/examples/iris-classifier/models/tensorflow.ipynb @@ -287,7 +287,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/iris-classifier/models/xgboost.ipynb b/examples/iris-classifier/models/xgboost.ipynb index 3243d8b5af..f1bd0d03d0 100644 --- a/examples/iris-classifier/models/xgboost.ipynb +++ b/examples/iris-classifier/models/xgboost.ipynb @@ -235,7 +235,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/sentiment-analysis/README.md b/examples/sentiment-analysis/README.md index ef728fe6b0..7c37300e8f 100644 --- a/examples/sentiment-analysis/README.md +++ b/examples/sentiment-analysis/README.md @@ -16,7 +16,7 @@ A `deployment` specifies a set of resources that are deployed as a single unit. request_handler: sentiment.py ``` -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 diff --git a/examples/sentiment-analysis/bert.ipynb b/examples/sentiment-analysis/bert.ipynb index 70c462c874..d2d64c84b9 100644 --- a/examples/sentiment-analysis/bert.ipynb +++ b/examples/sentiment-analysis/bert.ipynb @@ -998,7 +998,7 @@ }, "source": [ "\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." ] } ] diff --git a/examples/text-generator/README.md b/examples/text-generator/README.md index e818e67fa7..b920cb7580 100644 --- a/examples/text-generator/README.md +++ b/examples/text-generator/README.md @@ -18,7 +18,7 @@ A `deployment` specifies a set of resources that are deployed as a single unit. gpu: 1 ``` -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 diff --git a/examples/text-generator/gpt-2.ipynb b/examples/text-generator/gpt-2.ipynb index cf4760711d..a2474d3241 100644 --- a/examples/text-generator/gpt-2.ipynb +++ b/examples/text-generator/gpt-2.ipynb @@ -344,7 +344,7 @@ }, "source": [ "\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." ] }, { @@ -374,7 +374,7 @@ }, "source": [ "\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." ] } ] diff --git a/pkg/consts/consts.go b/pkg/consts/consts.go index 3ed04b5cab..650decce7f 100644 --- a/pkg/consts/consts.go +++ b/pkg/consts/consts.go @@ -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" diff --git a/pkg/workloads/cortex/consts.py b/pkg/workloads/cortex/consts.py index 91c4a779fe..11befd7e3b 100644 --- a/pkg/workloads/cortex/consts.py +++ b/pkg/workloads/cortex/consts.py @@ -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"