@@ -1278,7 +1278,7 @@ def _prepare_and_validate_run(
1278
1278
accelerator_count : int = 0 ,
1279
1279
boot_disk_type : str = "pd-ssd" ,
1280
1280
boot_disk_size_gb : int = 100 ,
1281
- reduction_server_replica_count : Optional [ int ] = 0 ,
1281
+ reduction_server_replica_count : int = 0 ,
1282
1282
reduction_server_machine_type : Optional [str ] = None ,
1283
1283
) -> Tuple [worker_spec_utils ._DistributedTrainingSpec , Optional [gca_model .Model ]]:
1284
1284
"""Create worker pool specs and managed model as well validating the
@@ -1321,7 +1321,7 @@ def _prepare_and_validate_run(
1321
1321
Size in GB of the boot disk, default is 100GB.
1322
1322
boot disk size must be within the range of [100, 64000].
1323
1323
reduction_server_replica_count (int):
1324
- Optional. The number of reduction server replicas.
1324
+ The number of reduction server replicas, default is 0 .
1325
1325
reduction_server_machine_type (str):
1326
1326
Optional. The type of machine to use for reduction server.
1327
1327
Returns:
@@ -1744,7 +1744,7 @@ def run(
1744
1744
accelerator_count : int = 0 ,
1745
1745
boot_disk_type : str = "pd-ssd" ,
1746
1746
boot_disk_size_gb : int = 100 ,
1747
- reduction_server_replica_count : Optional [ int ] = 0 ,
1747
+ reduction_server_replica_count : int = 0 ,
1748
1748
reduction_server_machine_type : Optional [str ] = None ,
1749
1749
reduction_server_container_uri : Optional [str ] = None ,
1750
1750
training_fraction_split : Optional [float ] = None ,
@@ -1919,7 +1919,7 @@ def run(
1919
1919
Size in GB of the boot disk, default is 100GB.
1920
1920
boot disk size must be within the range of [100, 64000].
1921
1921
reduction_server_replica_count (int):
1922
- Optional. The number of reduction server replicas.
1922
+ The number of reduction server replicas, default is 0 .
1923
1923
reduction_server_machine_type (str):
1924
1924
Optional. The type of machine to use for reduction server.
1925
1925
reduction_server_container_uri (str):
@@ -2229,7 +2229,7 @@ def _run(
2229
2229
continue
2230
2230
2231
2231
if (
2232
- spec_order == worker_spec_utils .SPEC_ORDERS ["server_spec" ]
2232
+ spec_order == worker_spec_utils ._SPEC_ORDERS ["server_spec" ]
2233
2233
and reduction_server_container_uri
2234
2234
):
2235
2235
spec ["container_spec" ] = {
@@ -2536,7 +2536,7 @@ def run(
2536
2536
accelerator_count : int = 0 ,
2537
2537
boot_disk_type : str = "pd-ssd" ,
2538
2538
boot_disk_size_gb : int = 100 ,
2539
- reduction_server_replica_count : Optional [ int ] = 0 ,
2539
+ reduction_server_replica_count : int = 0 ,
2540
2540
reduction_server_machine_type : Optional [str ] = None ,
2541
2541
reduction_server_container_uri : Optional [str ] = None ,
2542
2542
training_fraction_split : Optional [float ] = None ,
@@ -2704,7 +2704,7 @@ def run(
2704
2704
Size in GB of the boot disk, default is 100GB.
2705
2705
boot disk size must be within the range of [100, 64000].
2706
2706
reduction_server_replica_count (int):
2707
- Optional. The number of reduction server replicas.
2707
+ The number of reduction server replicas, default is 0 .
2708
2708
reduction_server_machine_type (str):
2709
2709
Optional. The type of machine to use for reduction server.
2710
2710
reduction_server_container_uri (str):
@@ -3003,7 +3003,7 @@ def _run(
3003
3003
continue
3004
3004
3005
3005
if (
3006
- spec_order == worker_spec_utils .SPEC_ORDERS ["server_spec" ]
3006
+ spec_order == worker_spec_utils ._SPEC_ORDERS ["server_spec" ]
3007
3007
and reduction_server_container_uri
3008
3008
):
3009
3009
spec ["container_spec" ] = {
@@ -5299,7 +5299,7 @@ def run(
5299
5299
accelerator_count : int = 0 ,
5300
5300
boot_disk_type : str = "pd-ssd" ,
5301
5301
boot_disk_size_gb : int = 100 ,
5302
- reduction_server_replica_count : Optional [ int ] = 0 ,
5302
+ reduction_server_replica_count : int = 0 ,
5303
5303
reduction_server_machine_type : Optional [str ] = None ,
5304
5304
reduction_server_container_uri : Optional [str ] = None ,
5305
5305
training_fraction_split : Optional [float ] = None ,
@@ -5467,7 +5467,7 @@ def run(
5467
5467
Size in GB of the boot disk, default is 100GB.
5468
5468
boot disk size must be within the range of [100, 64000].
5469
5469
reduction_server_replica_count (int):
5470
- Optional. The number of reduction server replicas.
5470
+ The number of reduction server replicas, default is 0 .
5471
5471
reduction_server_machine_type (str):
5472
5472
Optional. The type of machine to use for reduction server.
5473
5473
reduction_server_container_uri (str):
@@ -5747,7 +5747,7 @@ def _run(
5747
5747
continue
5748
5748
5749
5749
if (
5750
- spec_order == worker_spec_utils .SPEC_ORDERS ["server_spec" ]
5750
+ spec_order == worker_spec_utils ._SPEC_ORDERS ["server_spec" ]
5751
5751
and reduction_server_container_uri
5752
5752
):
5753
5753
spec ["container_spec" ] = {
0 commit comments