Use the accelerator device in TestZero3SynchronizedEarlyStop #9058
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 177 lines diff across 2 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.310
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9058"
general
weight: 0.35
delock
what
TestZero3SynchronizedEarlyStop(added in #8390) builds its tensors ontorch.device(f"cuda:{rank}"). on the cpu multi-rank nightly (cpu-torch-multi-latest,LOCAL_SIZE=4) the test is admitted by the world-size gate, and the firsttorch.tensor(..., device=device)raisesAssertionError: Torch not compiled with CUDA enabled. that is the 2026-11-11 recurrence in #9033 (run 42957495892).this takes the device from
get_accelerator().current_device_name(), which iscpuon the cpu accelerator andcuda:<local rank>on cuda, so the gpu path is unchanged.why this is not a duplicate
no open pr touches this test; #9009 and #9037 edit the same file but not this class.
tests
on cpu (8 vcpu x86_64, torch 2.15.0+cpu, python 3.12), with
LOCAL_SIZE=4:pytest unit/runtime/rollout/test_hybrid_engine_rollout.py::TestZero3SynchronizedEarlyStopfails withTorch not compiled with CUDA enabled, same traceback as the nightly1 passedpytest unit/runtime/rollout/: 94 passed, 2 skipped;TestZero3SubgroupGenerationfailed locally only becauseaccelerateis not installed in my envnot run on gpu; the cuda device string is the same as before apart from using the local rank instead of the global rank.
fixes #9033 (the hybrid engine rollout part; the earlier
test_tp_compile.pyfailure looked flaky per the thread)