You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/day4/ml.rst
+32-32Lines changed: 32 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,20 +67,20 @@ In this course we will look at examples for these, and show how you run them at
67
67
The loading are slightly different at the clusters
68
68
- C3SE:
69
69
- For TensorFlow: ``module load TensorFlow/2.15.1-foss-2023a-CUDA-12.1.1``
70
-
- For Pytorch: ``PyTorch-bundle/2.1.2-foss-2023a-CUDA-12.1.1``
70
+
- For Pytorch: ``PyTorch-bundle/2.1.2-foss-2023a-CUDA-12.1.1`` and ``PyTorch/2.7.1-foss-2024a-CUDA-12.6.0``
71
71
- Datasets and models: `Many <https://www.c3se.chalmers.se/documentation/software/machine_learning/datasets/>`_
72
72
- UPPMAX:
73
-
- For TensorFlow: install yourself
73
+
- For TensorFlow: ``TensorFlow/2.18.1-foss-2024a```
74
74
- For Pytorch: ``PyTorch/2.6.0-foss-2024a``
75
75
- Bianca has all tools in : ``python_ML_packages/3.9.5``
76
76
- HPC2N:
77
-
- For TensorFlow ``ml GCC/12.3.0 OpenMPI/4.1.5 TensorFlow/2.15.1-CUDA-12.1.1 scikit-learn/1.4.2 Tkinter/3.11.3 matplotlib/3.7.2``
78
-
- For the Pytorch: ``ml GCC/12.3.0 OpenMPI/4.1.5 PyTorch/2.1.2-CUDA-12.1.1 scikit-learn/1.4.2 Tkinter/3.11.3 matplotlib/3.7.2``
77
+
- For TensorFlow ``module load GCC/13.3.0 OpenMPI/5.0.3 TensorFlow/2.18.1-CUDA-12.6.0``
78
+
- For the Pytorch: ``module load GCC/13.3.0 OpenMPI/5.0.3 PyTorch/2.7.1-CUDA-12.6.0``
79
79
- LUNARC:
80
80
- For TensorFlow ``module load GCC/11.3.0 Python/3.10.4 SciPy-bundle/2022.05 TensorFlow/2.11.0-CUDA-11.7.0 scikit-learn/1.1.2``
81
81
- For Pytorch ``module load GCC/11.3.0 Python/3.10.4 SciPy-bundle/2022.05 PyTorch/1.12.1-CUDA-11.7.0 scikit-learn/1.1.2``
82
82
- NSC:
83
-
- For Tetralith, use virtual environment. Pytorch and TensorFlow might coming soon to the cluster!
83
+
- For Tetralith, use virtual environment.
84
84
- PDC:
85
85
- For both TensorFlow and Pytorch : ``module load PDC singularity/4.2.0-cpeGNU-24.11``
86
86
@@ -115,7 +115,7 @@ The list is not exhaustive, but lists the more popular ML/DL libraries. I encour
115
115
116
116
* - Tool
117
117
- Pelle (Python 3.12.3)
118
-
- Kebnekaise (Python 3.11.3/3.11.5)
118
+
- Kebnekaise (Python 3.12.3)
119
119
- Cosmos (Python 3.11.3/3.11.5)
120
120
- Tetralith (Python 3.11.3/3.11.5)
121
121
- Dardel (Python 3.11.7)
@@ -143,7 +143,7 @@ The list is not exhaustive, but lists the more popular ML/DL libraries. I encour
143
143
- scikit-learn
144
144
* - TensorFlow
145
145
- N.A.
146
-
- TensorFlow
146
+
- GCC OpenMPI TensorFlow
147
147
- TensorFlow
148
148
- N.A.
149
149
- PDC singularity/4.1.1-cpeGNU-23.12
@@ -153,34 +153,34 @@ The list is not exhaustive, but lists the more popular ML/DL libraries. I encour
153
153
- Keras (up to Python 3.8.6), TensorFlow (Python 3.11.3)
154
154
- TensorFlow
155
155
- N.A.
156
-
- PDC singularity/4.1.1-cpeGNU-23.12
156
+
- PDC singularity
157
157
- TensorFlow
158
158
* - PyTorch (torch)
159
159
- PyTorch
160
-
- PyTorch
160
+
- GCC OpenMPI PyTorch
161
161
- PyTorch
162
162
- N.A.
163
-
- PDC singularity/4.1.1-cpeGNU-23.12
163
+
- PDC singularity
164
164
- PyTorch
165
165
* - Pandas
166
166
- SciPy-bundle
167
167
- SciPy-bundle
168
168
- SciPy-bundle
169
-
- SciPy-bundle
169
+
- N.A.
170
170
- cray-python
171
171
- SciPy-bundle
172
172
* - Matplotlib
173
173
- matplotlib
174
174
- matplotlib
175
175
- matplotlib
176
176
- buildtool-easybuild GCC matplotlib
177
-
- PDC/23.12 matplotlib/3.8.2-cpeGNU-23.12
177
+
- PDC matplotlib
178
178
- matplotlib
179
179
* - Beautiful Soup (beautifulsoup4)
180
180
- BeautifulSoup
181
181
- BeautifulSoup
182
182
- BeautifulSoup
183
-
- BeautifulSoup
183
+
- buildtool-easybuild GCC BeautifulSoup
184
184
- N.A.
185
185
- BeautifulSoup
186
186
* - Seaborn
@@ -766,10 +766,10 @@ We now learn by submitting a batch job which consists of loading python module,
766
766
# Load any modules you need, here Python 3.13.5.
767
767
load Python/3.13.5-GCCcore-14.3.0
768
768
769
-
source../my_env/bin/activate
769
+
source my_env/bin/activate
770
770
771
771
# Run your Python script
772
-
python fashion_mnist.py
772
+
python [pytorch/tf]_mnist.py
773
773
774
774
.. tab:: HPC2N
775
775
@@ -785,10 +785,10 @@ We now learn by submitting a batch job which consists of loading python module,
785
785
# Load any modules you need, here for Python/3.11.3
786
786
module load GCC/12.3.0 Python/3.11.3
787
787
788
-
source../my_env/bin/activate
788
+
source my_env/bin/activate
789
789
790
790
# Run your Python script
791
-
python fashion_mnist.py
791
+
python [pytorch/tf]_mnist.py
792
792
793
793
794
794
.. tab:: LUNARC
@@ -807,10 +807,10 @@ We now learn by submitting a batch job which consists of loading python module,
807
807
# Load any modules you need, here for Python/3.11.5 and compatible SciPy-bundle
808
808
module load GCC/13.2.0 Python/3.11.5
809
809
810
-
source../my_env/bin/activate
810
+
source my_env/bin/activate
811
811
812
812
# Run your Python script
813
-
python fashion_mnist.py
813
+
python [pytorch/tf]_mnist.py
814
814
815
815
816
816
.. tab:: NSC
@@ -827,9 +827,9 @@ We now learn by submitting a batch job which consists of loading python module,
827
827
ml load buildtool-easybuild/4.8.0-hpce082752a2 GCCcore/13.2.0
828
828
ml load Python/3.11.5
829
829
830
-
source../my_env/bin/activate
830
+
source my_env/bin/activate
831
831
832
-
python fashion_mnist.py
832
+
python [pytorch/tf]_mnist.py
833
833
834
834
.. tab:: PDC
835
835
@@ -847,9 +847,9 @@ We now learn by submitting a batch job which consists of loading python module,
847
847
module load cray-python/3.11.5
848
848
module load craype-accel-amd-gfx90a
849
849
850
-
source../my_env/bin/activate
850
+
source my_env/bin/activate
851
851
852
-
python fashion_mnist.py
852
+
python [pytorch/tf]_mnist.py
853
853
854
854
.. tab:: C3SE
855
855
@@ -863,9 +863,9 @@ We now learn by submitting a batch job which consists of loading python module,
863
863
864
864
module load Python/3.11.3-GCCcore-12.3.0
865
865
866
-
source../my_env/bin/activate
866
+
source my_env/bin/activate
867
867
868
-
python fashion_mnist.py
868
+
python [pytorch/tf]_mnist.py
869
869
870
870
871
871
Tips and Tricks (Lessons Learned):
@@ -991,7 +991,7 @@ Miscellaneous examples
991
991
module purge > /dev/null 2>&1
992
992
module load Python/3.13.5-GCCcore-14.3.0
993
993
994
-
source../my_env/bin/activate
994
+
source my_env/bin/activate
995
995
# Output to file - not needed if your job creates output in a file directly
996
996
# In this example I also copy the output somewhere else and then run another executable (or you could just run the same executable for different parameters).
997
997
python tf_program.py 1 2 > myoutput1 2>&1
@@ -1018,7 +1018,7 @@ Miscellaneous examples
1018
1018
ml load buildtool-easybuild/4.8.0-hpce082752a2 GCCcore/13.2.0
1019
1019
ml load Python/3.11.5
1020
1020
1021
-
source../my_env/bin/activate
1021
+
source my_env/bin/activate
1022
1022
# Output to file - not needed if your job creates output in a file directly
1023
1023
# In this example I also copy the output somewhere else and then run another executable (or you could just run the same executable for different parameters).
1024
1024
python tf_program.py 1 2 > myoutput1 2>&1
@@ -1046,7 +1046,7 @@ Miscellaneous examples
1046
1046
# Load any modules you need, here for Python/3.11.5 and compatible SciPy-bundle
1047
1047
module load GCC/13.2.0 Python/3.11.5
1048
1048
1049
-
source../my_env/bin/activate
1049
+
source my_env/bin/activate
1050
1050
1051
1051
# Output to file - not needed if your job creates output in a file directly
1052
1052
# In this example I also copy the output somewhere else and then run another executable (or you could just run the same executable for different parameters).
@@ -1075,7 +1075,7 @@ Miscellaneous examples
1075
1075
# Load any modules you need, here for Python/3.11.5 and compatible SciPy-bundle
1076
1076
module load cray-python/3.11.7
1077
1077
1078
-
source../my_env/bin/activate
1078
+
source my_env/bin/activate
1079
1079
1080
1080
# Output to file - not needed if your job creates output in a file directly
1081
1081
# In this example I also copy the output somewhere else and then run another executable (or you could just run the same executable for different parameters).
@@ -1106,7 +1106,7 @@ Miscellaneous examples
1106
1106
module load Python/3.13.5-GCCcore-14.3.0
1107
1107
module load TensorFlow/2.18.0-CUDA-11.8-1
1108
1108
1109
-
#optionally: source ../my_env/bin/activate
1109
+
#optionally: source my_env/bin/activate
1110
1110
# Output to file - not needed if your job creates output in a file directly
1111
1111
# In this example I also copy the output somewhere else and then run another executable (or you could just run the same executable for different parameters).
1112
1112
python tf_program.py 1 2 > myoutput1 2>&1
@@ -1202,7 +1202,7 @@ Miscellaneous examples
1202
1202
module purge > /dev/null 2>&1
1203
1203
module load Python/3.13.5-GCCcore-14.3.0
1204
1204
1205
-
source../my_env/bin/activate
1205
+
source my_env/bin/activate
1206
1206
1207
1207
# Run your Python script
1208
1208
python example-tf.py
@@ -1222,7 +1222,7 @@ Miscellaneous examples
1222
1222
ml load buildtool-easybuild/4.8.0-hpce082752a2 GCCcore/13.2.0
0 commit comments