Repository navigation
Conversation
This was referenced Nov 9, 2026
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. Pages changed in this PR: |
3outeille
force-pushed
the
cp-5-docs
branch
2 times, most recently
from
November 12, 2026 06:19
1af458b to
b1f9a0a
Compare
`docs/source/en/context_parallelism.md` documents the plan API: the `base_model_cp_plan` default and the two styles, the `cp_plan` override, `cp_implementation` and how to register your own, the model's own masks (packing, padding, sliding windows, chunked attention, custom mask functions), the cost, tensor and expert parallelism, the automatic padding, `Trainer`, and what is refused. The page joins the performance section of the table of contents after FSDP2.
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.
What does this PR do?
Stack: #50493 → #50496 → #50511 → #50514 → #50499 → #50521 → this PR
Adds a "Context parallelism" page under Distributed training, next to FSDP2. It covers:
base_model_cp_plan, the two styles,cp_planoverrides);Trainer], and combining CP with TP and EP;sequence_parallelTP style.