Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MXNet 1.4.0 to 1.4.1 #784

Merged
merged 1 commit into from Jul 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -167,7 +167,7 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.p3.8xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'batch_size': 1024,\n",
" 'epochs': 50,\n",
Expand Down Expand Up @@ -223,7 +223,7 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.p3.8xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters=hyperparameters)\n",
" m.fit(inputs, wait=False, job_name=job_name)"
Expand Down Expand Up @@ -1195,7 +1195,7 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.p3.8xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'batch_size': 1024,\n",
" 'epochs': 50})"
Expand Down Expand Up @@ -1847,21 +1847,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "conda_mxnet_p27",
"display_name": "conda_mxnet_p36",
"language": "python",
"name": "conda_mxnet_p27"
"name": "conda_mxnet_p36"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.15"
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"notice": "Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
},
Expand Down
2 changes: 1 addition & 1 deletion hyperparameter_tuning/mxnet_mnist/hpo_mxnet_mnist.ipynb
Expand Up @@ -150,7 +150,7 @@
" train_instance_type='ml.m4.xlarge',\n",
" sagemaker_session=sagemaker.Session(),\n",
" py_version='py3',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" base_job_name='DEMO-hpo-mxnet',\n",
" hyperparameters={'batch_size': 100})"
]
Expand Down
Expand Up @@ -102,7 +102,8 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type=\"ml.c4.xlarge\",\n",
" framework_version=\"1.4.0\",\n",
" framework_version=\"1.4.1\",\n",
" py_version=\"py3\",\n",
" hyperparameters={'batch-size': 100,\n",
" 'epochs': 20,\n",
" 'learning-rate': 0.1,\n",
Expand Down Expand Up @@ -181,7 +182,7 @@
"outputs": [],
"source": [
"response = predictor.predict(data)\n",
"print int(response)"
"print(int(response))"
]
},
{
Expand All @@ -205,21 +206,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Environment (conda_mxnet_p27)",
"display_name": "conda_mxnet_p36",
"language": "python",
"name": "conda_mxnet_p27"
"name": "conda_mxnet_p36"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
},
Expand Down
Expand Up @@ -134,7 +134,8 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type=instance_type,\n",
" framework_version=\"1.4.0\",\n",
" framework_version=\"1.4.1\",\n",
" py_version=\"py3\",\n",
" hyperparameters={'batch-size': 100,\n",
" 'epochs': 20,\n",
" 'learning-rate': 0.1,\n",
Expand Down Expand Up @@ -177,7 +178,7 @@
},
"outputs": [],
"source": [
"predictor = m.deploy(initial_instance_count=1, instance_type=instance_type )"
"predictor = m.deploy(initial_instance_count=1, instance_type=instance_type)"
]
},
{
Expand Down Expand Up @@ -237,21 +238,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "conda_mxnet_p27",
"display_name": "conda_mxnet_p36",
"language": "python",
"name": "conda_mxnet_p27"
"name": "conda_mxnet_p36"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.14"
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
},
Expand Down
Expand Up @@ -111,8 +111,8 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.c4.xlarge',\n",
" framework_version='1.4.0',\n",
" py_version='py2',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" distributions={'parameter_server': {'enabled': True}},\n",
" hyperparameters={'batch-size': 8,\n",
" 'epochs': 2,\n",
Expand Down Expand Up @@ -205,21 +205,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Environment (conda_mxnet_p27)",
"display_name": "conda_mxnet_p36",
"language": "python",
"name": "conda_mxnet_p27"
"name": "conda_mxnet_p36"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
},
Expand Down
3 changes: 2 additions & 1 deletion sagemaker-python-sdk/mxnet_mnist/mxnet_mnist.ipynb
Expand Up @@ -89,7 +89,8 @@
" code_location=custom_code_upload_location,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.m4.xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" distributions={'parameter_server': {'enabled': True}},\n",
" hyperparameters={'learning-rate': 0.1})"
]
Expand Down
Expand Up @@ -101,7 +101,8 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.m4.xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'learning-rate': 0.1})"
]
},
Expand Down
Expand Up @@ -125,7 +125,8 @@
" role=role,\n",
" train_instance_count=1,\n",
" train_instance_type='local',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'learning-rate': 0.1})"
]
},
Expand Down
3 changes: 2 additions & 1 deletion sagemaker-python-sdk/mxnet_mnist/mxnet_mnist_neo.ipynb
Expand Up @@ -98,7 +98,8 @@
" code_location=custom_code_upload_location,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.m4.xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" distributions={'parameter_server': {'enabled': True}},\n",
" hyperparameters={'learning-rate': 0.1})"
]
Expand Down
Expand Up @@ -92,7 +92,8 @@
" code_location=custom_code_upload_location,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.m4.xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'learning-rate': 0.1})"
]
},
Expand Down
5 changes: 3 additions & 2 deletions sagemaker-python-sdk/mxnet_onnx_eia/mxnet_onnx_eia.ipynb
Expand Up @@ -131,7 +131,7 @@
"* `model_data`: the S3 location of the model data\n",
"* `entry_point`: the script for model hosting that we looked at above\n",
"* `role`: the IAM role used\n",
"* `framework_version`: the MXNet version in use, in this case '1.4.0'\n",
"* `framework_version`: the MXNet version in use, in this case '1.4.1'\n",
"\n",
"You can read more about creating an `MXNetModel` object in the [SageMaker Python SDK API docs](https://sagemaker.readthedocs.io/en/latest/sagemaker.mxnet.html#mxnet-model)."
]
Expand All @@ -149,7 +149,8 @@
"mxnet_model = MXNetModel(model_data=model_data,\n",
" entry_point='resnet152.py',\n",
" role=role,\n",
" framework_version='1.4.0')"
" py_version='py3',\n",
" framework_version='1.4.1')"
]
},
{
Expand Down
Expand Up @@ -128,7 +128,8 @@
" code_location=custom_code_upload_location,\n",
" train_instance_count=1,\n",
" train_instance_type='ml.m4.xlarge',\n",
" framework_version='1.4.0',\n",
" framework_version='1.4.1',\n",
" py_version='py3',\n",
" hyperparameters={'learning-rate': 0.1})\n",
"\n",
"train_data_location = 's3://sagemaker-sample-data-{}/mxnet/mnist/train'.format(region)\n",
Expand Down