<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://kb.sept.mcmaster.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=EXXACT_server_usage_%28Neural_Networks%29</id>
	<title>EXXACT server usage (Neural Networks) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://kb.sept.mcmaster.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=EXXACT_server_usage_%28Neural_Networks%29"/>
	<link rel="alternate" type="text/html" href="http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;action=history"/>
	<updated>2026-04-05T20:46:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=348&amp;oldid=prev</id>
		<title>Admin boerj2 at 18:33, 19 March 2024</title>
		<link rel="alternate" type="text/html" href="http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=348&amp;oldid=prev"/>
		<updated>2024-03-19T18:33:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:33, 19 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l109&quot;&gt;Line 109:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 109:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the shell script is used, adjust your string as follows:&amp;lt;syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When the shell script is used, adjust your string as follows:&amp;lt;syntaxhighlight &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lang=&quot;bash&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Docker Tensorflow&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Docker Tensorflow&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all  -e USERID:$UID -v /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt;/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu /bin/bash /data/entrypoint.sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all  -e USERID:$UID -v /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu /bin/bash /data/entrypoint.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lang=&quot;bash&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Docker Pytorch&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Docker Pytorch&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all -e USERID:$UID -v /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt;/nnuser/[MacID]/:/data pytorch/pytorch:latest /bin/bash /data/entrypoint.sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all -e USERID:$UID -v /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/nnuser/[MacID]/:/data pytorch/pytorch:latest /bin/bash /data/entrypoint.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sept_wiki-wiki_:diff::1.12:old-347:rev-348 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin boerj2</name></author>
	</entry>
	<entry>
		<id>http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=347&amp;oldid=prev</id>
		<title>Admin boerj2 at 18:31, 19 March 2024</title>
		<link rel="alternate" type="text/html" href="http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=347&amp;oldid=prev"/>
		<updated>2024-03-19T18:31:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:31, 19 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Tensorflow (https://hub.docker.com/r/tensorflow/tensorflow)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Tensorflow (https://hub.docker.com/r/tensorflow/tensorflow)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## PyTorch (https://hub.docker.com/r/pytorch/pytorch)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## PyTorch (https://hub.docker.com/r/pytorch/pytorch)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For TensorFlow:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&quot;1&quot; start=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For TensorFlow:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&quot;1&quot; start=&quot;1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; lang=&quot;bash&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt;/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu python /data/main.py&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu python /data/main.py&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Run your script with your custom code until it exits (python 3 /data/main.py) *&amp;#039;&amp;#039;Note: You should replace main.py with your main executable function if it was &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; named main.py&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Run your script with your custom code until it exits (python 3 /data/main.py) *&amp;#039;&amp;#039;Note: You should replace main.py with your main executable function if it was &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; named main.py&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Use GPU acceleration and the latest TensorFlow version&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Use GPU acceleration and the latest TensorFlow version&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For PyTorch:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&quot;1&quot; start=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For PyTorch:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&quot;1&quot; start=&quot;1&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; lang=&quot;bash&lt;/ins&gt;&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt;/nnuser/[MacID]/:/data pytorch/pytorch:latest  python /data/main.py&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;home&lt;/ins&gt;/nnuser/[MacID]/:/data pytorch/pytorch:latest  python /data/main.py&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Create an image with your MacID as the name (--name [MacID])&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;## Create an image with your MacID as the name (--name [MacID])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sept_wiki-wiki_:diff::1.12:old-311:rev-347 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin boerj2</name></author>
	</entry>
	<entry>
		<id>http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=311&amp;oldid=prev</id>
		<title>Xu518: VPN link updated</title>
		<link rel="alternate" type="text/html" href="http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=311&amp;oldid=prev"/>
		<updated>2024-03-06T19:21:00Z</updated>

		<summary type="html">&lt;p&gt;VPN link updated&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:21, 6 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;In all instances, please note that docker will be used for training&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;In all instances, please note that docker will be used for training&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;A [https://uts.mcmaster.ca/services/computers-printers-and-software/virtual-private-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;networks-vpn&lt;/del&gt;/ VPN] connection is required to access this machine.&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;A [https://uts.mcmaster.ca/services/computers-printers-and-software/virtual-private-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;networking&lt;/ins&gt;/ VPN] connection is required to access this machine.&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Booking of this resource for extended periods is required at: [https://outlook.office365.com/owa/calendar/SEPTNNTrainingEXXactServer@mcmaster.ca/bookings/ SEPT NN Training (EXXact)]&amp;#039;&amp;#039;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Booking of this resource for extended periods is required at: [https://outlook.office365.com/owa/calendar/SEPTNNTrainingEXXactServer@mcmaster.ca/bookings/ SEPT NN Training (EXXact)]&amp;#039;&amp;#039;&amp;lt;/blockquote&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key sept_wiki-wiki_:diff::1.12:old-171:rev-311 --&gt;
&lt;/table&gt;</summary>
		<author><name>Xu518</name></author>
	</entry>
	<entry>
		<id>http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=171&amp;oldid=prev</id>
		<title>Xu518: Created page with &quot;&lt;blockquote&gt;&#039;&#039;In all instances, please note that docker will be used for training&#039;&#039;  &#039;&#039;A [https://uts.mcmaster.ca/services/computers-printers-and-software/virtual-private-networks-vpn/ VPN] connection is required to access this machine.&#039;&#039;  &#039;&#039;Booking of this resource for extended periods is required at: [https://outlook.office365.com/owa/calendar/SEPTNNTrainingEXXactServer@mcmaster.ca/bookings/ SEPT NN Training (EXXact)]&#039;&#039;&lt;/blockquote&gt;  === Code Editors === It is highly s...&quot;</title>
		<link rel="alternate" type="text/html" href="http://kb.sept.mcmaster.ca/wiki/index.php?title=EXXACT_server_usage_(Neural_Networks)&amp;diff=171&amp;oldid=prev"/>
		<updated>2023-10-04T21:09:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;In all instances, please note that docker will be used for training&amp;#039;&amp;#039;  &amp;#039;&amp;#039;A [https://uts.mcmaster.ca/services/computers-printers-and-software/virtual-private-networks-vpn/ VPN] connection is required to access this machine.&amp;#039;&amp;#039;  &amp;#039;&amp;#039;Booking of this resource for extended periods is required at: [https://outlook.office365.com/owa/calendar/SEPTNNTrainingEXXactServer@mcmaster.ca/bookings/ SEPT NN Training (EXXact)]&amp;#039;&amp;#039;&amp;lt;/blockquote&amp;gt;  === Code Editors === It is highly s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;In all instances, please note that docker will be used for training&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;A [https://uts.mcmaster.ca/services/computers-printers-and-software/virtual-private-networks-vpn/ VPN] connection is required to access this machine.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Booking of this resource for extended periods is required at: [https://outlook.office365.com/owa/calendar/SEPTNNTrainingEXXactServer@mcmaster.ca/bookings/ SEPT NN Training (EXXact)]&amp;#039;&amp;#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Code Editors ===&lt;br /&gt;
It is highly suggested that a code editor that integrates into remote systems is used for development alongside git. &lt;br /&gt;
&lt;br /&gt;
Common IDE with remote SSH suggestions would include:&lt;br /&gt;
&lt;br /&gt;
* [https://code.visualstudio.com/docs/remote/ssh Visual Studio Code (VS Code)]&lt;br /&gt;
* [https://docs.microsoft.com/en-us/cpp/linux/connect-to-your-remote-linux-computer?view=msvc-160 Visual Studio Community]&lt;br /&gt;
* [https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html#ssh Jetbrains PyCharm]&lt;br /&gt;
&lt;br /&gt;
Common git hosts would include:&lt;br /&gt;
&lt;br /&gt;
* [https://education.github.com/ GitHub]&lt;br /&gt;
* [https://gitlab.com/users/sign_in GitLab]&lt;br /&gt;
* [https://datadev.sept.mcmaster.ca/users/sign_in SEPT Local GitLab integration]&lt;br /&gt;
&lt;br /&gt;
=== Creating and running a container for your code ===&lt;br /&gt;
&lt;br /&gt;
# Log into Exxact server as &amp;#039;&amp;#039;&amp;#039;nnuser&amp;#039;&amp;#039;&amp;#039; using a ssh client, i.e. [https://www.putty.org/ Putty], [https://github.com/PowerShell/PowerShell#get-powershell Powershell], etc. with &amp;#039;&amp;#039;nnuser@130.113.129.242&amp;#039;&amp;#039; and password &amp;#039;&amp;#039;Exxact1.&amp;#039;&amp;#039; &lt;br /&gt;
# Create a folder with YOUR MacID using the command mkdir [MacID]&lt;br /&gt;
# Change directory into your directory using cd ./[MacID]. Do not use or override another users directory.&lt;br /&gt;
# Copy your data and python script and data into your directory using an SFTP client, i.e. FileZilla, WinSCP etc.&lt;br /&gt;
# Choose the trainer of choice&lt;br /&gt;
## Custom – A docker image you created yourself&lt;br /&gt;
## Tensorflow (https://hub.docker.com/r/tensorflow/tensorflow)&lt;br /&gt;
## PyTorch (https://hub.docker.com/r/pytorch/pytorch)&lt;br /&gt;
# For TensorFlow:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /data/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu python /data/main.py&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;br /&gt;
## Create an image with your MacID as the name (--name [MacID])&lt;br /&gt;
## Remove the image once its done (--rm should be removed while testing and getting your files setup)&lt;br /&gt;
## Allow you access to the files that you saved (--user $UID)&lt;br /&gt;
## Run your script with your custom code until it exits (python 3 /data/main.py) *&amp;#039;&amp;#039;Note: You should replace main.py with your main executable function if it was &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; named main.py&amp;#039;&amp;#039;&lt;br /&gt;
## Use GPU acceleration and the latest TensorFlow version&lt;br /&gt;
# For PyTorch:  Create a docker image with the following command and let it run: &amp;lt;syntaxhighlight line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
$ docker run -d --rm --name [MacID] --gpus all -u $(id -u):$(id -g) -v /data/nnuser/[MacID]/:/data pytorch/pytorch:latest  python /data/main.py&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;This will:&lt;br /&gt;
## Create an image with your MacID as the name (--name [MacID])&lt;br /&gt;
## Remove the image once its done (--rm should be removed while testing and getting your files setup)&lt;br /&gt;
## Allow you access to the files that you saved (--user $UID)&lt;br /&gt;
## Run your script with your custom code until it exits (python 3 /data/main.py) *&amp;#039;&amp;#039;Note: You should replace main.py with your main executable function if it was &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; named main.py&amp;#039;&amp;#039;&lt;br /&gt;
## Use GPU acceleration and the latest PyTorch version&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;: It is highly recommended that you write your python code output to console as this will get both logged and allow you to see what your script is doing while running during training.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Managing your container ===&lt;br /&gt;
&lt;br /&gt;
==== When running: ====&lt;br /&gt;
&lt;br /&gt;
# View your container at 130.113.129.242:9000 with username &amp;#039;&amp;#039;nnuser&amp;#039;&amp;#039; and password &amp;#039;&amp;#039;Exxact1&amp;#039;&amp;#039;&lt;br /&gt;
# Click Containers: [[File:EXXACT pic1.png]]&lt;br /&gt;
# Find your container: [[File:EXXACT pic2.png]]&lt;br /&gt;
# Attach to see output: [[File:EXXACT pic3.png]]&lt;br /&gt;
# View Output [[File:EXXACT pic4.png]]&lt;br /&gt;
&lt;br /&gt;
==== When testing (container does not include --rm statement): ====&lt;br /&gt;
&lt;br /&gt;
# View your container at &amp;lt;nowiki&amp;gt;https://130.113.129.242:9443&amp;lt;/nowiki&amp;gt; with username &amp;#039;&amp;#039;nnuser&amp;#039;&amp;#039; and password &amp;#039;&amp;#039;Exxact1&amp;#039;&amp;#039;&lt;br /&gt;
# Click Containers: [[File:EXXACT pic1.png]]&lt;br /&gt;
# Find your container: [[File:EXXACT pic2.png]]&lt;br /&gt;
# Logs to see output: [[File:EXXACT pic7.png]]&lt;br /&gt;
# View Output: This will show errors etc. [[File:EXXACT pic8.png]]&lt;br /&gt;
&lt;br /&gt;
=== IMPORTANT NOTES ===&lt;br /&gt;
&lt;br /&gt;
# Save your OUTPUT of your model to your &amp;#039;&amp;#039;&amp;#039;/data&amp;#039;&amp;#039;&amp;#039; NOTHING will get saved that is placed ANYWHERE else&lt;br /&gt;
# Remove your files once done. There is limited space on the server.&lt;br /&gt;
# Respect other users training. This is a shared resource. Do not stop or remove their containers without permission&lt;br /&gt;
&lt;br /&gt;
=== Scripts for Import - Custom requirements ===&lt;br /&gt;
If your script requires any imports that is non-standard to a package, you will need to adjust your execution string accordingly. &amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: This script requires that you finish with your training to get access to any produced files.&amp;lt;/blockquote&amp;gt;You will need to create the following:&lt;br /&gt;
&lt;br /&gt;
* a requirements.txt file within your python environment &lt;br /&gt;
** &amp;lt;syntaxhighlight line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
#Google Colab&lt;br /&gt;
!pip freeze &amp;gt; requirements.txt&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#Local Python env.&lt;br /&gt;
pip freeze &amp;gt; requirements.txt&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* a shell script that installs the imports and runs the script. This can be copied. &lt;br /&gt;
** &amp;lt;syntaxhighlight line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
#entrypoint.sh (Python 3)&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
python3 -m pip install requests&lt;br /&gt;
python3 -m pip install PIL&lt;br /&gt;
pip install --upgrade pip&lt;br /&gt;
pip install /data/requirements.txt&lt;br /&gt;
python3 /data/main.py&lt;br /&gt;
chown $USERID:$USERID -R /data&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#entrypoint.sh (Python 2)&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
python -m pip install requests&lt;br /&gt;
python -m pip install PIL&lt;br /&gt;
pip install --upgrade pip&lt;br /&gt;
pip install /data/requirements.txt&lt;br /&gt;
python /data/main.py&lt;br /&gt;
chown $USERID:$USERID -R /data&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the shell script is used, adjust your string as follows:&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#Docker Tensorflow&lt;br /&gt;
$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all  -e USERID:$UID -v /data/nnuser/[MacID]/:/data tensorflow/tensorflow:latest-gpu /bin/bash /data/entrypoint.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
#Docker Pytorch&lt;br /&gt;
$ docker run -d --rm --name [MacID] -u $(id -u):$(id -g) --gpus all -e USERID:$UID -v /data/nnuser/[MacID]/:/data pytorch/pytorch:latest /bin/bash /data/entrypoint.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xu518</name></author>
	</entry>
</feed>