Repository navigation
I add mixed array restore support to SingleReplicaArrayHandler - #3613
jabrailkhalil wants to merge 4 commits into
Conversation
|
Update (October 11): the current head is The PR description links the executed two-process CPU checks and unmodified-baseline comparisons, including the existing minimum-JAX failures. Those are contributor-run results, not upstream approval or GPU/TPU/Pathways validation. I have kept the existing broadcast implementation intact and am happy to adjust the argument-handling boundary if needed. |
9015daf to
3929327
Compare
3929327 to
a158276
Compare
|
I merged current Fresh Linux CPU validation of
The PR still changes only the handler, its tests, and the changelog. No GPU/TPU/Pathways execution is claimed. The conflict is cleared. Upstream formatting/lint and security-scan workflows are awaiting maintainer authorization; could a maintainer authorize those runs and review the update? |
|
I merged main at On Linux CPU with JAX 0.11.2, I ran two ranks with four devices each. The type-handler suites passed 117 and 115 tests (two skips on rank 1). The checkpoint-handler suites passed 301 and 297 tests (four skips on rank 1). All 12 mixed-restore cases per rank failed as expected when I restored the main handler. The hooks still hit import-order and stub issues on main and the PR. The package-aware pytype check found the same two existing findings on both trees. The narrow override mismatch on main is gone on the PR. I also tested the automatic merge with Previous merge resultsI merged current |
Fixes #3527.
I allow
SingleReplicaArrayHandlerto restore a batch containing bothSingleReplicaArrayRestoreArgsand ordinaryArrayRestoreArgs. A registry batches JAX arrays under the same handler, so the current type check prevents arrays partitioned across the replica axis from opting out of broadcasting.I split the validated batch by argument type, retain the existing single-replica implementation in a private helper, delegate ordinary arguments to
ArrayHandler, and restore the original result order. I document that corresponding argument types must agree across processes and add a changelog entry.I add 12 distributed regression cases covering interleaved arguments, ordinary-only batches, both primary replicas, and OCDBT/non-OCDBT storage, plus six invalid-input cases. I verified that all 12 final regression cases fail on the updated upstream handler.
I reran the following on Linux CPU with JAX 0.11.2 after rebasing onto upstream
db64a37. The validated checkpoint source is identical to current heada158276:I also reran 14 local tests, a real PyTree round trip with six ordinary array dtypes, isort, and the repository-pinned pytype with
-P checkpoint; these passed. The updated baseline fails that type check on the existing narrow override signature. Pylint reports existing warnings; I compared both complete files against the updated baseline and found no additional diagnostic counts (202 baseline, 193 current).I reran JAX 0.6.0 validation, but serialization/mesh failures also reproduce on the unmodified baseline, including missing
ArrayImpl.formatand non-context-managerjax.sharding.set_mesh. The default pytype hook fails on standard-library stub resolution in both revisions; the combined workflows remain red for those baseline failures. I have not validated accelerator hardware or a Pathways dispatcher.