Skip to content

Commit 55dd33e

Browse files
authoredMar 6, 2020
upgrade framework version (aws#1079)
1 parent f065b92 commit 55dd33e

File tree

18 files changed

+29
-29
lines changed

18 files changed

+29
-29
lines changed
 

‎sagemaker-python-sdk/managed_spot_training_mxnet/managed_spot_training_mxnet.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
" code_location=custom_code_upload_location,\n",
103103
" train_instance_count=1,\n",
104104
" train_instance_type='ml.m4.xlarge',\n",
105-
" framework_version='1.4.1',\n",
105+
" framework_version='1.6.0',\n",
106106
" py_version='py3',\n",
107107
" distributions={'parameter_server': {'enabled': True}},\n",
108108
" hyperparameters={'learning-rate': 0.1},\n",

‎sagemaker-python-sdk/mxnet_gluon_embedding_server/mxnet_embedding_server.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
" role=get_execution_role(),\n",
345345
" py_version='py3',\n",
346346
" entry_point='embedding_server.py',\n",
347-
" framework_version='1.4',\n",
347+
" framework_version='1.6.0',\n",
348348
" env={'modelname': modelname}) # we pass model name via an environment variable"
349349
]
350350
},

‎sagemaker-python-sdk/mxnet_gluon_mnist/mxnet_mnist_with_gluon.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
" role=role,\n",
103103
" train_instance_count=1,\n",
104104
" train_instance_type=\"ml.c4.xlarge\",\n",
105-
" framework_version=\"1.4.1\",\n",
105+
" framework_version=\"1.6.0\",\n",
106106
" py_version=\"py3\",\n",
107107
" hyperparameters={'batch-size': 100,\n",
108108
" 'epochs': 20,\n",

‎sagemaker-python-sdk/mxnet_gluon_mnist/mxnet_mnist_with_gluon_local_mode.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
" role=role,\n",
135135
" train_instance_count=1,\n",
136136
" train_instance_type=instance_type,\n",
137-
" framework_version=\"1.4.1\",\n",
137+
" framework_version=\"1.6.0\",\n",
138138
" py_version=\"py3\",\n",
139139
" hyperparameters={'batch-size': 100,\n",
140140
" 'epochs': 20,\n",

‎sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
" role=role,\n",
112112
" train_instance_count=1,\n",
113113
" train_instance_type='ml.c4.xlarge',\n",
114-
" framework_version='1.4.1',\n",
114+
" framework_version='1.6.0',\n",
115115
" py_version='py3',\n",
116116
" distributions={'parameter_server': {'enabled': True}},\n",
117117
" hyperparameters={'batch-size': 8,\n",

‎sagemaker-python-sdk/mxnet_mnist/mxnet_mnist_with_batch_transform.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
" code_location=custom_code_upload_location,\n",
9393
" train_instance_count=1,\n",
9494
" train_instance_type='ml.m4.xlarge',\n",
95-
" framework_version='1.4.1',\n",
95+
" framework_version='1.6.0',\n",
9696
" py_version='py3',\n",
9797
" hyperparameters={'learning-rate': 0.1})"
9898
]

‎sagemaker-python-sdk/mxnet_onnx_export/mxnet_onnx_export.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
" code_location=custom_code_upload_location,\n",
129129
" train_instance_count=1,\n",
130130
" train_instance_type='ml.m4.xlarge',\n",
131-
" framework_version='1.4.1',\n",
131+
" framework_version='1.6.0',\n",
132132
" py_version='py3',\n",
133133
" hyperparameters={'learning-rate': 0.1})\n",
134134
"\n",

