@@ -1479,6 +1479,7 @@ def _prepare_training_task_inputs_and_output_dir(
1479
1479
timeout : Optional [int ] = None ,
1480
1480
restart_job_on_worker_restart : bool = False ,
1481
1481
enable_web_access : bool = False ,
1482
+ enable_dashboard_access : bool = False ,
1482
1483
tensorboard : Optional [str ] = None ,
1483
1484
) -> Tuple [Dict , str ]:
1484
1485
"""Prepares training task inputs and output directory for custom job.
@@ -1508,6 +1509,9 @@ def _prepare_training_task_inputs_and_output_dir(
1508
1509
Whether you want Vertex AI to enable interactive shell access
1509
1510
to training containers.
1510
1511
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
1512
+ enable_dashboard_access (bool):
1513
+ Whether you want Vertex AI to enable access to the customized dashboard
1514
+ to training containers.
1511
1515
tensorboard (str):
1512
1516
Optional. The name of a Vertex AI
1513
1517
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -1547,6 +1551,8 @@ def _prepare_training_task_inputs_and_output_dir(
1547
1551
training_task_inputs ["tensorboard" ] = tensorboard
1548
1552
if enable_web_access :
1549
1553
training_task_inputs ["enable_web_access" ] = enable_web_access
1554
+ if enable_dashboard_access :
1555
+ training_task_inputs ["enable_dashboard_access" ] = enable_dashboard_access
1550
1556
1551
1557
if timeout or restart_job_on_worker_restart :
1552
1558
timeout = f"{ timeout } s" if timeout else None
@@ -1608,7 +1614,9 @@ def _wait_callback(self):
1608
1614
1609
1615
self ._has_logged_custom_job = True
1610
1616
1611
- if self ._gca_resource .training_task_inputs .get ("enable_web_access" ):
1617
+ if self ._gca_resource .training_task_inputs .get (
1618
+ "enable_web_access"
1619
+ ) or self ._gca_resource .training_task_inputs .get ("enable_dashboard_access" ):
1612
1620
self ._log_web_access_uris ()
1613
1621
1614
1622
def _custom_job_console_uri (self ) -> str :
@@ -2902,6 +2910,7 @@ def run(
2902
2910
timeout : Optional [int ] = None ,
2903
2911
restart_job_on_worker_restart : bool = False ,
2904
2912
enable_web_access : bool = False ,
2913
+ enable_dashboard_access : bool = False ,
2905
2914
tensorboard : Optional [str ] = None ,
2906
2915
sync = True ,
2907
2916
create_request_timeout : Optional [float ] = None ,
@@ -3164,6 +3173,9 @@ def run(
3164
3173
Whether you want Vertex AI to enable interactive shell access
3165
3174
to training containers.
3166
3175
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
3176
+ enable_dashboard_access (bool):
3177
+ Whether you want Vertex AI to enable access to the customized dashboard
3178
+ to training containers.
3167
3179
tensorboard (str):
3168
3180
Optional. The name of a Vertex AI
3169
3181
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -3238,6 +3250,7 @@ def run(
3238
3250
timeout = timeout ,
3239
3251
restart_job_on_worker_restart = restart_job_on_worker_restart ,
3240
3252
enable_web_access = enable_web_access ,
3253
+ enable_dashboard_access = enable_dashboard_access ,
3241
3254
tensorboard = tensorboard ,
3242
3255
reduction_server_container_uri = reduction_server_container_uri
3243
3256
if reduction_server_replica_count > 0
@@ -3283,6 +3296,7 @@ def _run(
3283
3296
timeout : Optional [int ] = None ,
3284
3297
restart_job_on_worker_restart : bool = False ,
3285
3298
enable_web_access : bool = False ,
3299
+ enable_dashboard_access : bool = False ,
3286
3300
tensorboard : Optional [str ] = None ,
3287
3301
reduction_server_container_uri : Optional [str ] = None ,
3288
3302
sync = True ,
@@ -3444,6 +3458,9 @@ def _run(
3444
3458
Whether you want Vertex AI to enable interactive shell access
3445
3459
to training containers.
3446
3460
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
3461
+ enable_dashboard_access (bool):
3462
+ Whether you want Vertex AI to enable access to the customized dashboard
3463
+ to training containers.
3447
3464
tensorboard (str):
3448
3465
Optional. The name of a Vertex AI
3449
3466
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -3517,6 +3534,7 @@ def _run(
3517
3534
timeout = timeout ,
3518
3535
restart_job_on_worker_restart = restart_job_on_worker_restart ,
3519
3536
enable_web_access = enable_web_access ,
3537
+ enable_dashboard_access = enable_dashboard_access ,
3520
3538
tensorboard = tensorboard ,
3521
3539
)
3522
3540
@@ -3834,6 +3852,7 @@ def run(
3834
3852
timeout : Optional [int ] = None ,
3835
3853
restart_job_on_worker_restart : bool = False ,
3836
3854
enable_web_access : bool = False ,
3855
+ enable_dashboard_access : bool = False ,
3837
3856
tensorboard : Optional [str ] = None ,
3838
3857
sync = True ,
3839
3858
create_request_timeout : Optional [float ] = None ,
@@ -4089,6 +4108,9 @@ def run(
4089
4108
Whether you want Vertex AI to enable interactive shell access
4090
4109
to training containers.
4091
4110
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
4111
+ enable_dashboard_access (bool):
4112
+ Whether you want Vertex AI to enable access to the customized dashboard
4113
+ to training containers.
4092
4114
tensorboard (str):
4093
4115
Optional. The name of a Vertex AI
4094
4116
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -4162,6 +4184,7 @@ def run(
4162
4184
timeout = timeout ,
4163
4185
restart_job_on_worker_restart = restart_job_on_worker_restart ,
4164
4186
enable_web_access = enable_web_access ,
4187
+ enable_dashboard_access = enable_dashboard_access ,
4165
4188
tensorboard = tensorboard ,
4166
4189
reduction_server_container_uri = reduction_server_container_uri
4167
4190
if reduction_server_replica_count > 0
@@ -4206,6 +4229,7 @@ def _run(
4206
4229
timeout : Optional [int ] = None ,
4207
4230
restart_job_on_worker_restart : bool = False ,
4208
4231
enable_web_access : bool = False ,
4232
+ enable_dashboard_access : bool = False ,
4209
4233
tensorboard : Optional [str ] = None ,
4210
4234
reduction_server_container_uri : Optional [str ] = None ,
4211
4235
sync = True ,
@@ -4363,6 +4387,9 @@ def _run(
4363
4387
Whether you want Vertex AI to enable interactive shell access
4364
4388
to training containers.
4365
4389
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
4390
+ enable_dashboard_access (bool):
4391
+ Whether you want Vertex AI to enable access to the customized dashboard
4392
+ to training containers.
4366
4393
tensorboard (str):
4367
4394
Optional. The name of a Vertex AI
4368
4395
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -4430,6 +4457,7 @@ def _run(
4430
4457
timeout = timeout ,
4431
4458
restart_job_on_worker_restart = restart_job_on_worker_restart ,
4432
4459
enable_web_access = enable_web_access ,
4460
+ enable_dashboard_access = enable_dashboard_access ,
4433
4461
tensorboard = tensorboard ,
4434
4462
)
4435
4463
@@ -6124,6 +6152,7 @@ def run(
6124
6152
timeout : Optional [int ] = None ,
6125
6153
restart_job_on_worker_restart : bool = False ,
6126
6154
enable_web_access : bool = False ,
6155
+ enable_dashboard_access : bool = False ,
6127
6156
tensorboard : Optional [str ] = None ,
6128
6157
sync = True ,
6129
6158
create_request_timeout : Optional [float ] = None ,
@@ -6379,6 +6408,9 @@ def run(
6379
6408
Whether you want Vertex AI to enable interactive shell access
6380
6409
to training containers.
6381
6410
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
6411
+ enable_dashboard_access (bool):
6412
+ Whether you want Vertex AI to enable access to the customized dashboard
6413
+ to training containers.
6382
6414
tensorboard (str):
6383
6415
Optional. The name of a Vertex AI
6384
6416
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -6447,6 +6479,7 @@ def run(
6447
6479
timeout = timeout ,
6448
6480
restart_job_on_worker_restart = restart_job_on_worker_restart ,
6449
6481
enable_web_access = enable_web_access ,
6482
+ enable_dashboard_access = enable_dashboard_access ,
6450
6483
tensorboard = tensorboard ,
6451
6484
reduction_server_container_uri = reduction_server_container_uri
6452
6485
if reduction_server_replica_count > 0
@@ -6491,6 +6524,7 @@ def _run(
6491
6524
timeout : Optional [int ] = None ,
6492
6525
restart_job_on_worker_restart : bool = False ,
6493
6526
enable_web_access : bool = False ,
6527
+ enable_dashboard_access : bool = False ,
6494
6528
tensorboard : Optional [str ] = None ,
6495
6529
reduction_server_container_uri : Optional [str ] = None ,
6496
6530
sync = True ,
@@ -6635,6 +6669,9 @@ def _run(
6635
6669
Whether you want Vertex AI to enable interactive shell access
6636
6670
to training containers.
6637
6671
https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
6672
+ enable_dashboard_access (bool):
6673
+ Whether you want Vertex AI to enable access to the customized dashboard
6674
+ to training containers.
6638
6675
tensorboard (str):
6639
6676
Optional. The name of a Vertex AI
6640
6677
[Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -6702,6 +6739,7 @@ def _run(
6702
6739
timeout = timeout ,
6703
6740
restart_job_on_worker_restart = restart_job_on_worker_restart ,
6704
6741
enable_web_access = enable_web_access ,
6742
+ enable_dashboard_access = enable_dashboard_access ,
6705
6743
tensorboard = tensorboard ,
6706
6744
)
6707
6745
0 commit comments