Commit f83928c
committed
[JAX] CI fixes: dynamic FSDP_SIZE + accept exit 5 for pre-Blackwell skip
Two failures from the same PR run:
* CI B200 (8 GPUs) -- the test hard-coded EP_SIZE=2, FSDP_SIZE=2 ->
4-device mesh, while jax.device_count()==8. mesh_utils.create_device_mesh
rejected with 'Number of devices 8 must equal the product of mesh_shape
(2, 2)'. FSDP_SIZE now derives from jax.device_count() // EP_SIZE, so
the test scales to whatever the launcher gives us (4 GPUs -> FSDP=2,
8 GPUs -> FSDP=4). BATCH formula already depends on EP_SIZE*FSDP_SIZE
so it scales automatically and stays MXFP8-aligned.
* CI H100 (4 GPUs) -- the file emits pytest.skip(allow_module_level=True)
when get_device_compute_capability(0) < 100 (Blackwell-only). pytest
reports 'no tests collected' with exit code 5, which the multiprocess
launcher was treating as a failure. Accept 5 alongside 0; anything
else is still a failure.
Signed-off-by: tdophung <tdophung@nvidia.com>1 parent 2313ff3 commit f83928c
2 files changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | | - | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| |||
280 | 286 | | |
281 | 287 | | |
282 | 288 | | |
283 | | - | |
| 289 | + | |
284 | 290 | | |
285 | 291 | | |
286 | 292 | | |
| |||
0 commit comments