‎sagemaker-python-sdk/mxnet_onnx_superresolution/mxnet_onnx.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
" entry_point='super_resolution.py',\n",
141141
" role=role,\n",
142142
" py_version='py3',\n",
143-
" framework_version='1.3.0')"
143+
" framework_version='1.6.0')"
144144
]
145145
},
146146
{

‎sagemaker-python-sdk/pytorch_cnn_cifar10/pytorch_local_mode_cifar10.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"\n",
197197
"cifar10_estimator = PyTorch(entry_point='source/cifar10.py',\n",
198198
" role=role,\n",
199-
" framework_version='1.2.0',\n",
199+
" framework_version='1.4.0',\n",
200200
" train_instance_count=1,\n",
201201
" train_instance_type=instance_type)\n",
202202
"\n",

‎sagemaker-python-sdk/pytorch_horovod_mnist/pytorch_mnist_horovod.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"estimator = PyTorch(entry_point='mnist.py',\n",
159159
" source_dir='code',\n",
160160
" role=role,\n",
161-
" framework_version='1.3.1',\n",
161+
" framework_version='1.4.0',\n",
162162
" train_instance_count=2,\n",
163163
" train_instance_type='ml.p2.xlarge',\n",
164164
" hyperparameters={\n",

‎sagemaker-python-sdk/pytorch_lstm_word_language_model/pytorch_rnn.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"\n",
194194
"estimator = PyTorch(entry_point='train.py',\n",
195195
" role=role,\n",
196-
" framework_version='1.2.0',\n",
196+
" framework_version='1.4.0',\n",
197197
" train_instance_count=1,\n",
198198
" train_instance_type='ml.p2.xlarge',\n",
199199
" source_dir='pytorch-rnn-scripts',\n",

‎sagemaker-python-sdk/pytorch_mnist/pytorch_mnist.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"\n",
157157
"estimator = PyTorch(entry_point='mnist.py',\n",
158158
" role=role,\n",
159-
" framework_version='1.2.0',\n",
159+
" framework_version='1.4.0',\n",
160160
" train_instance_count=2,\n",
161161
" train_instance_type='ml.c4.xlarge',\n",
162162
" hyperparameters={\n",

‎sagemaker-python-sdk/tensorflow_moving_from_framework_mode_to_script_mode/tensorflow_moving_from_framework_mode_to_script_mode.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"mnist_estimator = TensorFlow(entry_point='train.py',\n",
179179
" dependencies=['mnist.py'],\n",
180180
" role=role,\n",
181-
" framework_version='1.14',\n",
181+
" framework_version='1.15.2',\n",
182182
" hyperparameters={'training_steps':10, 'evaluation_steps':10},\n",
183183
" py_version='py3',\n",
184184
" train_instance_count=1,\n",

‎sagemaker-python-sdk/tensorflow_script_mode_horovod/tensorflow_script_mode_horovod.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
" train_instance_count=instance_count,\n",
260260
" train_instance_type=train_instance_type,\n",
261261
" script_mode=True,\n",
262-
" framework_version='1.14',\n",
262+
" framework_version='1.15.2',\n",
263263
" py_version='py3',\n",
264264
" distributions=distributions,\n",
265265
" base_job_name='hvd-mnist-local')"
@@ -335,7 +335,7 @@
335335
" train_instance_count=instance_count,\n",
336336
" train_instance_type=train_instance_type,\n",
337337
" script_mode=True,\n",
338-
" framework_version='1.14',\n",
338+
" framework_version='1.15.2',\n",
339339
" py_version='py3',\n",
340340
" distributions=distributions,\n",
341341
" base_job_name='hvd-mnist')"
@@ -398,7 +398,7 @@
398398
" train_instance_count=instance_count,\n",
399399
" train_instance_type=train_instance_type,\n",
400400
" script_mode=True,\n",
401-
" framework_version='1.14',\n",
401+
" framework_version='1.15.2',\n",
402402
" py_version='py3',\n",
403403
" distributions=distributions,\n",
404404
" base_job_name='hvd-mnist-multi-cpu')"
@@ -519,7 +519,7 @@
519519
" train_instance_count=instance_count,\n",
520520
" train_instance_type=train_instance_type,\n",
521521
" script_mode=True,\n",
522-
" framework_version='1.14',\n",
522+
" framework_version='1.15.2',\n",
523523
" py_version='py3',\n",
524524
" distributions=distributions,\n",
525525
" security_group_ids=security_groups,\n",

‎sagemaker-python-sdk/tensorflow_script_mode_pipe_mode/tensorflow_script_mode_pipe_mode.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"\n",
128128
"tensorflow = TensorFlow(entry_point='pipemode.py',\n",
129129
" role=role,\n",
130-
" framework_version='1.14',\n",
130+
" framework_version='1.15.2',\n",
131131
" input_mode='Pipe',\n",
132132
" output_path=model_artifacts_location,\n",
133133
" code_location=custom_code_upload_location,\n",

‎sagemaker-python-sdk/tensorflow_script_mode_quickstart/tensorflow_script_mode_quickstart.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
" train_instance_count=1,\n",
201201
" hyperparameters=hyperparameters,\n",
202202
" role=sagemaker.get_execution_role(), # Passes to the container the AWS role that you are using on this notebook\n",
203-
" framework_version='1.14',\n",
203+
" framework_version='1.15.2',\n",
204204
" py_version='py3',\n",
205205
" script_mode=True)"
206206
]
@@ -319,7 +319,7 @@
319319
" train_instance_count=1,\n",
320320
" hyperparameters=hyperparameters,\n",
321321
" role=sagemaker.get_execution_role(),\n",
322-
" framework_version='1.14',\n",
322+
" framework_version='1.15.2',\n",
323323
" py_version='py3',\n",
324324
" script_mode=True)\n",
325325
" \n",

‎sagemaker-python-sdk/tensorflow_script_mode_training_and_serving/tensorflow_script_mode_training_and_serving.ipynb

+8-8
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"source": [
8282
"!pygmentize 'mnist.py'\n",
8383
"\n",
84-
"# TensorFlow 2.0 script\n",
84+
"# TensorFlow 2.1 script\n",
8585
"!pygmentize 'mnist-2.py'"
8686
]
8787
},
@@ -114,7 +114,7 @@
114114
" role=role,\n",
115115
" train_instance_count=2,\n",
116116
" train_instance_type='ml.p2.xlarge',\n",
117-
" framework_version='1.14',\n",
117+
" framework_version='1.15.2',\n",
118118
" py_version='py3',\n",
119119
" distributions={'parameter_server': {'enabled': True}})"
120120
]
@@ -123,7 +123,7 @@
123123
"cell_type": "markdown",
124124
"metadata": {},
125125
"source": [
126-
"You can also initiate an estimator to train with TensorFlow 2.0 script. The only things that you will need to change are the script name and ``framewotk_version``"
126+
"You can also initiate an estimator to train with TensorFlow 2.1 script. The only things that you will need to change are the script name and ``framewotk_version``"
127127
]
128128
},
129129
{
@@ -138,7 +138,7 @@
138138
" role=role,\n",
139139
" train_instance_count=2,\n",
140140
" train_instance_type='ml.p2.xlarge',\n",
141-
" framework_version='2.0.0',\n",
141+
" framework_version='2.1.0',\n",
142142
" py_version='py3',\n",
143143
" distributions={'parameter_server': {'enabled': True}})"
144144
]
@@ -175,7 +175,7 @@
175175
"cell_type": "markdown",
176176
"metadata": {},
177177
"source": [
178-
"Calling fit to train a model with TensorFlow 2.0 scroipt."
178+
"Calling fit to train a model with TensorFlow 2.1 scroipt."
179179
]
180180
},
181181
{
@@ -215,7 +215,7 @@
215215
"collapsed": true
216216
},
217217
"source": [
218-
"Deployed the trained TensorFlow 2.0 model to an endpoint."
218+
"Deployed the trained TensorFlow 2.1 model to an endpoint."
219219
]
220220
},
221221
{
@@ -277,7 +277,7 @@
277277
"cell_type": "markdown",
278278
"metadata": {},
279279
"source": [
280-
"Examine the prediction result from the TensorFlow 2.0 model."
280+
"Examine the prediction result from the TensorFlow 2.1 model."
281281
]
282282
},
283283
{
@@ -315,7 +315,7 @@
315315
"cell_type": "markdown",
316316
"metadata": {},
317317
"source": [
318-
"Delete the TensorFlow 2.0 endpoint as well."
318+
"Delete the TensorFlow 2.1 endpoint as well."
319319
]
320320
},
321321
{

‎sagemaker-python-sdk/tensorflow_serving_container/tensorflow_serving_container.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"# predictable model.\n",
192192
"env = {'SAGEMAKER_TFS_DEFAULT_MODEL_NAME': 'mobilenet_v2_140_224'}\n",
193193
"\n",
194-
"model = Model(model_data=model_data, role=sagemaker_role, framework_version='1.14', env=env)\n",
194+
"model = Model(model_data=model_data, role=sagemaker_role, framework_version='1.15.2', env=env)\n",
195195
"predictor = model.deploy(initial_instance_count=1, instance_type='ml.c5.xlarge')"
196196
]
197197
},

0 commit comments

Comments
 (0)
Please sign in to comment.