Commit aba9064
committed
Mark Llama distribution tests with multi_device
test_distribution, test_distribution_with_lora, and
test_layout_map_mesh_shapes were not marked, so the dedicated
multi_device CI job (added in keras-team#2809) was collecting zero real tests
for this model -- only test_layout_map_live_presets carried the
marker, and that test is deliberately excluded by the job's own
kaggle_key_required/extra_large filter.
For test_layout_map_mesh_shapes, which uses absl's
parameterized.named_parameters, the marker must be applied as the
innermost decorator (closest to the function) rather than outermost:
named_parameters generates fresh method objects per expansion that
don't inherit the pytestmark attribute pytest.mark sets on the
original function, so an outer marker never reaches the expanded
test cases. Verified empirically that only the inner-decorator
ordering makes the parameterized cases collectible under
-m multi_device.1 parent 9399083 commit aba9064
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
0 commit comments