Add a v1 multi-rank CPU suite (manual dispatch first) #8926
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 377 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8926"
general
weight: 0.35
delock
What
Adds
cpu-torch-latest-v1-multirank, a CPU suite for thetests/unit/v1multi-rank tests — the one gap left between the existing CPU workflows:| Workflow | Covers |
|---|---|
|
cpu-torch-latest| all ofunit/atworld_size == 1(the device gate skips higher ranks) ||
cpu-torch-multi-latest(nightly) | multi-rank for the non-v1 half + thesequentialmarker ||
cpu-torch-latest-v1-multirank(this PR) | v1 multi-rank (world_size2-4) |Mechanically it is the same recipe the nightly suite uses:
LOCAL_SIZE=4lets the per-device gate admit the multi-rank tests, andDS_MULTIRANK_ONLY=1deselects everything else, so the job spends its time on v1 multi-rank tests only.Selection
Test selection reuses the existing Modal diff-based picker (
ci/tests_fetcher.py): the newWORKFLOWSentry scopes the suite totests/unit/v1, so a PR only runs the v1 files it could affect. Thecollect-testsjob writesci/.test_selection/test_list.txtand the test job consumes it;mode=noneskips the run entirely. No test lists are maintained by hand.Rollout: manual dispatch first
The trigger is
workflow_dispatchonly, deliberately. This suite has never run in CI, and putting an unvalidated ~1 h suite in front of every pull request (or into branch protection) before it has a green run would block PRs. Once it is green across a few real PRs,pull_request:goes back into theon:block and the check can be registered.Harness changes this suite needs (included here)
The v1 multi-rank tests rely on two fixes that used to live on the work-in-progress #8381 branch; they are part of this PR so the first run can be green:
tests/unit/v1/zero/test_zero_autocast.py: the DDPdevice_idscapability probe — without it, all 24 DDP autocast variants fail on CPU withValueError: DistributedDataParallel device_ids and output_device arguments .... The fp16 parity variants are skipped when the accelerator reports no fp16 support (is_fp16_supported()false) rather than widening the tolerance, so no assertion is relaxed.tests/unit/common.py: shm-segment key isolation/cleanup, JIT warm-up with stale-baton cleanup, per-rank faulthandler, and master-port uniquification — without them, concurrent pools share shm segments and can corrupt data or wedge.Verified on CPU, 2 ranks: bf16 ZeRO-3 passes, fp16 variants skip when fp16 is unavailable, and no
/dev/shmsegments are left behind.Validation
python3 ci/test_tests_fetcher.py: 27/27 (adds a registry test for the newWORKFLOWSentry)ci/tests_fetcher.py --workflow cpu-torch-latest-v1-multirank:mode=all(->tests/unit/v1) with no base,mode=nonewith no impacted tests;ci/torch_latest.py validate-selectionpassesAI assistance
Prepared with AI assistance (DeepSeek Harness agent) under human review; the submitter has read every changed line.
Signed-off-by: Ma, Guokai <guokai.ma@intel.com>