|
17 | 17 | """ |
18 | 18 | import datetime |
19 | 19 | from airflow import models |
20 | | -from dags import composer_env, gcs_bucket |
| 20 | +from dags import gcs_bucket |
21 | 21 | from dags.common import test_owner |
22 | | -from dags.common.vm_resource import TpuVersion, Zone, DockerImage, XpkClusters |
| 22 | +from dags.common.vm_resource import DockerImage, XpkClusters |
23 | 23 | from dags.multipod.configs import gke_config |
24 | 24 | from dags.multipod.configs.common import SetupMode |
25 | 25 |
|
|
48 | 48 | } |
49 | 49 | clusters = { |
50 | 50 | # accelerator: cluster name |
51 | | - "v4-8": XpkClusters.TPU_V4_8_MAXTEXT_CLUSTER, |
| 51 | + # TODO(b/465618653): Switch back to v4-8 once the issue is resolved. |
| 52 | + # Temporary use the cluster for v4-16 since the original does not have |
| 53 | + # the "vertex-tensorboard" compatibility. |
| 54 | + # "v4-8": XpkClusters.TPU_V4_8_MAXTEXT_CLUSTER |
| 55 | + "v4-8": XpkClusters.TPU_V4_16_CLUSTER, |
52 | 56 | "v4-16": XpkClusters.TPU_V4_16_CLUSTER, |
53 | 57 | } |
54 | 58 |
|
|
58 | 62 | current_time = datetime.datetime.now() |
59 | 63 | current_datetime = current_time.strftime("%Y-%m-%d-%H-%M-%S") |
60 | 64 | profiling_in_vertex_ai_tb_cmds = ( |
61 | | - f"export RUN_NAME=vertex-ai-{mode.value}-{slice_num}x-{accelerator}-{current_datetime}", |
62 | | - "python3 -m MaxText.train MaxText/configs/base.yml" |
63 | | - f" run_name=$RUN_NAME base_output_directory={base_output_directory}" |
64 | | - f" dataset_path={dataset_path} profiler=xplane steps=10", |
65 | | - "gsutil ls gs://cloud-ai-platform-*/tensorboard-*/$EXPERIMENT_NAME", |
| 65 | + ( |
| 66 | + f"export RUN_NAME=vertex-ai-{mode.value}-{slice_num}x" |
| 67 | + f"-{accelerator}-{current_datetime}" |
| 68 | + ), |
| 69 | + ( |
| 70 | + "python3 -m MaxText.train MaxText/configs/base.yml" |
| 71 | + f" run_name=$RUN_NAME base_output_directory" |
| 72 | + f"={base_output_directory} dataset_path={dataset_path}" |
| 73 | + f" profiler=xplane steps=10" |
| 74 | + ), |
| 75 | + # TODO(b/465619132): Revert this change once the issue is resolved. |
| 76 | + # Comment out due to the path is invalid. |
| 77 | + # "gsutil ls gs://cloud-ai-platform-*/tensorboard-*/ |
| 78 | + # $EXPERIMENT_NAME", |
66 | 79 | ) |
| 80 | + |
67 | 81 | profiling_in_vertex_ai_tb_test = gke_config.get_gke_config( |
68 | 82 | num_slices=slice_num, |
69 | 83 | cluster=clusters[accelerator], |
70 | 84 | time_out_in_min=240, |
71 | | - test_name=f"profiling-vertex-ai-tensorboard-{mode.value}", |
| 85 | + # TODO(b/465618653): Switch back to v4-8 once the issue is resolved. |
| 86 | + test_name=( |
| 87 | + f"profiling-vertex-ai-tensorboard-{mode.value}-{accelerator}" |
| 88 | + ), |
72 | 89 | run_model_cmds=profiling_in_vertex_ai_tb_cmds, |
73 | 90 | docker_image=image.value, |
74 | 91 | test_owner=test_owner.SURBHI_J, |
|
0 commit comments