Skip to content

[rl] Default the oneCCL 2022 workarounds on for XPU - #5404

Closed
songhappy wants to merge 1 commit into
pytorch:mainfrom
songhappy:rl-oneccl-workarounds
Closed

songhappy wants to merge 1 commit into
pytorch:mainfrom
songhappy:rl-oneccl-workarounds

Conversation

@songhappy

@songhappy songhappy commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Part of the RFC #5401 (GRPO on Intel XPU).

Contains only the oneCCL workarounds; merge after #5403. On its own, train.py builds the storage-volume twin mesh on this_host(); once #5403 lands, that call uses the job's trainer hosts (host_meshes.trainer) -- a one-line rebase.

Two oneCCL 2022 bugs break weight sync on XPU (filed with standalone C reproducers): uxlfoundation/oneCCL#222 (a cross-node broadcast from a process whose first communicator was an FSDP one moves no data) and uxlfoundation/oneCCL#225 (concurrent communicator creation fails).

  • Controller.Config.storage_volumes_in_own_procs: TorchStore storage volumes run in a twin of the trainer mesh (same hosts and devices), whose first communicator is a weight-pull one.
  • InterGeneratorRouter.Config.sequential_initial_pull: the first weight pull runs one generator at a time; later pulls stay concurrent.

Both default to device_type == "xpu", so CUDA is unchanged; they can be removed once oneCCL ships fixes. Validated on ALCF Aurora (torch 2.14.0+xpu, oneCCL 2022.1.1, vLLM main, Qwen3-0.6B GRPO, full + LoRA): 18/18 regression (2 nodes x 1/2/4/8/12 tiles, 16 nodes x 4/12 tiles, 1- and 8-node 10-step runs). This branch targets current main, which needs torch nightly while vLLM's XPU support pins torch 2.14, so it was checked line by line against the tested torch-2.14 branch.

@pytorch-bot

pytorch-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:

  • ciflow/rl

Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 15, 2026
@songhappy
songhappy force-pushed the rl-oneccl-workarounds branch from 65e7afc to aa6b0ba Compare October 15, 2026 01:03
oneCCL 2022 hangs when a process that hosts a TorchStore storage volume also runs FSDP collectives (oneCCL pytorch#222), and concurrent first weight pulls deadlock in communicator creation (pytorch#225). On XPU, MonarchActorSystem therefore runs the storage volumes in their own procs, a twin of the trainer mesh on the same devices (MonarchActorSystem.Config.storage_volumes_in_own_procs), and the router runs the first pull after setup one generator at a time (InterGeneratorRouter.Config.sequential_initial_pull). Both default to device_type == "xpu", so CUDA is unchanged.
@songhappy
songhappy force-pushed the rl-oneccl-workarounds branch from aa6b0ba to 3abfd72 Compare October 28, 2026 21:17
@songhappy songhappy closed this Nov 18, 2026
songhappy added a commit to songhappy/torchtitan that referenced this pull request Nov 30, 2026
…orch#5404 closed

pytorch#5402 rebased and made device-generic; pytorch#5403 is now PBSLauncher on upstream's scheduler launchers; the allocator and vLLM-eager settings move to the launcher and recipe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant