Skip to content

Commit e0a21b1

Browse files
authored
small changes
1 parent e798986 commit e0a21b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/machine-learning/how-to-interactive-jobs.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ By specifying interactive applications at job creation, you can connect directly
3939
![screenshot select-job-ui](media/interactive-jobs/create-job.png)
4040

4141
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`.
42-
42+
4343
![screenshot select-compute-ui](media/interactive-jobs/select-compute.png)
4444

4545
3. Follow the wizard to choose the environment you want to start the job.
46-
46+
4747
![screenshot select-environment-ui](media/interactive-jobs/select-environment.png)
4848

4949
4. In `Job settings` step, add your training code (and input/output data) and reference it in your command to make sure it's mounted to your job.
50-
50+
5151
![screenshot set-command](media/interactive-jobs/sleep-command.png)
5252

5353
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
5858

5959
You can also use the ```sleep infinity``` command that would keep the job alive indefinitely.
6060

@@ -222,8 +222,8 @@ Once you're done with the interactive training, you can also go to the job detai
222222
## Attach a debugger to a job
223223
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).
224224

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).
226+
227227
![screenshot use-debugpy](./media/interactive-jobs/use-debugpy.png)
228228

229229
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
232232

233233
3. Use the "Remote Attach" debug configuration to attach to the submitted job and pass in the path and port you configured in your job submission command. You can also find this information on the job details page.
234234

235-
![screenshot debug-path-and-port](./media/interactive-jobs/debug-path-and-port.png)
235+
![screenshot debug-path-and-port](./media/interactive-jobs/debug-path-and-port.png)
236236

237237
![screenshot remote-attach](./media/interactive-jobs/remote-attach.png)
238238

239239
4. Set breakpoints and walk through your job execution as you would in your local debugging workflow.
240-
240+
241241
![screenshot set-breakpoints](./media/interactive-jobs/set-breakpoints.png)
242242

243243

0 commit comments

Comments
 (0)