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: articles/machine-learning/how-to-interactive-jobs.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,27 +133,27 @@ If you don't see the above options, make sure you have enabled the "Debug & moni
133
133
134
134
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.
135
135
```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.
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.
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
157
157
```
158
158
159
159
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
256
256
257
257
## Next steps
258
258
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