@@ -67,11 +67,7 @@ def set_workload_parsers(workload_parser):
67
67
'Arguments for configuring autoprovisioning.' ,
68
68
)
69
69
)
70
- workload_pathways_workload_arguments = workload_create_parser .add_argument_group (
71
- 'Pathways Image Arguments' ,
72
- 'If --use-pathways is provided, user wants to set up a'
73
- 'Pathways workload on xpk.' ,
74
- )
70
+
75
71
workload_vertex_tensorboard_arguments = (
76
72
workload_create_parser .add_argument_group (
77
73
'Vertex Tensorboard Arguments' ,
@@ -157,6 +153,15 @@ def set_workload_parsers(workload_parser):
157
153
),
158
154
)
159
155
156
+ workload_create_parser_optional_arguments .add_argument (
157
+ '--use-pathways' ,
158
+ action = 'store_true' ,
159
+ help = (
160
+ 'Please use `xpk workload create-pathways` instead to'
161
+ ' create Pathways workloads.'
162
+ ),
163
+ )
164
+
160
165
# Autoprovisioning workload arguments
161
166
workload_create_autoprovisioning_arguments .add_argument (
162
167
'--on-demand' ,
@@ -184,16 +189,6 @@ def set_workload_parsers(workload_parser):
184
189
),
185
190
)
186
191
187
- # Pathways workload arguments
188
- workload_pathways_workload_arguments .add_argument (
189
- '--use-pathways' ,
190
- action = 'store_true' ,
191
- help = (
192
- 'DECRATING SOON!!! Please use `xpk workload create-pathways` instead.'
193
- ' Provide this argument to create Pathways workloads.'
194
- ),
195
- )
196
-
197
192
# "workload create-pathways" command parser.
198
193
workload_create_pathways_parser = workload_subcommands .add_parser (
199
194
'create-pathways' , help = 'Create a new job.'
@@ -236,6 +231,45 @@ def set_workload_parsers(workload_parser):
236
231
help = 'The tpu type to use, v5litepod-16, etc.' ,
237
232
)
238
233
234
+ ### "workload create-pathways" Optional arguments, specific to Pathways
235
+ workload_create_pathways_parser_optional_arguments .add_argument (
236
+ '--headless' ,
237
+ action = 'store_true' ,
238
+ help = (
239
+ 'Please provide this argument to create Pathways workloads in'
240
+ ' headless mode. This arg can only be used in `xpk workload'
241
+ ' create-pathways`.'
242
+ ),
243
+ )
244
+ workload_create_pathways_parser_optional_arguments .add_argument (
245
+ '--proxy-server-image' ,
246
+ type = str ,
247
+ default = (
248
+ 'us-docker.pkg.dev/cloud-tpu-v2-images/pathways/proxy_server:latest'
249
+ ),
250
+ help = (
251
+ 'Please provide the proxy server image for Pathways. This arg can'
252
+ ' only be used in `xpk workload create-pathways`.'
253
+ ),
254
+ )
255
+ workload_create_pathways_parser_optional_arguments .add_argument (
256
+ '--server-image' ,
257
+ type = str ,
258
+ default = 'us-docker.pkg.dev/cloud-tpu-v2-images/pathways/server:latest' ,
259
+ help = (
260
+ 'Please provide the server image for Pathways. This arg can only be'
261
+ ' used in `xpk workload create-pathways`.'
262
+ ),
263
+ )
264
+ workload_create_pathways_parser_optional_arguments .add_argument (
265
+ '--pathways-gcs-location' ,
266
+ type = str ,
267
+ default = 'gs://cloud-pathways-staging/tmp' ,
268
+ help = (
269
+ 'Please provide the GCS location to store Pathways artifacts. This'
270
+ ' arg can only be used in `xpk workload create-pathways`.'
271
+ ),
272
+ )
239
273
workload_create_pathways_parser_optional_arguments .add_argument (
240
274
'--command' ,
241
275
type = str ,
@@ -256,6 +290,39 @@ def set_workload_parsers(workload_parser):
256
290
help = 'Names of storages the workload uses' ,
257
291
)
258
292
293
+ workload_create_pathways_parser_optional_arguments .add_argument (
294
+ '--custom-pathways-server-args' ,
295
+ type = str ,
296
+ default = None ,
297
+ help = (
298
+ 'Provide custom Pathways server args as follows -'
299
+ " --custom-pathways-server-args='--arg_1=xxx --arg2=yyy'"
300
+ ),
301
+ required = False ,
302
+ )
303
+
304
+ workload_create_pathways_parser_optional_arguments .add_argument (
305
+ '--custom-pathways-proxy-server-args' ,
306
+ type = str ,
307
+ default = None ,
308
+ help = (
309
+ 'Provide custom Pathways proxy server args as follows -'
310
+ " --custom-pathways-proxy-server-args='--arg_1=xxx --arg2=yyy'"
311
+ ),
312
+ required = False ,
313
+ )
314
+
315
+ workload_create_pathways_parser_optional_arguments .add_argument (
316
+ '--custom-pathways-worker-args' ,
317
+ type = str ,
318
+ default = None ,
319
+ help = (
320
+ 'Provide custom Pathways worker args as follows -'
321
+ " --custom-pathways-worker-args='--arg_1=xxx --arg2=yyy'"
322
+ ),
323
+ required = False ,
324
+ )
325
+
259
326
add_shared_workload_create_required_arguments ([
260
327
workload_create_parser_required_arguments ,
261
328
workload_create_pathways_parser_required_arguments ,
@@ -542,51 +609,6 @@ def add_shared_workload_create_optional_arguments(args_parsers):
542
609
' conditions.'
543
610
),
544
611
)
545
- custom_parser .add_argument (
546
- '--headless' ,
547
- action = 'store_true' ,
548
- help = (
549
- 'Please provide this argument to create Pathways workloads in'
550
- ' headless mode. This arg can only be used in `xpk workload'
551
- ' create-pathways`(preferred) or `xpk workload create'
552
- ' --use-pathways.` (--use-pathways will be deprecated soon).'
553
- ),
554
- )
555
- custom_parser .add_argument (
556
- '--proxy-server-image' ,
557
- type = str ,
558
- default = (
559
- 'us-docker.pkg.dev/cloud-tpu-v2-images/pathways/proxy_server:latest'
560
- ),
561
- help = (
562
- 'Please provide the proxy server image for Pathways. This arg can'
563
- ' only be used in `xpk workload create-pathways`(preferred) or `xpk'
564
- ' workload create --use-pathways.` (--use-pathways will be'
565
- ' deprecated soon).'
566
- ),
567
- )
568
- custom_parser .add_argument (
569
- '--server-image' ,
570
- type = str ,
571
- default = 'us-docker.pkg.dev/cloud-tpu-v2-images/pathways/server:latest' ,
572
- help = (
573
- 'Please provide the server image for Pathways. This arg can only be'
574
- ' used in `xpk workload create-pathways`(preferred) or `xpk'
575
- ' workload create --use-pathways.` (--use-pathways will be'
576
- ' deprecated soon).'
577
- ),
578
- )
579
- custom_parser .add_argument (
580
- '--pathways-gcs-location' ,
581
- type = str ,
582
- default = 'gs://cloud-pathways-staging/tmp' ,
583
- help = (
584
- 'Please provide the GCS location to store Pathways artifacts. This'
585
- ' arg can only be used in `xpk workload create-pathways`(preferred)'
586
- ' or `xpk workload create --use-pathways.` (--use-pathways will be'
587
- ' deprecated soon).'
588
- ),
589
- )
590
612
custom_parser .add_argument (
591
613
'--ramdisk-directory' ,
592
614
type = str ,
0 commit comments