@@ -1139,6 +1139,8 @@ def _prepare_and_validate_run(
|
1139 | 1139 | machine_type: str = "n1-standard-4",
|
1140 | 1140 | accelerator_type: str = "ACCELERATOR_TYPE_UNSPECIFIED",
|
1141 | 1141 | accelerator_count: int = 0,
|
| 1142 | +boot_disk_type: str = "pd-ssd", |
| 1143 | +boot_disk_size_gb: int = 100, |
1142 | 1144 | ) -> Tuple[worker_spec_utils._DistributedTrainingSpec, Optional[gca_model.Model]]:
|
1143 | 1145 | """Create worker pool specs and managed model as well validating the
|
1144 | 1146 | run.
|
@@ -1172,6 +1174,13 @@ def _prepare_and_validate_run(
|
1172 | 1174 | NVIDIA_TESLA_T4
|
1173 | 1175 | accelerator_count (int):
|
1174 | 1176 | The number of accelerators to attach to a worker replica.
|
| 1177 | +boot_disk_type (str): |
| 1178 | +Type of the boot disk, default is `pd-ssd`. |
| 1179 | +Valid values: `pd-ssd` (Persistent Disk Solid State Drive) or |
| 1180 | +`pd-standard` (Persistent Disk Hard Disk Drive). |
| 1181 | +boot_disk_size_gb (int): |
| 1182 | +Size in GB of the boot disk, default is 100GB. |
| 1183 | +boot disk size must be within the range of [100, 64000]. |
1175 | 1184 | Returns:
|
1176 | 1185 | Worker pools specs and managed model for run.
|
1177 | 1186 |
|
@@ -1204,6 +1213,8 @@ def _prepare_and_validate_run(
|
1204 | 1213 | machine_type=machine_type,
|
1205 | 1214 | accelerator_count=accelerator_count,
|
1206 | 1215 | accelerator_type=accelerator_type,
|
| 1216 | +boot_disk_type=boot_disk_type, |
| 1217 | +boot_disk_size_gb=boot_disk_size_gb, |
1207 | 1218 | ).pool_specs
|
1208 | 1219 |
|
1209 | 1220 | managed_model = self._managed_model
|
@@ -1588,6 +1599,8 @@ def run(
|
1588 | 1599 | machine_type: str = "n1-standard-4",
|
1589 | 1600 | accelerator_type: str = "ACCELERATOR_TYPE_UNSPECIFIED",
|
1590 | 1601 | accelerator_count: int = 0,
|
| 1602 | +boot_disk_type: str = "pd-ssd", |
| 1603 | +boot_disk_size_gb: int = 100, |
1591 | 1604 | training_fraction_split: float = 0.8,
|
1592 | 1605 | validation_fraction_split: float = 0.1,
|
1593 | 1606 | test_fraction_split: float = 0.1,
|
@@ -1724,6 +1737,13 @@ def run(
|
1724 | 1737 | NVIDIA_TESLA_T4
|
1725 | 1738 | accelerator_count (int):
|
1726 | 1739 | The number of accelerators to attach to a worker replica.
|
| 1740 | +boot_disk_type (str): |
| 1741 | +Type of the boot disk, default is `pd-ssd`. |
| 1742 | +Valid values: `pd-ssd` (Persistent Disk Solid State Drive) or |
| 1743 | +`pd-standard` (Persistent Disk Hard Disk Drive). |
| 1744 | +boot_disk_size_gb (int): |
| 1745 | +Size in GB of the boot disk, default is 100GB. |
| 1746 | +boot disk size must be within the range of [100, 64000]. |
1727 | 1747 | training_fraction_split (float):
|
1728 | 1748 | The fraction of the input data that is to be
|
1729 | 1749 | used to train the Model. This is ignored if Dataset is not provided.
|
@@ -1774,6 +1794,8 @@ def run(
|
1774 | 1794 | machine_type=machine_type,
|
1775 | 1795 | accelerator_count=accelerator_count,
|
1776 | 1796 | accelerator_type=accelerator_type,
|
| 1797 | +boot_disk_type=boot_disk_type, |
| 1798 | +boot_disk_size_gb=boot_disk_size_gb, |
1777 | 1799 | )
|
1778 | 1800 |
|
1779 | 1801 | # make and copy package
|
@@ -2241,6 +2263,8 @@ def run(
|
2241 | 2263 | machine_type: str = "n1-standard-4",
|
2242 | 2264 | accelerator_type: str = "ACCELERATOR_TYPE_UNSPECIFIED",
|
2243 | 2265 | accelerator_count: int = 0,
|
| 2266 | +boot_disk_type: str = "pd-ssd", |
| 2267 | +boot_disk_size_gb: int = 100, |
2244 | 2268 | training_fraction_split: float = 0.8,
|
2245 | 2269 | validation_fraction_split: float = 0.1,
|
2246 | 2270 | test_fraction_split: float = 0.1,
|
@@ -2370,6 +2394,13 @@ def run(
|
2370 | 2394 | NVIDIA_TESLA_T4
|
2371 | 2395 | accelerator_count (int):
|
2372 | 2396 | The number of accelerators to attach to a worker replica.
|
| 2397 | +boot_disk_type (str): |
| 2398 | +Type of the boot disk, default is `pd-ssd`. |
| 2399 | +Valid values: `pd-ssd` (Persistent Disk Solid State Drive) or |
| 2400 | +`pd-standard` (Persistent Disk Hard Disk Drive). |
| 2401 | +boot_disk_size_gb (int): |
| 2402 | +Size in GB of the boot disk, default is 100GB. |
| 2403 | +boot disk size must be within the range of [100, 64000]. |
2373 | 2404 | training_fraction_split (float):
|
2374 | 2405 | The fraction of the input data that is to be
|
2375 | 2406 | used to train the Model. This is ignored if Dataset is not provided.
|
@@ -2425,6 +2456,8 @@ def run(
|
2425 | 2456 | machine_type=machine_type,
|
2426 | 2457 | accelerator_count=accelerator_count,
|
2427 | 2458 | accelerator_type=accelerator_type,
|
| 2459 | +boot_disk_type=boot_disk_type, |
| 2460 | +boot_disk_size_gb=boot_disk_size_gb, |
2428 | 2461 | )
|
2429 | 2462 |
|
2430 | 2463 | return self._run(
|
@@ -4402,6 +4435,8 @@ def run(
|
4402 | 4435 | machine_type: str = "n1-standard-4",
|
4403 | 4436 | accelerator_type: str = "ACCELERATOR_TYPE_UNSPECIFIED",
|
4404 | 4437 | accelerator_count: int = 0,
|
| 4438 | +boot_disk_type: str = "pd-ssd", |
| 4439 | +boot_disk_size_gb: int = 100, |
4405 | 4440 | training_fraction_split: float = 0.8,
|
4406 | 4441 | validation_fraction_split: float = 0.1,
|
4407 | 4442 | test_fraction_split: float = 0.1,
|
@@ -4531,6 +4566,13 @@ def run(
|
4531 | 4566 | NVIDIA_TESLA_T4
|
4532 | 4567 | accelerator_count (int):
|
4533 | 4568 | The number of accelerators to attach to a worker replica.
|
| 4569 | +boot_disk_type (str): |
| 4570 | +Type of the boot disk, default is `pd-ssd`. |
| 4571 | +Valid values: `pd-ssd` (Persistent Disk Solid State Drive) or |
| 4572 | +`pd-standard` (Persistent Disk Hard Disk Drive). |
| 4573 | +boot_disk_size_gb (int): |
| 4574 | +Size in GB of the boot disk, default is 100GB. |
| 4575 | +boot disk size must be within the range of [100, 64000]. |
4534 | 4576 | training_fraction_split (float):
|
4535 | 4577 | The fraction of the input data that is to be
|
4536 | 4578 | used to train the Model. This is ignored if Dataset is not provided.
|
@@ -4581,6 +4623,8 @@ def run(
|
4581 | 4623 | machine_type=machine_type,
|
4582 | 4624 | accelerator_count=accelerator_count,
|
4583 | 4625 | accelerator_type=accelerator_type,
|
| 4626 | +boot_disk_type=boot_disk_type, |
| 4627 | +boot_disk_size_gb=boot_disk_size_gb, |
4584 | 4628 | )
|
4585 | 4629 |
|
4586 | 4630 | return self._run(
|
|
0 commit comments