Skip to content

Commit 82d73d7

Browse files
authored
Merge pull request aws#360 from awslabs/freeze-mxnet-versions
Freeze MXNet versions
2 parents 63cc7fa + b4a1667 commit 82d73d7

7 files changed

+33
-26
lines changed

sagemaker-python-sdk/mxnet_gluon_cifar10/mxnet_cifar10_local_mode.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@
126126
"metadata": {},
127127
"outputs": [],
128128
"source": [
129-
"m = MXNet('cifar10.py', \n",
129+
"m = MXNet('cifar10.py',\n",
130130
" role=role, \n",
131-
" train_instance_count=1, \n",
131+
" train_instance_count=1,\n",
132132
" train_instance_type='local_gpu',\n",
133-
" hyperparameters={'batch_size': 1024, \n",
134-
" 'epochs': 50, \n",
135-
" 'learning_rate': 0.1, \n",
133+
" framework_version='1.1.0',\n",
134+
" hyperparameters={'batch_size': 1024,\n",
135+
" 'epochs': 50,\n",
136+
" 'learning_rate': 0.1,\n",
136137
" 'momentum': 0.9})"
137138
]
138139
},

sagemaker-python-sdk/mxnet_gluon_cifar10/mxnet_cifar10_with_gluon.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
" role=role, \n",
112112
" train_instance_count=2, \n",
113113
" train_instance_type=\"ml.p2.xlarge\",\n",
114+
" framework_version=\"1.2.1\",\n",
114115
" hyperparameters={'batch_size': 128, \n",
115116
" 'epochs': 50, \n",
116117
" 'learning_rate': 0.1, \n",

sagemaker-python-sdk/mxnet_gluon_mnist/mxnet_mnist_with_gluon.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@
9898
"metadata": {},
9999
"outputs": [],
100100
"source": [
101-
"m = MXNet(\"mnist.py\", \n",
102-
" role=role, \n",
103-
" train_instance_count=1, \n",
101+
"m = MXNet(\"mnist.py\",\n",
102+
" role=role,\n",
103+
" train_instance_count=1,\n",
104104
" train_instance_type=\"ml.c4.xlarge\",\n",
105-
" hyperparameters={'batch_size': 100, \n",
106-
" 'epochs': 20, \n",
107-
" 'learning_rate': 0.1, \n",
105+
" framework_version=\"1.2.1\",\n",
106+
" hyperparameters={'batch_size': 100,\n",
107+
" 'epochs': 20,\n",
108+
" 'learning_rate': 0.1,\n",
108109
" 'momentum': 0.9, \n",
109110
" 'log_interval': 100})"
110111
]

sagemaker-python-sdk/mxnet_gluon_mnist/mxnet_mnist_with_gluon_local_mode.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,15 @@
130130
"metadata": {},
131131
"outputs": [],
132132
"source": [
133-
"m = MXNet(\"mnist.py\", \n",
134-
" role=role, \n",
135-
" train_instance_count=1, \n",
133+
"m = MXNet(\"mnist.py\",\n",
134+
" role=role,\n",
135+
" train_instance_count=1,\n",
136136
" train_instance_type=instance_type,\n",
137-
" hyperparameters={'batch_size': 100, \n",
138-
" 'epochs': 20, \n",
139-
" 'learning_rate': 0.1, \n",
140-
" 'momentum': 0.9, \n",
137+
" framework_version=\"1.1.0\",\n",
138+
" hyperparameters={'batch_size': 100,\n",
139+
" 'epochs': 20,\n",
140+
" 'learning_rate': 0.1,\n",
141+
" 'momentum': 0.9,\n",
141142
" 'log_interval': 100})"
142143
]
143144
},

sagemaker-python-sdk/mxnet_gluon_sentiment/mxnet_sentiment_analysis_with_gluon.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,14 @@
115115
},
116116
"outputs": [],
117117
"source": [
118-
"m = MXNet(\"sentiment.py\", \n",
119-
" role=role, \n",
120-
" train_instance_count=1, \n",
118+
"m = MXNet(\"sentiment.py\",\n",
119+
" role=role,\n",
120+
" train_instance_count=1,\n",
121121
" train_instance_type=\"ml.c4.2xlarge\",\n",
122-
" hyperparameters={'batch_size': 8, \n",
123-
" 'epochs': 2, \n",
124-
" 'learning_rate': 0.01, \n",
122+
" framework_version=\"1.2.1\",\n",
123+
" hyperparameters={'batch_size': 8,\n",
124+
" 'epochs': 2,\n",
125+
" 'learning_rate': 0.01,\n",
125126
" 'embedding_size': 50, \n",
126127
" 'log_interval': 1000})"
127128
]

sagemaker-python-sdk/mxnet_mnist/mxnet_mnist.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@
8585
" role=role,\n",
8686
" output_path=model_artifacts_location,\n",
8787
" code_location=custom_code_upload_location,\n",
88-
" train_instance_count=1, \n",
88+
" train_instance_count=1,\n",
8989
" train_instance_type='ml.m4.xlarge',\n",
90+
" framework_version='1.2.1',\n",
9091
" hyperparameters={'learning_rate': 0.1})"
9192
]
9293
},

sagemaker-python-sdk/mxnet_mnist/mxnet_mnist_with_batch_transform.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@
9090
" role=role,\n",
9191
" output_path=model_artifacts_location,\n",
9292
" code_location=custom_code_upload_location,\n",
93-
" train_instance_count=1, \n",
93+
" train_instance_count=1,\n",
9494
" train_instance_type='ml.m4.xlarge',\n",
95+
" framework_version='1.2.1',\n",
9596
" hyperparameters={'learning_rate': 0.1})"
9697
]
9798
},

0 commit comments

Comments
 (0)