Skip to content

Commit 6cb6dd2

Browse files
committed
updated
2 parents 13773aa + b6512e0 commit 6cb6dd2

26 files changed

+1533
-178
lines changed

00_Explore_Environment.ipynb

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"metadata": {},
6+
"metadata": {
7+
"tags": [
8+
"parameters"
9+
]
10+
},
711
"outputs": [],
812
"source": [
913
"import tensorflow as tf"

01_Train_Model.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,13 @@
431431
"Image('./graph_cpu.png', width=1024, height=768)"
432432
]
433433
},
434+
{
435+
"cell_type": "code",
436+
"execution_count": null,
437+
"metadata": {},
438+
"outputs": [],
439+
"source": []
440+
},
434441
{
435442
"cell_type": "code",
436443
"execution_count": null,

12_Train_Spark_Model.ipynb

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Deploy Spark Model to PipelineAI\n",
8+
"\n",
9+
"You will need to fill in the unique values for the following:\n",
10+
"* `<YOUR_USER_ID>` - 8 character id that uniquely identifies the PipelineAI user. You will see the UserId in the upper right hand corner of the Settings tab after you login to [PipelineAI Community Edition](https://community.cloud.pipeline.ai)\n",
11+
"* `<YOUR_API_TOKEN>` - 8 character id that uniquely identifies the PipelineAI user. You will see the UserId in the upper right hand corner of the Settings tab after you login to [PipelineAI Community Edition](https://community.cloud.pipeline.ai)\n",
12+
"\n",
13+
"![user-id](https://pipeline.ai/assets/img/user-id.png)\n",
14+
"\n",
15+
"```\n",
16+
"pipeline resource-upload --host community.cloud.pipeline.ai \\\n",
17+
" --api-token <YOUR_API_TOKEN> \\\n",
18+
" --user-id <YOUR_USER_ID> \\\n",
19+
" --resource-type spark \\\n",
20+
" --resource-subtype spark \\\n",
21+
" --name sparkpi \\\n",
22+
" --tag v1 \\\n",
23+
" --path ./spark_model\n",
24+
"```\n",
25+
"\n",
26+
"Actions performed:\n",
27+
"* Compress resource source code into a tar archive.\n",
28+
"* Create required directories and generate deployment and service resource definitions.\n",
29+
"* Initialize training resource\n",
30+
"\n",
31+
"# Optimize and Deploy the Model\n",
32+
"You can optimize (select one or more chips and/or one or more runtimes) and deploy your model using the CLI or the [UI](https://community.cloud.pipeline.ai) (Choose either the CLI or UI).\n"
33+
]
34+
},
35+
{
36+
"cell_type": "code",
37+
"execution_count": null,
38+
"metadata": {},
39+
"outputs": [],
40+
"source": [
41+
"%%bash \n",
42+
"\n",
43+
"pipeline resource-upload --host community.cloud.pipeline.ai \\\n",
44+
" --api-token <YOUR_API_TOKEN> \\\n",
45+
" --user-id <YOUR_USER_ID> \\\n",
46+
" --resource-type spark \\\n",
47+
" --resource-subtype spark \\\n",
48+
" --name sparkpi \\\n",
49+
" --tag v1 \\\n",
50+
" --path ./spark_model"
51+
]
52+
},
53+
{
54+
"cell_type": "markdown",
55+
"metadata": {},
56+
"source": [
57+
"# Navigate to https://community.pipeline.ai and Start Your Spark Job!"
58+
]
59+
},
60+
{
61+
"cell_type": "code",
62+
"execution_count": null,
63+
"metadata": {},
64+
"outputs": [],
65+
"source": []
66+
}
67+
],
68+
"metadata": {
69+
"kernelspec": {
70+
"display_name": "Python 3",
71+
"language": "python",
72+
"name": "python3"
73+
},
74+
"language_info": {
75+
"codemirror_mode": {
76+
"name": "ipython",
77+
"version": 3
78+
},
79+
"file_extension": ".py",
80+
"mimetype": "text/x-python",
81+
"name": "python",
82+
"nbconvert_exporter": "python",
83+
"pygments_lexer": "ipython3",
84+
"version": "3.6.6"
85+
}
86+
},
87+
"nbformat": 4,
88+
"nbformat_minor": 2
89+
}

mnist_model/image_pyfunc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ def _load_pyfunc(path):
167167
- {tf_name}=={tf_version}
168168
- pip:
169169
- pillow=={pillow_version}
170-
"""
170+
"""

mnist_model/pipeline_invoke_tflite.py

-97
This file was deleted.

mnist_model/pipeline_invoke_tfserving.py

-79
This file was deleted.
-42.6 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-12.5 MB
Binary file not shown.

mnist_model/viz_pipeline_model.png

-9.99 KB
Binary file not shown.

mnist_model/viz_training_accuracy.png

-17.2 KB
Binary file not shown.

mnist_model/viz_training_loss.png

-12.4 KB
Binary file not shown.

redis/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resnet50.pb

0 commit comments

Comments
 (0)