|
16 | 16 |
|
17 | 17 | import datetime |
18 | 18 | from airflow import models |
| 19 | +from airflow.utils.task_group import TaskGroup |
| 20 | + |
19 | 21 | from dags import composer_env |
20 | 22 | from dags.common import test_owner |
21 | 23 | from dags.common.vm_resource import TpuVersion, Zone, RuntimeVersion, Project |
22 | 24 | from dags.sparsity_diffusion_devx.configs import project_bite_config as config |
23 | | -from airflow.utils.task_group import TaskGroup |
24 | 25 |
|
25 | 26 |
|
26 | 27 | # Run once a day at 6 pm UTC (11 am PST) |
|
157 | 158 | group_id='bite_tpu_unittests', prefix_group_id=False |
158 | 159 | ) as bite_unittests: |
159 | 160 | # Trillium (v6e) with JAX 0.5.3 |
160 | | - config.get_bite_tpu_unittests_config( |
| 161 | + jax_053_unittests_v6e_4 = config.get_bite_tpu_unittests_config( |
161 | 162 | **trillium_conf, |
162 | 163 | jax_version='0.5.3', |
163 | 164 | **common, |
164 | 165 | ) |
165 | 166 | # Trillium (v6e) with JAX 0.4.38 |
166 | | - config.get_bite_tpu_unittests_config( |
| 167 | + jax_0438_unittests_v6e_4 = config.get_bite_tpu_unittests_config( |
167 | 168 | **trillium_conf, |
168 | 169 | jax_version='0.4.38', |
169 | 170 | **common, |
170 | 171 | ) |
171 | 172 | # Trillium (v6e) with JAX nightly |
172 | | - config.get_bite_tpu_unittests_config( |
| 173 | + jax_nightly_unittests_v6e_4 = config.get_bite_tpu_unittests_config( |
173 | 174 | **trillium_conf, |
174 | 175 | **common, |
175 | 176 | ) |
176 | 177 | # V5P with JAX 0.5.3 |
177 | | - config.get_bite_tpu_unittests_config( |
| 178 | + jax_053_unittests_v5p_8 = config.get_bite_tpu_unittests_config( |
178 | 179 | **v5p_conf, |
179 | 180 | jax_version='0.5.3', |
180 | 181 | **common, |
181 | 182 | ) |
182 | 183 | # V5P with JAX 0.4.38 |
183 | | - config.get_bite_tpu_unittests_config( |
| 184 | + jax_0438_unittests_v5p_8 = config.get_bite_tpu_unittests_config( |
184 | 185 | **v5p_conf, |
185 | 186 | jax_version='0.4.38', |
186 | 187 | **common, |
187 | 188 | ) |
188 | 189 | # V5P with JAX nightly |
189 | | - config.get_bite_tpu_unittests_config( |
| 190 | + jax_nightly_unittests_v5p_8 = config.get_bite_tpu_unittests_config( |
190 | 191 | **v5p_conf, |
191 | 192 | **common, |
192 | 193 | ) |
193 | 194 | # V5E with JAX nightly |
194 | | - config.get_bite_tpu_unittests_config( |
| 195 | + jax_nightly_unittests_v5e_8 = config.get_bite_tpu_unittests_config( |
195 | 196 | **v5e_conf, |
196 | 197 | **common, |
197 | 198 | ) |
| 199 | + |
| 200 | + # Airflow uses >> for task chaining, which is pointless for pylint. |
| 201 | + # pylint: disable=pointless-statement |
| 202 | + [ |
| 203 | + jax_053_unittests_v5p_8, |
| 204 | + jax_0438_unittests_v5p_8, |
| 205 | + jax_nightly_unittests_v5p_8, |
| 206 | + jax_nightly_unittests_v5e_8, |
| 207 | + jax_053_fuji_v5p_8, |
| 208 | + jax_main_fuji_v5p_8, |
| 209 | + ] |
| 210 | + |
| 211 | + # Running all v6e tests in parallel often leads to timeouts while waiting for resources. |
| 212 | + ( |
| 213 | + jax_053_unittests_v6e_4 |
| 214 | + >> jax_0438_unittests_v6e_4 |
| 215 | + >> jax_nightly_unittests_v6e_4 |
| 216 | + >> jax_053_fuji_v6e_8 |
| 217 | + >> jax_main_fuji_v6e_8 |
| 218 | + >> jax_pinned_053_fuji_v6e_8 |
| 219 | + ) |
| 220 | + # pylint: enable=pointless-statement |
0 commit comments