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
2. Choose `Compute cluster` or `Attached compute` (Kubernetes) as the compute type, choose the compute target, and specify how many nodes you need in `Instance count`.
You can put `sleep <specific time>` at the end of your command to specify the amount of time you want to reserve the compute resource. The format follows:
54
-
* sleep 1s
55
-
* sleep 1m
56
-
* sleep 1h
57
-
* sleep 1d
54
+
* sleep 1s
55
+
* sleep 1m
56
+
* sleep 1h
57
+
* sleep 1d
58
58
59
59
You can also use the ```sleep infinity``` command that would keep the job alive indefinitely.
60
60
@@ -222,8 +222,8 @@ Once you're done with the interactive training, you can also go to the job detai
222
222
## Attach a debugger to a job
223
223
To submit a job with a debugger attached and the execution paused, you can use debugpy &VS Code (`debugpy` must be installed in your job environment).
224
224
225
-
1. During job submission (either through the UI, the CLIv2 or the SDKv2) use the debugpy command to run your python script. For example, the below screenshot shows a sample command that uses debugpy to attach the debugger for a tensorflow script.
226
-
225
+
1. During job submission (either through the UI, the CLIv2 or the SDKv2) use the debugpy command to run your python script. For example, the below screenshot shows a sample command that uses debugpy to attach the debugger for a tensorflow script (`tfevents.py` can be replaced with the name of your training script).
2. Once the job has been submitted, [connect to the VS Code](./how-to-interactive-jobs.md#connect-to-endpoints), and click on the in-built debugger.
@@ -232,12 +232,12 @@ To submit a job with a debugger attached and the execution paused, you can use d
232
232
233
233
3. Use the "Remote Attach" debug configuration to attach to the submitted job andpassin the path and port you configured in your job submission command. You can also find this information on the job details page.
0 commit comments