Skip to content

[CP] Move context parallel code into a context_parallel package - #3977

Merged
fegin merged 4 commits into
mainfrom
gh/fegin/152/head
Aug 11, 2026
Merged

fegin merged 4 commits into
mainfrom
gh/fegin/152/head

Conversation

@fegin

@fegin fegin commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary
Create a context_parallel package to contain different implementations of CP.

Some planned CP implementations:

  1. Ulysses style
  2. Allgather-based VarlenCP (already have PRs). Allgather-based FlexCP is already supported by the PyTorch API.
  3. SelectiveGather

Pure refactor, no behavior change.

fegin added 2 commits July 23, 2026 22:19
[ghstack-poisoned]
[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 24, 2026
@fegin
fegin requested a review from jinsooihm July 24, 2026 05:20
fegin added 2 commits August 10, 2026 16:55
[ghstack-poisoned]
[ghstack-poisoned]
fegin added a commit that referenced this pull request Aug 10, 2026
**Summary**
Create a context_parallel package to contain different implementations of CP.

Some planned CP implementations:
1. Ulysses style
2. Allgather-based VarlenCP (already have PRs). Allgather-based FlexCP is already supported by the PyTorch API.
3. SelectiveGather

Pure refactor, no behavior change.


ghstack-source-id: be866c5
Pull-Request: #3977
@fegin
fegin changed the base branch from gh/fegin/152/base to main August 11, 2026 00:50
@fegin
fegin merged commit 547b0b4 into main Aug 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu 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.

3 participants