Skip to content

Commit 738fd83

Browse files
authored
Update how-to-interactive-jobs.md
1 parent 6233a4a commit 738fd83

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -133,27 +133,27 @@ If you don't see the above options, make sure you have enabled the "Debug & moni
133133

134134
1. 1. Create a job yaml `job.yaml` with below sample content. Make sure to replace `your compute name` with your own value. If you want to use custom environment, follow the examples in [this tutorial](how-to-manage-environments-v2.md) to create a custom environment.
135135
```dotnetcli
136-
code: src
137-
command:
138-
python train.py
139-
# you can add a command like "sleep 1h" to reserve the compute resource is reserved after the script finishes running.
140-
environment: azureml:AzureML-tensorflow-2.4-ubuntu18.04-py37-cuda11-gpu:41
141-
compute: azureml:<your compute name>
142-
services:
143-
my_vs_code:
144-
job_service_type: vs_code
145-
nodes: all # For distributed jobs, use the `nodes` property to pick which node you want to enable interactive services on. If `nodes` are not selected, by default, interactive applications are only enabled on the head node. Values are "all", or compute node index (for ex. "0", "1" etc.)
146-
my_tensor_board:
147-
job_service_type: tensor_board
148-
log_dir: "output/tblogs" # relative path of Tensorboard logs (same as in your training script)
149-
nodes: all
150-
my_jupyter_lab:
151-
job_service_type: jupyter_lab
152-
nodes: all
153-
my_ssh:
154-
job_service_type: ssh
155-
ssh_public_keys: <paste the entire pub key content>
156-
nodes: all
136+
code: src
137+
command:
138+
python train.py
139+
# you can add a command like "sleep 1h" to reserve the compute resource is reserved after the script finishes running.
140+
environment: azureml:AzureML-tensorflow-2.4-ubuntu18.04-py37-cuda11-gpu:41
141+
compute: azureml:<your compute name>
142+
services:
143+
my_vs_code:
144+
job_service_type: vs_code
145+
nodes: all # For distributed jobs, use the `nodes` property to pick which node you want to enable interactive services on. If `nodes` are not selected, by default, interactive applications are only enabled on the head node. Values are "all", or compute node index (for ex. "0", "1" etc.)
146+
my_tensor_board:
147+
job_service_type: tensor_board
148+
log_dir: "output/tblogs" # relative path of Tensorboard logs (same as in your training script)
149+
nodes: all
150+
my_jupyter_lab:
151+
job_service_type: jupyter_lab
152+
nodes: all
153+
my_ssh:
154+
job_service_type: ssh
155+
ssh_public_keys: <paste the entire pub key content>
156+
nodes: all
157157
```
158158

159159
The `services` section specifies the training applications you want to interact with.
@@ -256,4 +256,4 @@ To submit a job with a debugger attached and the execution paused, you can use d
256256

257257
## Next steps
258258

259-
+ Learn more about [how and where to deploy a model](./how-to-deploy-online-endpoints.md).
259+
+ Learn more about [how and where to deploy a model](./how-to-deploy-online-endpoints.md).

0 commit comments

Comments
 (0)