Commit 7202173
committed
Mark phi3 real multi-device tests with @pytest.mark.multi_device
test_distribution and test_layout_map_mesh_shapes both construct a real
DeviceMesh/ModelParallel and need multiple simulated devices to mean
anything, but neither carried the multi_device marker that PR keras-team#2809's
dedicated CI job filters on. Without it, that job silently collects zero
tests from this model. test_layout_map_live_presets already had the
marker and stays excluded by design (kaggle_key_required + extra_large).
For test_layout_map_mesh_shapes, the marker must go directly on the
function, below @parameterized.named_parameters (not above it) --
absl.testing.parameterized's generated per-case methods only pick up
pytestmark via functools.wraps when the mark decorates the original
function itself; decorating the _ParameterizedTestIter object produced
by named_parameters(...) does not propagate pytestmark to the expanded
test cases. Verified empirically: outermost placement collected 0 of 12
parameterized cases under the marker filter, innermost placement
collected all 12.1 parent 356e1d4 commit 7202173
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
0 commit comments