|
33 | 33 |
|
34 | 34 | # Run once a day at 1 am UTC (5 pm PST) |
35 | 35 | SCHEDULED_TIME = "30 1 * * *" if composer_env.is_prod_env() else None |
36 | | -HF_TOKEN = safe_get_from_variable("HF_TOKEN", None) |
| 36 | +# Track access in b/536711415 |
| 37 | +HF_TOKEN = safe_get_from_variable("HF_TOKEN_MOE", None) |
37 | 38 |
|
38 | 39 |
|
39 | 40 | with models.DAG( |
|
68 | 69 | "script_name": "tpu/deepseek/v3.2-671b/2_test_deepseek", |
69 | 70 | "cluster": XpkClusters.TPU_V5P_128_CLUSTER, |
70 | 71 | "time_out_in_min": 180, |
| 72 | + "owner": test_owner.SHUNING_J, |
71 | 73 | }, |
72 | 74 | "deepseek3-671b": { |
73 | 75 | "script_name": "tpu/deepseek/v3-671b/2_test_deepseek", |
74 | 76 | "cluster": XpkClusters.TPU_V5P_128_CLUSTER, |
75 | 77 | "time_out_in_min": 180, |
| 78 | + "owner": test_owner.SHUNING_J, |
76 | 79 | }, |
77 | 80 | "deepseek3-671b-mtp": { |
78 | 81 | "script_name": "tpu/deepseek/v3-671b/2_test_deepseek_mtp", |
79 | 82 | "cluster": XpkClusters.TPU_V5P_128_CLUSTER, |
80 | 83 | "time_out_in_min": 180, |
| 84 | + "owner": test_owner.SHUNING_J, |
81 | 85 | }, |
82 | 86 | "deepseek2-16b": { |
83 | 87 | "script_name": "tpu/deepseek/v2-16b/test_deepseek", |
84 | 88 | "cluster": XpkClusters.TPU_V5P_8_CLUSTER_V2, |
85 | 89 | "time_out_in_min": 180, |
| 90 | + "owner": test_owner.SHUNING_J, |
86 | 91 | }, |
87 | 92 | "gpt-oss-20b": { |
88 | 93 | "script_name": "tpu/gpt_oss/20b/test_gpt_oss", |
89 | 94 | "cluster": XpkClusters.TPU_V5P_8_CLUSTER_V2, |
90 | 95 | "time_out_in_min": 180, |
| 96 | + "owner": test_owner.SHUNING_J, |
91 | 97 | }, |
92 | 98 | } |
93 | 99 |
|
|
97 | 103 | training_tpu = gke_config.get_gke_config( |
98 | 104 | time_out_in_min=test_scripts_details["time_out_in_min"], |
99 | 105 | test_name=f"{test_name_prefix}_{image}_{model}", |
100 | | - run_model_cmds=( |
101 | | - f"export HF_TOKEN={HF_TOKEN}; " |
102 | | - "export BASE_OUTPUT_PATH=$GCS_OUTPUT; " |
103 | | - f"bash tests/end_to_end/{test_scripts_details['script_name']}.sh", |
| 106 | + run_model_cmds=tuple( |
| 107 | + [ |
| 108 | + f"export HF_TOKEN={HF_TOKEN}; " |
| 109 | + "export BASE_OUTPUT_PATH=$GCS_OUTPUT; " |
| 110 | + f"bash tests/end_to_end/{test_scripts_details['script_name']}.sh" |
| 111 | + ] |
104 | 112 | ), |
105 | 113 | docker_image=image_config, |
106 | | - test_owner=test_owner.SHUNING_J, |
| 114 | + test_owner=test_scripts_details["owner"], |
107 | 115 | cluster=test_scripts_details["cluster"], |
108 | 116 | ).run_with_quarantine(quarantine_task_group) |
109 | 117 | unchained_tests.append(training_tpu) |
|
113 | 121 | chain(unchained_tests[i], unchained_tests[i + 1]) |
114 | 122 |
|
115 | 123 | # Chained tests |
| 124 | + # assume same model chain has a single owner |
116 | 125 | multicluster_test_models = { |
117 | 126 | "mixtral-8x7b": [ |
118 | 127 | { |
119 | 128 | "script_name": "tpu/mixtral/8x7b/1_test_mixtral", |
120 | 129 | "cluster": XpkClusters.CPU_M1_MEGAMEM_96_CLUSTER, |
121 | 130 | "time_out_in_min": 240, |
| 131 | + "owner": test_owner.SHUNING_J, |
122 | 132 | }, |
123 | 133 | { |
124 | 134 | "script_name": "tpu/mixtral/8x7b/2_test_mixtral", |
|
131 | 141 | "script_name": "tpu/llama4/1_test_llama4", |
132 | 142 | "cluster": XpkClusters.CPU_M1_MEGAMEM_96_CLUSTER, |
133 | 143 | "time_out_in_min": 240, |
| 144 | + "owner": test_owner.SHUNING_J, |
134 | 145 | }, |
135 | 146 | { |
136 | 147 | "script_name": "tpu/llama4/2_test_llama4", |
@@ -159,23 +170,29 @@ def convert_checkpoint_and_run_training( |
159 | 170 | conversion_cpu = gke_config.get_maxtext_cpu_end_to_end_gke_config( |
160 | 171 | time_out_in_min=test_scripts_details_list[0]["time_out_in_min"], |
161 | 172 | test_name=test_name, |
162 | | - run_model_cmds=( |
163 | | - f"export BASE_OUTPUT_PATH=$GCS_OUTPUT; bash tests/end_to_end/" |
164 | | - f"{test_scripts_details_list[0]['script_name']}.sh", |
| 173 | + run_model_cmds=tuple( |
| 174 | + [ |
| 175 | + f"export HF_TOKEN={HF_TOKEN}; " |
| 176 | + "export BASE_OUTPUT_PATH=$GCS_OUTPUT; " |
| 177 | + f"bash tests/end_to_end/{test_scripts_details_list[0]['script_name']}.sh" |
| 178 | + ] |
165 | 179 | ), |
166 | 180 | docker_image=docker_image_config, |
167 | | - test_owner=test_owner.SHUNING_J, |
| 181 | + test_owner=test_scripts_details_list[0]["owner"], |
168 | 182 | cluster=test_scripts_details_list[0]["cluster"], |
169 | 183 | ).run(gcs_location=shared_gcs_location) |
170 | 184 | training_tpu_task = gke_config.get_gke_config( |
171 | 185 | time_out_in_min=test_scripts_details_list[1]["time_out_in_min"], |
172 | 186 | test_name=test_name, |
173 | | - run_model_cmds=( |
174 | | - f"export BASE_OUTPUT_PATH=$GCS_OUTPUT; bash tests/end_to_end/" |
175 | | - f"{test_scripts_details_list[1]['script_name']}.sh", |
| 187 | + run_model_cmds=tuple( |
| 188 | + [ |
| 189 | + f"export HF_TOKEN={HF_TOKEN}; " |
| 190 | + "export BASE_OUTPUT_PATH=$GCS_OUTPUT; " |
| 191 | + f"bash tests/end_to_end/{test_scripts_details_list[1]['script_name']}.sh" |
| 192 | + ] |
176 | 193 | ), |
177 | 194 | docker_image=docker_image_config, |
178 | | - test_owner=test_owner.SHUNING_J, |
| 195 | + test_owner=test_scripts_details_list[0]["owner"], |
179 | 196 | cluster=test_scripts_details_list[1]["cluster"], |
180 | 197 | ).run(gcs_location=shared_gcs_location) |
181 | 198 | return conversion_cpu, training_tpu_task |
|
0 commit comments