From ea94a5cd7e3b747f8346f1aec049e63393a15356 Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Tue, 24 Mar 2020 21:56:30 -0700 Subject: [PATCH] Update version comments --- docs/cluster-management/aws-credentials.md | 2 -- docs/cluster-management/cli.md | 2 -- docs/cluster-management/config.md | 2 -- docs/cluster-management/ec2-instances.md | 2 -- docs/cluster-management/install.md | 2 -- docs/cluster-management/security.md | 2 -- docs/cluster-management/spot-instances.md | 2 -- docs/cluster-management/telemetry.md | 2 -- docs/cluster-management/uninstall.md | 2 -- docs/cluster-management/update.md | 2 -- docs/deployments/api-configuration.md | 2 -- docs/deployments/autoscaling.md | 2 -- docs/deployments/compute.md | 2 -- docs/deployments/deployment.md | 2 -- docs/deployments/exporting.md | 2 -- docs/deployments/gpus.md | 2 -- docs/deployments/prediction-monitoring.md | 2 -- docs/deployments/predictors.md | 2 -- docs/deployments/python-packages.md | 2 -- docs/deployments/statuses.md | 2 -- docs/deployments/system-packages.md | 2 -- examples/keras/document-denoiser/cortex.yaml | 2 +- examples/keras/document-denoiser/predictor.py | 2 +- examples/keras/document-denoiser/trainer.ipynb | 2 +- examples/pytorch/answer-generator/cortex.yaml | 2 +- examples/pytorch/answer-generator/generator.py | 2 +- examples/pytorch/answer-generator/predictor.py | 2 +- examples/pytorch/image-classifier/cortex.yaml | 2 +- examples/pytorch/image-classifier/predictor.py | 2 +- examples/pytorch/iris-classifier/cortex.yaml | 2 +- examples/pytorch/iris-classifier/model.py | 2 +- examples/pytorch/iris-classifier/predictor.py | 2 +- examples/pytorch/language-identifier/cortex.yaml | 2 +- examples/pytorch/language-identifier/predictor.py | 2 +- examples/pytorch/object-detector/cortex.yaml | 2 +- examples/pytorch/object-detector/predictor.py | 2 +- examples/pytorch/reading-comprehender/cortex.yaml | 2 +- examples/pytorch/reading-comprehender/predictor.py | 2 +- examples/pytorch/search-completer/cortex.yaml | 2 +- examples/pytorch/search-completer/predictor.py | 2 +- examples/pytorch/sentiment-analyzer/cortex.yaml | 2 +- .../pytorch/sentiment-analyzer/fastai_sentiment_ulmfit.ipynb | 2 +- examples/pytorch/sentiment-analyzer/predictor.py | 2 +- examples/pytorch/text-generator/cortex.yaml | 2 +- examples/pytorch/text-generator/predictor.py | 2 +- examples/pytorch/text-summarizer/cortex.yaml | 2 +- examples/pytorch/text-summarizer/predictor.py | 2 +- examples/sklearn/iris-classifier/README.md | 2 +- examples/sklearn/iris-classifier/batch-predictor.py | 2 +- examples/sklearn/iris-classifier/cortex.yaml | 2 +- examples/sklearn/iris-classifier/predictor.py | 2 +- examples/sklearn/iris-classifier/trainer.py | 2 +- examples/sklearn/mpg-estimator/cortex.yaml | 2 +- examples/sklearn/mpg-estimator/predictor.py | 2 +- examples/sklearn/mpg-estimator/trainer.py | 2 +- examples/tensorflow/image-classifier/cortex.yaml | 2 +- examples/tensorflow/image-classifier/inception.ipynb | 2 +- examples/tensorflow/image-classifier/predictor.py | 2 +- examples/tensorflow/iris-classifier/cortex.yaml | 2 +- examples/tensorflow/iris-classifier/predictor.py | 2 +- examples/tensorflow/iris-classifier/tensorflow.ipynb | 2 +- examples/tensorflow/license-plate-reader/cortex.yaml | 2 +- examples/tensorflow/license-plate-reader/predictor_crnn.py | 2 +- examples/tensorflow/license-plate-reader/predictor_yolo.py | 2 +- examples/tensorflow/license-plate-reader/sample_inference.py | 2 +- examples/tensorflow/license-plate-reader/utils/bbox.py | 2 +- examples/tensorflow/license-plate-reader/utils/colors.py | 2 +- examples/tensorflow/license-plate-reader/utils/utils.py | 2 +- examples/tensorflow/sentiment-analyzer/bert.ipynb | 2 +- examples/tensorflow/sentiment-analyzer/cortex.yaml | 2 +- examples/tensorflow/sentiment-analyzer/predictor.py | 2 +- examples/tensorflow/text-generator/cortex.yaml | 2 +- examples/tensorflow/text-generator/encoder.py | 2 +- examples/tensorflow/text-generator/gpt-2.ipynb | 2 +- examples/tensorflow/text-generator/predictor.py | 2 +- examples/xgboost/iris-classifier/cortex.yaml | 2 +- examples/xgboost/iris-classifier/predictor.py | 2 +- examples/xgboost/iris-classifier/xgboost.ipynb | 2 +- 78 files changed, 57 insertions(+), 99 deletions(-) diff --git a/docs/cluster-management/aws-credentials.md b/docs/cluster-management/aws-credentials.md index 663e7fffac..b935cdd573 100644 --- a/docs/cluster-management/aws-credentials.md +++ b/docs/cluster-management/aws-credentials.md @@ -1,7 +1,5 @@ # AWS credentials -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - 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). 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). diff --git a/docs/cluster-management/cli.md b/docs/cluster-management/cli.md index 32efe2e2f1..d29479f0d8 100644 --- a/docs/cluster-management/cli.md +++ b/docs/cluster-management/cli.md @@ -1,7 +1,5 @@ # CLI commands -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## deploy ```text diff --git a/docs/cluster-management/config.md b/docs/cluster-management/config.md index 34aa70c27e..54099e1879 100644 --- a/docs/cluster-management/config.md +++ b/docs/cluster-management/config.md @@ -1,7 +1,5 @@ # Cluster configuration -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - 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): diff --git a/docs/cluster-management/ec2-instances.md b/docs/cluster-management/ec2-instances.md index ebf7ea7be2..3d4722574b 100644 --- a/docs/cluster-management/ec2-instances.md +++ b/docs/cluster-management/ec2-instances.md @@ -1,7 +1,5 @@ # EC2 instances -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - 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. ## T3 instances diff --git a/docs/cluster-management/install.md b/docs/cluster-management/install.md index 78abc38136..4d88231e6a 100644 --- a/docs/cluster-management/install.md +++ b/docs/cluster-management/install.md @@ -1,7 +1,5 @@ # Install -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## Prerequisites 1. [Docker](https://docs.docker.com/install) diff --git a/docs/cluster-management/security.md b/docs/cluster-management/security.md index e90cdb3ff3..a0af73aa3d 100644 --- a/docs/cluster-management/security.md +++ b/docs/cluster-management/security.md @@ -1,7 +1,5 @@ # Security -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## IAM permissions If you are not using a sensitive AWS account and do not have a lot of experience with IAM configuration, attaching the built-in `AdministratorAccess` policy to your IAM user will make getting started much easier. If you would like to limit IAM permissions, continue reading. diff --git a/docs/cluster-management/spot-instances.md b/docs/cluster-management/spot-instances.md index 393f212b60..7121242b4e 100644 --- a/docs/cluster-management/spot-instances.md +++ b/docs/cluster-management/spot-instances.md @@ -1,7 +1,5 @@ # Spot instances -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - [Spot instances](https://aws.amazon.com/ec2/spot/) are spare capacity that AWS sells at a discount (up to 90%). The caveat is that spot instances may not always be available, and can be recalled by AWS at anytime. Cortex allows you to use spot instances in your cluster to take advantage of the discount while ensuring uptime and reliability of APIs. You can configure your cluster to use spot instances using the configuration below: ```yaml diff --git a/docs/cluster-management/telemetry.md b/docs/cluster-management/telemetry.md index 21e5f6ee19..cadb290929 100644 --- a/docs/cluster-management/telemetry.md +++ b/docs/cluster-management/telemetry.md @@ -1,7 +1,5 @@ # Telemetry -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - By default, the Cortex CLI sends anonymous usage data to Cortex Labs. ## What data is collected? diff --git a/docs/cluster-management/uninstall.md b/docs/cluster-management/uninstall.md index 8adbaadbf0..c07fa944c5 100644 --- a/docs/cluster-management/uninstall.md +++ b/docs/cluster-management/uninstall.md @@ -1,7 +1,5 @@ # Uninstall -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## Prerequisites 1. [AWS credentials](aws-credentials.md) diff --git a/docs/cluster-management/update.md b/docs/cluster-management/update.md index 91c970c973..fe20eb9821 100644 --- a/docs/cluster-management/update.md +++ b/docs/cluster-management/update.md @@ -1,7 +1,5 @@ # Update -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## Prerequisites 1. [Docker](https://docs.docker.com/install) diff --git a/docs/deployments/api-configuration.md b/docs/deployments/api-configuration.md index f8f8ac1760..79c8ed45d1 100644 --- a/docs/deployments/api-configuration.md +++ b/docs/deployments/api-configuration.md @@ -1,7 +1,5 @@ # API configuration -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Once your model is [exported](exporting.md) and you've implemented a [Predictor](predictors.md), you can configure your API via a yaml file (typically named `cortex.yaml`). Reference the section below which corresponds to your Predictor type: [Python](#python-predictor), [TensorFlow](#tensorflow-predictor), or [ONNX](#onnx-predictor). diff --git a/docs/deployments/autoscaling.md b/docs/deployments/autoscaling.md index ecf31872e3..ab5490aa5f 100644 --- a/docs/deployments/autoscaling.md +++ b/docs/deployments/autoscaling.md @@ -1,7 +1,5 @@ # Autoscaling -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Cortex autoscales your web services based on your configuration. ## Replica Parallelism diff --git a/docs/deployments/compute.md b/docs/deployments/compute.md index 3208da231b..30f71d3e33 100644 --- a/docs/deployments/compute.md +++ b/docs/deployments/compute.md @@ -1,7 +1,5 @@ # Compute -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Compute resource requests in Cortex follow the syntax and meaning of [compute resources in Kubernetes](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container). For example: diff --git a/docs/deployments/deployment.md b/docs/deployments/deployment.md index bb511c5ca2..b12a142e9e 100644 --- a/docs/deployments/deployment.md +++ b/docs/deployments/deployment.md @@ -1,7 +1,5 @@ # API deployment -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Once your model is [exported](exporting.md), you've implemented a [Predictor](predictors.md), and you've [configured your API](api-configuration.md), you're ready to deploy! ## `cortex deploy` diff --git a/docs/deployments/exporting.md b/docs/deployments/exporting.md index d4c0fb68cf..b4c5daba7e 100644 --- a/docs/deployments/exporting.md +++ b/docs/deployments/exporting.md @@ -1,7 +1,5 @@ # Exporting models -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Cortex can deploy models that are exported in a variety of formats. Therefore, it is best practice to export your model by following the recommendations of your machine learning library. Here are examples for some common ML libraries: diff --git a/docs/deployments/gpus.md b/docs/deployments/gpus.md index 4d8c941f8c..c3facc5685 100644 --- a/docs/deployments/gpus.md +++ b/docs/deployments/gpus.md @@ -1,7 +1,5 @@ # Using GPUs -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - To use GPUs: 1. Make sure your AWS account is subscribed to the [EKS-optimized AMI with GPU Support](https://aws.amazon.com/marketplace/pp/B07GRHFXGM). diff --git a/docs/deployments/prediction-monitoring.md b/docs/deployments/prediction-monitoring.md index 289131f50e..c38648604f 100644 --- a/docs/deployments/prediction-monitoring.md +++ b/docs/deployments/prediction-monitoring.md @@ -1,7 +1,5 @@ # Prediction monitoring -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - `tracker` can be configured to collect API prediction metrics and display real-time stats in `cortex get `. The tracker looks for scalar values in the response payload. If the response payload is a JSON object, `key` can be set to extract the desired scalar value. ```yaml diff --git a/docs/deployments/predictors.md b/docs/deployments/predictors.md index 371b9ea009..510fcaccbb 100644 --- a/docs/deployments/predictors.md +++ b/docs/deployments/predictors.md @@ -1,7 +1,5 @@ # Predictor implementation -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Once your model is [exported](exporting.md), you can implement one of Cortex's Predictor classes to deploy your model. A Predictor is a Python class that describes how to initialize your model and use it to make predictions. Which Predictor you use depends on how your model is exported: diff --git a/docs/deployments/python-packages.md b/docs/deployments/python-packages.md index 4bbf429d1f..791eb9fbaf 100644 --- a/docs/deployments/python-packages.md +++ b/docs/deployments/python-packages.md @@ -1,7 +1,5 @@ # Python packages -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - ## PyPI packages You can install your required PyPI packages and import them in your Python files. Cortex looks for a `requirements.txt` file in the top level Cortex project directory (i.e. the directory which contains `cortex.yaml`): diff --git a/docs/deployments/statuses.md b/docs/deployments/statuses.md index 138d5b47bb..11b490bc01 100644 --- a/docs/deployments/statuses.md +++ b/docs/deployments/statuses.md @@ -1,7 +1,5 @@ # API statuses -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - | Status | Meaning | | :--- | :--- | | live | API is deployed and ready to serve prediction requests (at least one replica is running) | diff --git a/docs/deployments/system-packages.md b/docs/deployments/system-packages.md index d3c03dddd5..6e8fb45b66 100644 --- a/docs/deployments/system-packages.md +++ b/docs/deployments/system-packages.md @@ -1,7 +1,5 @@ # System packages -_WARNING: you are on the master branch, please refer to the docs on the branch that matches your `cortex version`_ - Cortex uses Docker images to deploy your models. These images can be replaced with custom images that you can augment with your system packages and libraries. You will need to push your custom images to a container registry that your cluster has access to (e.g. [Docker Hub](https://hub.docker.com) or [AWS ECR](https://aws.amazon.com/ecr)). ## Create a custom image diff --git a/examples/keras/document-denoiser/cortex.yaml b/examples/keras/document-denoiser/cortex.yaml index 2a76f9cea8..c60831175e 100644 --- a/examples/keras/document-denoiser/cortex.yaml +++ b/examples/keras/document-denoiser/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: document-denoiser predictor: diff --git a/examples/keras/document-denoiser/predictor.py b/examples/keras/document-denoiser/predictor.py index bd125d6798..1cf3512a12 100644 --- a/examples/keras/document-denoiser/predictor.py +++ b/examples/keras/document-denoiser/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import boto3, base64, cv2, re, os, requests import numpy as np diff --git a/examples/keras/document-denoiser/trainer.ipynb b/examples/keras/document-denoiser/trainer.ipynb index 9d05e9f445..5a4a5779d3 100644 --- a/examples/keras/document-denoiser/trainer.ipynb +++ b/examples/keras/document-denoiser/trainer.ipynb @@ -13,7 +13,7 @@ "metadata": {}, "outputs": [], "source": [ - "# _WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "# _this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n", "\n", "import keras\n", diff --git a/examples/pytorch/answer-generator/cortex.yaml b/examples/pytorch/answer-generator/cortex.yaml index 62295fb0f3..44e803ac2b 100644 --- a/examples/pytorch/answer-generator/cortex.yaml +++ b/examples/pytorch/answer-generator/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: answer-generator predictor: diff --git a/examples/pytorch/answer-generator/generator.py b/examples/pytorch/answer-generator/generator.py index 243a934f19..b9c8dd12d2 100644 --- a/examples/pytorch/answer-generator/generator.py +++ b/examples/pytorch/answer-generator/generator.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex # This file includes code which was modified from https://colab.research.google.com/drive/1KTLqiAOdKM_3RnBWfqgrvOQLqumUyOdA diff --git a/examples/pytorch/answer-generator/predictor.py b/examples/pytorch/answer-generator/predictor.py index f98ec04b89..58001bcfab 100644 --- a/examples/pytorch/answer-generator/predictor.py +++ b/examples/pytorch/answer-generator/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import wget import torch diff --git a/examples/pytorch/image-classifier/cortex.yaml b/examples/pytorch/image-classifier/cortex.yaml index 3907e22819..57f41d4c83 100644 --- a/examples/pytorch/image-classifier/cortex.yaml +++ b/examples/pytorch/image-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: image-classifier predictor: diff --git a/examples/pytorch/image-classifier/predictor.py b/examples/pytorch/image-classifier/predictor.py index 69dc4eba9b..3e4348274a 100644 --- a/examples/pytorch/image-classifier/predictor.py +++ b/examples/pytorch/image-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import requests import torch diff --git a/examples/pytorch/iris-classifier/cortex.yaml b/examples/pytorch/iris-classifier/cortex.yaml index cc69fd78ee..863aedc2a1 100644 --- a/examples/pytorch/iris-classifier/cortex.yaml +++ b/examples/pytorch/iris-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: iris-classifier predictor: diff --git a/examples/pytorch/iris-classifier/model.py b/examples/pytorch/iris-classifier/model.py index 5690c22f46..b81d91ed6c 100644 --- a/examples/pytorch/iris-classifier/model.py +++ b/examples/pytorch/iris-classifier/model.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import torch import torch.nn as nn diff --git a/examples/pytorch/iris-classifier/predictor.py b/examples/pytorch/iris-classifier/predictor.py index 28f23bcd58..ce71f196d2 100644 --- a/examples/pytorch/iris-classifier/predictor.py +++ b/examples/pytorch/iris-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import re import torch diff --git a/examples/pytorch/language-identifier/cortex.yaml b/examples/pytorch/language-identifier/cortex.yaml index 29365714bc..7214a49e2b 100644 --- a/examples/pytorch/language-identifier/cortex.yaml +++ b/examples/pytorch/language-identifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: language-identifier predictor: diff --git a/examples/pytorch/language-identifier/predictor.py b/examples/pytorch/language-identifier/predictor.py index 742416ebe4..b41c87f2b0 100644 --- a/examples/pytorch/language-identifier/predictor.py +++ b/examples/pytorch/language-identifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import wget import fasttext diff --git a/examples/pytorch/object-detector/cortex.yaml b/examples/pytorch/object-detector/cortex.yaml index ef4cc278b6..a0b93c876d 100644 --- a/examples/pytorch/object-detector/cortex.yaml +++ b/examples/pytorch/object-detector/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: object-detector predictor: diff --git a/examples/pytorch/object-detector/predictor.py b/examples/pytorch/object-detector/predictor.py index 82523c377e..3578910592 100644 --- a/examples/pytorch/object-detector/predictor.py +++ b/examples/pytorch/object-detector/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex from io import BytesIO diff --git a/examples/pytorch/reading-comprehender/cortex.yaml b/examples/pytorch/reading-comprehender/cortex.yaml index f99ed2d6e5..aef02e7d66 100644 --- a/examples/pytorch/reading-comprehender/cortex.yaml +++ b/examples/pytorch/reading-comprehender/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: reading-comprehender predictor: diff --git a/examples/pytorch/reading-comprehender/predictor.py b/examples/pytorch/reading-comprehender/predictor.py index 33e5045551..c1b33afa43 100644 --- a/examples/pytorch/reading-comprehender/predictor.py +++ b/examples/pytorch/reading-comprehender/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex from allennlp.predictors.predictor import Predictor as AllenNLPPredictor diff --git a/examples/pytorch/search-completer/cortex.yaml b/examples/pytorch/search-completer/cortex.yaml index a392adc056..d5faf249e0 100644 --- a/examples/pytorch/search-completer/cortex.yaml +++ b/examples/pytorch/search-completer/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: search-completer predictor: diff --git a/examples/pytorch/search-completer/predictor.py b/examples/pytorch/search-completer/predictor.py index 5f52b59027..0e466d858a 100644 --- a/examples/pytorch/search-completer/predictor.py +++ b/examples/pytorch/search-completer/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import torch import regex diff --git a/examples/pytorch/sentiment-analyzer/cortex.yaml b/examples/pytorch/sentiment-analyzer/cortex.yaml index afec105c40..c0d26be03d 100644 --- a/examples/pytorch/sentiment-analyzer/cortex.yaml +++ b/examples/pytorch/sentiment-analyzer/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: sentiment-analyzer predictor: diff --git a/examples/pytorch/sentiment-analyzer/fastai_sentiment_ulmfit.ipynb b/examples/pytorch/sentiment-analyzer/fastai_sentiment_ulmfit.ipynb index 07a54ad0ba..bdd24cf31f 100644 --- a/examples/pytorch/sentiment-analyzer/fastai_sentiment_ulmfit.ipynb +++ b/examples/pytorch/sentiment-analyzer/fastai_sentiment_ulmfit.ipynb @@ -20,7 +20,7 @@ }, "source": [ "# Exporting ULMFiT with fastai\n", - "WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`\n", + "this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex\n", "\n", "This file includes code which was modified from https://docs.fast.ai/text.html\n" ] diff --git a/examples/pytorch/sentiment-analyzer/predictor.py b/examples/pytorch/sentiment-analyzer/predictor.py index 3c105845a1..f61d7e2425 100644 --- a/examples/pytorch/sentiment-analyzer/predictor.py +++ b/examples/pytorch/sentiment-analyzer/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex from fastai.text import * import requests diff --git a/examples/pytorch/text-generator/cortex.yaml b/examples/pytorch/text-generator/cortex.yaml index dea6393cd6..7eefd424ba 100644 --- a/examples/pytorch/text-generator/cortex.yaml +++ b/examples/pytorch/text-generator/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: text-generator predictor: diff --git a/examples/pytorch/text-generator/predictor.py b/examples/pytorch/text-generator/predictor.py index 747872b358..9c762ce6b9 100644 --- a/examples/pytorch/text-generator/predictor.py +++ b/examples/pytorch/text-generator/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex # This file includes code which was modified from https://github.com/huggingface/transformers/blob/master/examples/run_generation.py diff --git a/examples/pytorch/text-summarizer/cortex.yaml b/examples/pytorch/text-summarizer/cortex.yaml index cb3aeb3d99..a09c175afe 100644 --- a/examples/pytorch/text-summarizer/cortex.yaml +++ b/examples/pytorch/text-summarizer/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: text-summarizer predictor: diff --git a/examples/pytorch/text-summarizer/predictor.py b/examples/pytorch/text-summarizer/predictor.py index 934210a664..14aa61dee5 100644 --- a/examples/pytorch/text-summarizer/predictor.py +++ b/examples/pytorch/text-summarizer/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex from summarizer import Summarizer diff --git a/examples/sklearn/iris-classifier/README.md b/examples/sklearn/iris-classifier/README.md index b2ca38b59d..e3dcd6ed60 100644 --- a/examples/sklearn/iris-classifier/README.md +++ b/examples/sklearn/iris-classifier/README.md @@ -1,6 +1,6 @@ # Deploy a model as a web service -_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_ +_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_ This example shows how to deploy a classifier trained on the famous [iris data set](https://archive.ics.uci.edu/ml/datasets/iris) using scikit-learn. diff --git a/examples/sklearn/iris-classifier/batch-predictor.py b/examples/sklearn/iris-classifier/batch-predictor.py index 97afaf09de..0d0bfc0f9d 100644 --- a/examples/sklearn/iris-classifier/batch-predictor.py +++ b/examples/sklearn/iris-classifier/batch-predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import boto3 import pickle diff --git a/examples/sklearn/iris-classifier/cortex.yaml b/examples/sklearn/iris-classifier/cortex.yaml index 6e7f7814ee..70b312014e 100644 --- a/examples/sklearn/iris-classifier/cortex.yaml +++ b/examples/sklearn/iris-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: iris-classifier predictor: diff --git a/examples/sklearn/iris-classifier/predictor.py b/examples/sklearn/iris-classifier/predictor.py index f8d4edf1cf..addd3891bf 100644 --- a/examples/sklearn/iris-classifier/predictor.py +++ b/examples/sklearn/iris-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import boto3 import pickle diff --git a/examples/sklearn/iris-classifier/trainer.py b/examples/sklearn/iris-classifier/trainer.py index d14eb07208..b3883ff98e 100644 --- a/examples/sklearn/iris-classifier/trainer.py +++ b/examples/sklearn/iris-classifier/trainer.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import boto3 import pickle diff --git a/examples/sklearn/mpg-estimator/cortex.yaml b/examples/sklearn/mpg-estimator/cortex.yaml index d91c609b7a..5a48a5cb24 100644 --- a/examples/sklearn/mpg-estimator/cortex.yaml +++ b/examples/sklearn/mpg-estimator/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: mpg-estimator predictor: diff --git a/examples/sklearn/mpg-estimator/predictor.py b/examples/sklearn/mpg-estimator/predictor.py index 3b849a39d5..2b22e2d879 100644 --- a/examples/sklearn/mpg-estimator/predictor.py +++ b/examples/sklearn/mpg-estimator/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import mlflow.sklearn import numpy as np diff --git a/examples/sklearn/mpg-estimator/trainer.py b/examples/sklearn/mpg-estimator/trainer.py index 90d6192f43..03c6127da4 100644 --- a/examples/sklearn/mpg-estimator/trainer.py +++ b/examples/sklearn/mpg-estimator/trainer.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import mlflow.sklearn import pandas as pd diff --git a/examples/tensorflow/image-classifier/cortex.yaml b/examples/tensorflow/image-classifier/cortex.yaml index 63166f77f7..46d3eedbde 100644 --- a/examples/tensorflow/image-classifier/cortex.yaml +++ b/examples/tensorflow/image-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: image-classifier predictor: diff --git a/examples/tensorflow/image-classifier/inception.ipynb b/examples/tensorflow/image-classifier/inception.ipynb index 547d6dbe20..a093e72be7 100644 --- a/examples/tensorflow/image-classifier/inception.ipynb +++ b/examples/tensorflow/image-classifier/inception.ipynb @@ -31,7 +31,7 @@ "source": [ "# Exporting ImageNet Inception\n", "\n", - "_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n", "In this notebook, we'll show how to export the [pre-trained Imagenet Inception model](https://tfhub.dev/google/imagenet/inception_v3/classification/3) for serving." ] diff --git a/examples/tensorflow/image-classifier/predictor.py b/examples/tensorflow/image-classifier/predictor.py index 7322a88bb6..851e0d259e 100644 --- a/examples/tensorflow/image-classifier/predictor.py +++ b/examples/tensorflow/image-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import requests import numpy as np diff --git a/examples/tensorflow/iris-classifier/cortex.yaml b/examples/tensorflow/iris-classifier/cortex.yaml index 58254b14c0..aec84550c9 100644 --- a/examples/tensorflow/iris-classifier/cortex.yaml +++ b/examples/tensorflow/iris-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: iris-classifier predictor: diff --git a/examples/tensorflow/iris-classifier/predictor.py b/examples/tensorflow/iris-classifier/predictor.py index c880d2233f..e613335cc3 100644 --- a/examples/tensorflow/iris-classifier/predictor.py +++ b/examples/tensorflow/iris-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex labels = ["setosa", "versicolor", "virginica"] diff --git a/examples/tensorflow/iris-classifier/tensorflow.ipynb b/examples/tensorflow/iris-classifier/tensorflow.ipynb index f3e3dfad34..3e5a911b4d 100644 --- a/examples/tensorflow/iris-classifier/tensorflow.ipynb +++ b/examples/tensorflow/iris-classifier/tensorflow.ipynb @@ -31,7 +31,7 @@ "source": [ "# Training an Iris classifier using TensorFlow\n", "\n", - "_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n", "In this notebook, we'll show how to train a classifier trained on the [iris data set](https://archive.ics.uci.edu/ml/datasets/iris) using TensorFlow." ] diff --git a/examples/tensorflow/license-plate-reader/cortex.yaml b/examples/tensorflow/license-plate-reader/cortex.yaml index ea63a2b2c0..9a54cd17ab 100644 --- a/examples/tensorflow/license-plate-reader/cortex.yaml +++ b/examples/tensorflow/license-plate-reader/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: yolov3 predictor: diff --git a/examples/tensorflow/license-plate-reader/predictor_crnn.py b/examples/tensorflow/license-plate-reader/predictor_crnn.py index e732fd50be..c1704d8dbf 100644 --- a/examples/tensorflow/license-plate-reader/predictor_crnn.py +++ b/examples/tensorflow/license-plate-reader/predictor_crnn.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import cv2 import numpy as np diff --git a/examples/tensorflow/license-plate-reader/predictor_yolo.py b/examples/tensorflow/license-plate-reader/predictor_yolo.py index a4b554e3e6..397f942773 100644 --- a/examples/tensorflow/license-plate-reader/predictor_yolo.py +++ b/examples/tensorflow/license-plate-reader/predictor_yolo.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import json import base64 diff --git a/examples/tensorflow/license-plate-reader/sample_inference.py b/examples/tensorflow/license-plate-reader/sample_inference.py index b16e972713..ca485b3511 100644 --- a/examples/tensorflow/license-plate-reader/sample_inference.py +++ b/examples/tensorflow/license-plate-reader/sample_inference.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import click, cv2, requests, pickle, base64, json import numpy as np diff --git a/examples/tensorflow/license-plate-reader/utils/bbox.py b/examples/tensorflow/license-plate-reader/utils/bbox.py index 8322c696d5..4d778783d7 100644 --- a/examples/tensorflow/license-plate-reader/utils/bbox.py +++ b/examples/tensorflow/license-plate-reader/utils/bbox.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import numpy as np import cv2 diff --git a/examples/tensorflow/license-plate-reader/utils/colors.py b/examples/tensorflow/license-plate-reader/utils/colors.py index d392a6ee95..f27387dba2 100644 --- a/examples/tensorflow/license-plate-reader/utils/colors.py +++ b/examples/tensorflow/license-plate-reader/utils/colors.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex def get_color(label): diff --git a/examples/tensorflow/license-plate-reader/utils/utils.py b/examples/tensorflow/license-plate-reader/utils/utils.py index c0df2e37f2..2b65ff7877 100644 --- a/examples/tensorflow/license-plate-reader/utils/utils.py +++ b/examples/tensorflow/license-plate-reader/utils/utils.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import cv2 import numpy as np diff --git a/examples/tensorflow/sentiment-analyzer/bert.ipynb b/examples/tensorflow/sentiment-analyzer/bert.ipynb index f9d951f1b7..359fad9ba9 100644 --- a/examples/tensorflow/sentiment-analyzer/bert.ipynb +++ b/examples/tensorflow/sentiment-analyzer/bert.ipynb @@ -50,7 +50,7 @@ "source": [ "#Predicting Movie Review Sentiment with BERT on TF Hub", "\n", - "_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n" ] }, diff --git a/examples/tensorflow/sentiment-analyzer/cortex.yaml b/examples/tensorflow/sentiment-analyzer/cortex.yaml index bd116219ec..6e20ce1a4b 100644 --- a/examples/tensorflow/sentiment-analyzer/cortex.yaml +++ b/examples/tensorflow/sentiment-analyzer/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: sentiment-analyzer predictor: diff --git a/examples/tensorflow/sentiment-analyzer/predictor.py b/examples/tensorflow/sentiment-analyzer/predictor.py index d04ccad88f..1582a32681 100644 --- a/examples/tensorflow/sentiment-analyzer/predictor.py +++ b/examples/tensorflow/sentiment-analyzer/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex import tensorflow as tf import tensorflow_hub as hub diff --git a/examples/tensorflow/text-generator/cortex.yaml b/examples/tensorflow/text-generator/cortex.yaml index a2eb5aafff..4df42fa395 100644 --- a/examples/tensorflow/text-generator/cortex.yaml +++ b/examples/tensorflow/text-generator/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: text-generator predictor: diff --git a/examples/tensorflow/text-generator/encoder.py b/examples/tensorflow/text-generator/encoder.py index 18902c4f0c..65aea337a2 100644 --- a/examples/tensorflow/text-generator/encoder.py +++ b/examples/tensorflow/text-generator/encoder.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex # This file includes code which was modified from https://github.com/openai/gpt-2 diff --git a/examples/tensorflow/text-generator/gpt-2.ipynb b/examples/tensorflow/text-generator/gpt-2.ipynb index 725492c4a7..e2595cb1c1 100644 --- a/examples/tensorflow/text-generator/gpt-2.ipynb +++ b/examples/tensorflow/text-generator/gpt-2.ipynb @@ -31,7 +31,7 @@ "source": [ "# Exporting GPT-2\n", "\n", - "_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n", "In this notebook, we'll show how to export [OpenAI's GPT-2 text generation model](https://github.com/openai/gpt-2) for serving." ] diff --git a/examples/tensorflow/text-generator/predictor.py b/examples/tensorflow/text-generator/predictor.py index b1f925d3f7..e43d6c6c79 100644 --- a/examples/tensorflow/text-generator/predictor.py +++ b/examples/tensorflow/text-generator/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex from encoder import get_encoder diff --git a/examples/xgboost/iris-classifier/cortex.yaml b/examples/xgboost/iris-classifier/cortex.yaml index f37e4fa338..2700ded346 100644 --- a/examples/xgboost/iris-classifier/cortex.yaml +++ b/examples/xgboost/iris-classifier/cortex.yaml @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex - name: iris-classifier predictor: diff --git a/examples/xgboost/iris-classifier/predictor.py b/examples/xgboost/iris-classifier/predictor.py index 1526cdcc36..9f694fc367 100644 --- a/examples/xgboost/iris-classifier/predictor.py +++ b/examples/xgboost/iris-classifier/predictor.py @@ -1,4 +1,4 @@ -# WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version` +# this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex labels = ["setosa", "versicolor", "virginica"] diff --git a/examples/xgboost/iris-classifier/xgboost.ipynb b/examples/xgboost/iris-classifier/xgboost.ipynb index a79eb0fe58..9fed6d0649 100644 --- a/examples/xgboost/iris-classifier/xgboost.ipynb +++ b/examples/xgboost/iris-classifier/xgboost.ipynb @@ -31,7 +31,7 @@ "source": [ "# Training an Iris classifier using XGBoost\n", "\n", - "_WARNING: you are on the master branch, please refer to the examples on the branch that matches your `cortex version`_\n", + "_this is an example for cortex release 0.15 and may not deploy correctly on other releases of cortex_\n", "\n", "In this notebook, we'll show how to train a classifier trained on the [iris data set](https://archive.ics.uci.edu/ml/datasets/iris) using XGBoost." ]