Repository navigation
Update zero_to_fp32.py - to support deepspeed_stage_1 - #3936
Merged
Merged
Conversation
Since deepspeed 1 checkpoint structure is identical to deepspeed 2 (AFAIK), we should just change the version check and add support accordingly
Contributor
|
@stas00, do you remember why stage 1 was excluded? |
Collaborator
|
I think at the time I developed it I didn't think anybody used it, or at least I didn't, so I didn't have a use case for it. |
Contributor
|
@PicoCreator, thanks for this PR. |
tjruwase
approved these changes
Jul 12, 2023
Contributor
Author
|
Glad to see my wild guess, work and be of use (found a few issues on dependent projects that encounted this) I currently use deepspeed 1 to train small toy models (<=3B), as fast as possible, and to test param/model architecture changes =) on consumer hardware (where the gpu-to-gpu communication of deepspeed 2+ is noticeable) |
Contributor
|
@PicoCreator, thanks for sharing your context and experience. We always appreciate hearing customer stories. I want to share a minor naming clarification in terms of DeepSpeed versus ZeRO.
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 12, 2023
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 12, 2023
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 12, 2023
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.
Since deepspeed 1 checkpoint structure is identical to deepspeed 2 (AFAIK), we should just change the stage check and add support accordingly
However I am not 100% sure if this is intentional by design, or some coincidence in my use case - so might need someone with more knowledge on this topic to weigh in 🤔