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/source-pytorch/clouds/cluster_advanced.rst
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,18 +88,6 @@ To train a model using multiple nodes, do the following:
88
88
89
89
#SBATCH --signal=SIGUSR1@90
90
90
91
-
You can change this signal if your environment requires the use of a different one, for example
92
-
93
-
.. code-block:: bash
94
-
95
-
#SBATCH --signal=SIGHUP@90
96
-
97
-
Then, when you make your trainer, pass the `requeue_signal` option to the :class:`~pytorch_lightning.plugins.environments.slurm_environment.SLURMEnvironment` plugin:
@@ -125,6 +113,18 @@ To get this behavior make sure to add the correct signal to your SLURM script
125
113
# 90 seconds before training ends
126
114
SBATCH --signal=SIGUSR1@90
127
115
116
+
You can change this signal if your environment requires the use of a different one, for example
117
+
118
+
.. code-block:: bash
119
+
120
+
#SBATCH --signal=SIGHUP@90
121
+
122
+
Then, when you make your trainer, pass the `requeue_signal` option to the :class:`~pytorch_lightning.plugins.environments.slurm_environment.SLURMEnvironment` plugin:
If auto-resubmit is not desired, it can be turned off in the :class:`~pytorch_lightning.plugins.environments.slurm_environment.SLURMEnvironment` plugin:
0 commit comments