Skip to content

Commit 8dc164f

Browse files
committed
Increase mem and remove benchmark
1 parent 6a4ad18 commit 8dc164f

2 files changed

Lines changed: 2 additions & 44 deletions

File tree

samples/features/sql-big-data-cluster/machine-learning/spark/tensorflow/tf-cuda8.ipynb

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cells": [
2020
{
2121
"cell_type": "code",
22-
"source": "%%configure -f\r\n{\r\n \"executorMemory\": \"4g\",\r\n \"driverMemory\": \"4g\",\r\n \"executorCores\": 4,\r\n \"driverCores\": 2,\r\n \"numExecutors\": 1\r\n}",
22+
"source": "%%configure -f\r\n{\r\n \"executorMemory\": \"4g\",\r\n \"driverMemory\": \"8g\",\r\n \"executorCores\": 4,\r\n \"driverCores\": 2,\r\n \"numExecutors\": 1\r\n}",
2323
"metadata": {
2424
"language": "python"
2525
},
@@ -53,27 +53,6 @@
5353
"metadata": {},
5454
"outputs": [],
5555
"execution_count": 11
56-
},
57-
{
58-
"cell_type": "code",
59-
"source": "# Check available disk space\r\nimport subprocess\r\n\r\nstdout = subprocess.check_output(\r\n'''\r\ndf -h\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\nprint(stdout)",
60-
"metadata": {},
61-
"outputs": [],
62-
"execution_count": 12
63-
},
64-
{
65-
"cell_type": "code",
66-
"source": "# Download code for the CIFAR 10 benchmark\r\nimport subprocess\r\nimport os\r\n\r\nif os.path.isdir(\"/tmp/models\"):\r\n print(\"CIFAR 10 repo already cloned\")\r\nelse:\r\n stdout = subprocess.check_output(\r\n'''\r\napt-get update && apt-get install -y git\r\npip3 install --upgrade pip setuptools\r\npip3 install tensorflow-datasets\r\ncd /tmp\r\ngit clone https://github.com/tensorflow/models.git\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\n print(stdout)",
67-
"metadata": {},
68-
"outputs": [],
69-
"execution_count": 13
70-
},
71-
{
72-
"cell_type": "code",
73-
"source": "# Run the CIFAR 10 benchmark\r\nimport subprocess\r\n\r\nstdout = subprocess.check_output(\r\n'''\r\npython3 /tmp/models/tutorials/image/cifar10/cifar10_train.py --max_steps 100 2>&1\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\nprint(stdout)",
74-
"metadata": {},
75-
"outputs": [],
76-
"execution_count": 14
7756
}
7857
]
7958
}

samples/features/sql-big-data-cluster/machine-learning/spark/tensorflow/tf-cuda9.ipynb

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cells": [
2020
{
2121
"cell_type": "code",
22-
"source": "%%configure -f\r\n{\r\n \"executorMemory\": \"4g\",\r\n \"driverMemory\": \"4g\",\r\n \"executorCores\": 4,\r\n \"driverCores\": 2,\r\n \"numExecutors\": 1\r\n}",
22+
"source": "%%configure -f\r\n{\r\n \"executorMemory\": \"4g\",\r\n \"driverMemory\": \"8g\",\r\n \"executorCores\": 4,\r\n \"driverCores\": 2,\r\n \"numExecutors\": 1\r\n}",
2323
"metadata": {
2424
"language": "python"
2525
},
@@ -60,27 +60,6 @@
6060
"metadata": {},
6161
"outputs": [],
6262
"execution_count": 7
63-
},
64-
{
65-
"cell_type": "code",
66-
"source": "# Check available disk space\r\nimport subprocess\r\n\r\nstdout = subprocess.check_output(\r\n'''\r\ndf -h\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\nprint(stdout)",
67-
"metadata": {},
68-
"outputs": [],
69-
"execution_count": 8
70-
},
71-
{
72-
"cell_type": "code",
73-
"source": "# Download code for the CIFAR 10 benchmark\r\nimport subprocess\r\nimport os\r\n\r\nif os.path.isdir(\"/tmp/models\"):\r\n print(\"CIFAR 10 repo already cloned\")\r\nelse:\r\n stdout = subprocess.check_output(\r\n'''\r\napt-get update && apt-get install -y git\r\npip3 install --upgrade pip setuptools\r\npip3 install tensorflow-datasets\r\ncd /tmp\r\ngit clone https://github.com/tensorflow/models.git\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\n print(stdout)",
74-
"metadata": {},
75-
"outputs": [],
76-
"execution_count": 9
77-
},
78-
{
79-
"cell_type": "code",
80-
"source": "# Run the CIFAR 10 benchmark\r\nimport subprocess\r\n\r\nstdout = subprocess.check_output(\r\n'''\r\npython3 /tmp/models/tutorials/image/cifar10/cifar10_train.py --max_steps 100 2>&1\r\n''',\r\n stderr=subprocess.STDOUT,\r\n shell=True).decode(\"utf-8\")\r\nprint(stdout)",
81-
"metadata": {},
82-
"outputs": [],
83-
"execution_count": 10
8463
}
8564
]
8665
}

0 commit comments

Comments
 (0)