Skip to content

Commit 3323902

Browse files
authored
fix: Point to new reservation for GCE for jax_functional_tests DAG (#1143)
Since the reservation in project `tpu-prod-env-automated` does not exist for zone east5 anymore. It was need it to create a new subnetwork and point to a zone where is enough v5p chips reserved. Point to zone `europe-west4-b`
1 parent 1227f76 commit 3323902

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dags/common/vm_resource.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
V5_NETWORKS = f"{V5_NETWORKS_PREFIX}/global/networks/mas-test"
2424
V5E_SUBNETWORKS = f"{V5_NETWORKS_PREFIX}/regions/us-east1/subnetworks/mas-test"
2525
V5P_SUBNETWORKS = f"{V5_NETWORKS_PREFIX}/regions/us-east5/subnetworks/mas-test"
26+
V5P_SUBNETWORKS_V2 = (
27+
f"{V5_NETWORKS_PREFIX}/regions/europe-west4/subnetworks/mas-test-v2"
28+
)
2629
V6E_SUBNETWORKS = (
2730
f"{V5_NETWORKS_PREFIX}/regions/us-central2/subnetworks/mas-test"
2831
)

dags/multipod/jax_functional_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import datetime
1818
from airflow import models
1919
from dags import composer_env
20-
from dags.common.vm_resource import DockerImage, TpuVersion, Zone, Project, V5_NETWORKS, V5P_SUBNETWORKS, RuntimeVersion, XpkClusters
20+
from dags.common.vm_resource import DockerImage, TpuVersion, Zone, Project, V5_NETWORKS, V5P_SUBNETWORKS_V2, RuntimeVersion, XpkClusters
2121
from dags.multipod.configs import jax_tests_gce_config, jax_tests_gke_config
2222
from dags.multipod.configs.common import SetupMode
2323

@@ -34,7 +34,7 @@
3434
default_test_name = "jax-distributed-initialize"
3535
v5p_project_name = Project.TPU_PROD_ENV_AUTOMATED.value
3636
v5p_network = V5_NETWORKS
37-
v5p_subnetwork = V5P_SUBNETWORKS
37+
v5p_subnetwork = V5P_SUBNETWORKS_V2
3838
v5p_runtime_version = RuntimeVersion.V2_ALPHA_TPUV5.value
3939
test_modes_with_docker_images = [
4040
(SetupMode.STABLE, None),
@@ -50,7 +50,7 @@
5050
jax_gce_v4_8 = jax_tests_gce_config.get_jax_distributed_initialize_config(
5151
tpu_version=TpuVersion.V4,
5252
tpu_cores=8,
53-
tpu_zone=Zone.US_CENTRAL2_B.value,
53+
tpu_zone=Zone.EUROPE_WEST4_B.value,
5454
time_out_in_min=60,
5555
is_tpu_reserved=False,
5656
num_slices=num_slices,

0 commit comments

Comments
 (0)