Skip to content

Commit f536fc4

Browse files
authored
updated notebook (#2059)
1 parent fd9b12e commit f536fc4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

sagemaker-debugger/pytorch_iterative_model_pruning/iterative_model_pruning_alexnet.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@
100100
"source": [
101101
"### Load and save AlexNet model\n",
102102
"\n",
103-
"First we load a pre-trained [AlexNet](http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks) model from PyTorch model zoo. "
103+
"First we load a pre-trained [AlexNet](http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks) model from PyTorch model zoo. \n",
104+
"\n",
105+
"**IMPORTANT**: the model file will be used by the training job. To avoid version conflicts, you need to ensure that your notebook is running a Jupyter kernel with PyTorch version 1.6."
104106
]
105107
},
106108
{
@@ -353,7 +355,7 @@
353355
" train_volume_size=400,\n",
354356
" source_dir='src',\n",
355357
" entry_point='train.py',\n",
356-
" framework_version='1.3.1',\n",
358+
" framework_version='1.6',\n",
357359
" py_version='py3',\n",
358360
" metric_definitions=[ {'Name':'train:loss', 'Regex':'loss:(.*?)'}, {'Name':'eval:acc', 'Regex':'acc:(.*?)'} ],\n",
359361
" enable_sagemaker_metrics=True,\n",
@@ -595,7 +597,7 @@
595597
" train_volume_size=400,\n",
596598
" source_dir='src',\n",
597599
" entry_point='train.py',\n",
598-
" framework_version='1.3.1',\n",
600+
" framework_version='1.6',\n",
599601
" py_version='py3',\n",
600602
" metric_definitions=[ {'Name':'train:loss', 'Regex':'loss:(.*?)'}, {'Name':'eval:acc', 'Regex':'acc:(.*?)'} ],\n",
601603
" enable_sagemaker_metrics=True,\n",

sagemaker-debugger/pytorch_iterative_model_pruning/iterative_model_pruning_resnet.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@
159159
"cell_type": "markdown",
160160
"metadata": {},
161161
"source": [
162-
"Next we store the model definition and weights in an output file. "
162+
"Next we store the model definition and weights in an output file. \n",
163+
"\n",
164+
"**IMPORTANT**: the model file will be used by the training job. To avoid version conflicts, you need to ensure that your notebook is running a Jupyter kernel with PyTorch version 1.6."
163165
]
164166
},
165167
{
@@ -314,7 +316,7 @@
314316
" train_volume_size=400,\n",
315317
" source_dir='src',\n",
316318
" entry_point='train.py',\n",
317-
" framework_version='1.3.1',\n",
319+
" framework_version='1.6',\n",
318320
" py_version='py3',\n",
319321
" metric_definitions=[ {'Name':'train:loss', 'Regex':'loss:(.*?)'}, {'Name':'eval:acc', 'Regex':'acc:(.*?)'} ],\n",
320322
" enable_sagemaker_metrics=True,\n",
@@ -551,7 +553,7 @@
551553
" train_volume_size=400,\n",
552554
" source_dir='src',\n",
553555
" entry_point='train.py',\n",
554-
" framework_version='1.3.1',\n",
556+
" framework_version='1.6',\n",
555557
" py_version='py3',\n",
556558
" metric_definitions=[ {'Name':'train:loss', 'Regex':'loss:(.*?)'}, {'Name':'eval:acc', 'Regex':'acc:(.*?)'} ],\n",
557559
" enable_sagemaker_metrics=True,\n",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
smdebug==0.5.0

0 commit comments

Comments
 (0)