You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/image-classifier/README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This example shows how to deploy an Image Classifier made with Pytorch. The Pyto
4
4
5
5
## Define a deployment
6
6
7
+
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the model from the `cortex-examples` S3 bucket, preprocess the request payload and postprocess the model inference with the functions defined in `alexnet_handler.py`.
8
+
7
9
```yaml
8
10
- kind: deployment
9
11
name: image-classifier
@@ -13,8 +15,11 @@ This example shows how to deploy an Image Classifier made with Pytorch. The Pyto
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the model from the `cortex-examples` S3 bucket, preprocess the request payload and postprocess the model inference with the functions defined in `alexnet_handler.py`.
Copy file name to clipboardExpand all lines: examples/sentiment-analysis/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This example shows how to deploy a sentiment analysis classifier trained using [
4
4
5
5
## Define a deployment
6
6
7
+
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the model from the `cortex-examples` S3 bucket and preprocess the payload and postprocess the inference with functions defined in `sentiment.py`.
8
+
7
9
```yaml
8
10
- kind: deployment
9
11
name: sentiment
@@ -13,8 +15,9 @@ This example shows how to deploy a sentiment analysis classifier trained using [
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).
16
20
17
-
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the model from the `cortex-examples` S3 bucket and preprocess the payload and postprocess the inference with functions defined in `sentiment.py`.
Copy file name to clipboardExpand all lines: examples/text-generator/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This example shows how to deploy OpenAI's GPT-2 model as a service on AWS.
4
4
5
5
## Define a deployment
6
6
7
+
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the 124M GPT-2 model from the `cortex-examples` S3 bucket, preprocess the payload and postprocess the inference with functions defined in `encoder.py` and deploy each replica of the API on 1 GPU.
8
+
7
9
```yaml
8
10
- kind: deployment
9
11
name: text
@@ -15,8 +17,8 @@ This example shows how to deploy OpenAI's GPT-2 model as a service on AWS.
15
17
compute:
16
18
gpu: 1
17
19
```
18
-
19
-
A `deployment` specifies a set of resources that are deployed as a single unit. An `api` makes a model available as a web service that can serve real-time predictions. This configuration will download the 124M GPT-2 model from the `cortex-examples` S3 bucket, preprocess the payload and postprocess the inference with functions defined in `encoder.py` and deploy each replica of the API on 1 GPU.
20
+
<!-- CORTEX_VERSION_MINOR -->
21
+
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).
0 commit comments