Repository navigation
Conversation
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
from
November 10, 2026 17:34
14e47b1 to
189873e
Compare
liulehui
force-pushed
the
ray-train-health/health-gpu-tests
branch
from
November 10, 2026 17:36
46169a7 to
6d4df66
Compare
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
from
November 10, 2026 18:41
189873e to
bb7186c
Compare
liulehui
force-pushed
the
ray-train-health/health-gpu-tests
branch
from
November 10, 2026 18:44
6d4df66 to
054c322
Compare
pseudo-rnd-thoughts
force-pushed
the
ray-train-health/health-gpu-tests
branch
from
November 10, 2026 20:51
054c322 to
e1ea72a
Compare
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
from
November 12, 2026 06:38
2655c1b to
5f1b44f
Compare
liulehui
force-pushed
the
ray-train-health/health-gpu-tests
branch
from
November 12, 2026 06:38
e1ea72a to
facd769
Compare
pseudo-rnd-thoughts
force-pushed
the
ray-train-health/health-gpu-tests
branch
2 times, most recently
from
November 12, 2026 18:39
a9fc325 to
7db7194
Compare
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
4 times, most recently
from
November 15, 2026 22:37
fc894d5 to
b0fe250
Compare
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
3 times, most recently
from
November 18, 2026 17:25
29db681 to
3749b35
Compare
RAY_TRAIN_ENABLE_NCCL_HANG_DETECTOR=1 now runs the NCCL hang detector as
a ray.train.health check that the controller adds to the run, instead of
NCCLRASCallback, which stays, unregistered, until a later PR deletes it.
It behaves like the callback: the same env vars, detection, warnings,
diagnostics and uploads, and Grafana gauges.
- ray.train.health.nccl_ras:
- utils: the callback's helpers, copied in its order. Only
run_ncclras, run_nvidia_smi and dump_flight_recorder differ.
- probes: NCCLRASProbe, NCCLRASTextProbe and NvidiaSmiProbe on each
node, FlightRecorderProbe and StackTraceProbe on each worker.
- evaluators: NCCLHangEvaluator, which diagnoses a suspected hang with
NCCL's text report (SuspectedHangEvaluator), and a confirmed one with
the four diagnostics (ConfirmedHangEvaluator, which uploads them,
then reattempts or only logs).
- check: nccl_hang_check(), which reads the env vars.
- The controller adds nccl_hang_check() to the run's in-flight checks,
and the detector's env vars are propagated to it.
- With RAY_TRAIN_NCCL_RAS_ACTION=fail, a confirmed hang is a Reattempt,
which fails the attempt with a HealthCheckError instead of
NCCLHangError.
- The Flight Recorder dump reads ProcessGroupNCCL's buffer, falling back
to the generic one.
The detector's tests, in python/ray/train/health/tests, are copies of
test_nccl_ras_callback.py's. A CPU end-to-end test drives it with a fake
ncclras.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lehui Liu <[email protected]>
pseudo-rnd-thoughts
force-pushed
the
ray-train-health/nccl-ras-health
branch
from
November 18, 2026 19:44
3749b35 to
a34946b
Compare
…ector Scripts under release/train_tests/health that run ray.train.health on a GPU cluster with faults injected on purpose, and print a timeline of the controller's decisions and PASS or FAIL. See the README for the cluster, the image and how to run them. - nccl_hang.py runs one NCCL hang, and a slow step that must not fire, against the NCCL hang detector on ray.train.health (RAY_TRAIN_ENABLE_NCCL_HANG_DETECTOR=1) and against the NCCLRASCallback it replaces, passed in RunConfig(callbacks=...). Both must end the run with their error within a few seconds of each other, and upload the four diagnostics to hang_detector/. - gpu_faults.py and gr00t_recovery.py mock GPU faults as NVSentinel HealthEvents, and run the GPU and progress checks in gpu_health.py and progress_health.py. harness.py holds the injected faults and the Timeline. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lehui Liu <[email protected]>
liulehui
force-pushed
the
ray-train-health/health-gpu-tests
branch
from
November 18, 2026 20:33
7db7194 to
0d281e8
Compare
liulehui
force-pushed
the
ray-train-health/nccl-ras-health
branch
from
November 18, 2026 22:52
a34946b to
a242c48
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
The health stack (#67671 → #67856 → #67879 → #67915 → #67916) is tested with unit tests and a local CPU cluster. This PR adds scripts to run it on a real GPU cluster, such as an Anyscale workspace, with faults injected on purpose. Each script prints a timeline of the controller's decisions, and PASS or FAIL.
release/train_tests/health/README.mdhas the setup.gpu_faults.py workflowHealthCheck(stop_workers=True)). Then a thermal event slows one node: DIAGNOSE → its temperature is read on demand → REATTEMPT →HealthCheckErrorwithmax_failures=0.gpu_faults.py xid79nccl_hang.pyNCCLRASCallbackand the same detection onray.train.health(nccl_ras_health.py, built on the 7/n probes) both catch it, within a few seconds of each other.nccl_hang.py health slow_stepsync_ray_train.pyray/traininto the image's Ray on every node, so the stack runs on a nightly without building Ray.GPU health events are mocked with the fields of NVSentinel's
HealthEvent(checkName,isFatal,recommendedAction,errorCode,entitiesImpacted), and the same fatal rule: an event is fatal when its recommended action isn'tNONE. A task pinned to a node writes the event there, and the probes read it on their next poll. Faults fire at a rank and step, once per run, as in TorchFT'sEventInjector. The README compares this with NVSentinel'sdcgmi test --inject, and with NVRx'sinject_fault.These are scripts to run by hand. They aren't wired into
release_tests.yaml.Related issue number
Follows #67916. The scripts come from the draft #66247, ported to the stack's API.
Duplicate check
gh pr list --repo ray-project/ray --state open --search "nccl ras hang release test"and--search "train health in:title"find only this stack, #66247 (the earlier draft these scripts come from) and #67544 (health events and exporter, unrelated).Tests
On a laptop, against this branch's
ray/train:python release/train_tests/health/gpu_faults.py --local: workflow PASS (DIAGNOSE at +3.9s, REATTEMPT at +5.9s,HealthCheckError); xid79 PASS (EVICT at +3.9s, then RESTARTING and RUNNING, ending without an error).NCCLHangEvaluatoron a recordedncclras -f jsonreport from a 4-node hang, in which rank 1 is at AllReduce 100 and the other ranks are at 101. With a 2s poll and a 20s confirm duration, it suspects the hang at 18s and confirms it at 20s, naming rank 1 by host:pid. When one node's report fails it uses the other's, and a fatal RAS error turns it off.sync_ray_train.pyagainst a fake install keepstrain.origand installs the stack's code.Not yet run on GPUs.
nccl_hang.pyneeds GPUs and NCCL ≥ 2.28.7 withncclras, so I'll run both scripts in an Anyscale workspace before this leaves draft.Checks
git commit -s).🤖 Generated with Claude Code