[docs] zero + sequence parallelism - #44605
Merged
Merged
Conversation
stevhliu
commented
Mar 11, 2026
Member
- refactors DeepSpeed ZeRO doc:
- moves the troubleshooting section to the more general Debugging guide to keep everything in one place
- moves the sequence parallelism section into a new doc to give it more visibility
- update to be more lightweight and focused on the content that matters to Transformers (for example, remove features that aren't specific to DeepSpeed, non-Trainer integration, launching from Jupyter notebook, etc.)
- lightly refactors Sequence parallelism + Debugging docs
|
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. |
SunMarc
reviewed
Apr 9, 2026
SunMarc
left a comment
Member
There was a problem hiding this comment.
Thanks ! just some minor comments
kashif
reviewed
Apr 9, 2026
kashif
reviewed
Apr 9, 2026
SunMarc
approved these changes
Apr 10, 2026
Comment on lines
+95
to
+107
| </hfoption> | ||
| <hfoption id="Accelerate config file"> | ||
|
|
||
| Run the [accelerate config](https://huggingface.co/docs/accelerate/en/package_reference/cli#accelerate-config) command and answer questions about your hardware and training setup to create a `default_config.yaml` file in your cache. | ||
|
|
||
| ```yaml | ||
| distributed_type: DEEPSPEED | ||
| deepspeed_config: | ||
| deepspeed_config_file: path/to/ds_config.json | ||
| machine_rank: 0 | ||
| num_machines: 1 | ||
| num_processes: 4 | ||
| ``` |
Member
There was a problem hiding this comment.
Note that with this version you don't need to pass the deepspeed argument in TrainingArguments and even if you pass it, it will be ignored.
sirzechs66
pushed a commit
to sirzechs66/transformers
that referenced
this pull request
Apr 18, 2026
* zero + debug * sp * revert * link to blog * feedback * feedback
eustlb
pushed a commit
that referenced
this pull request
May 12, 2026
* zero + debug * sp * revert * link to blog * feedback * feedback
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.