Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PP] Bypass seed checkpoint my init-ing model parts separately #516

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

H-Huang
Copy link
Member

@H-Huang H-Huang commented Aug 12, 2024

Stack from ghstack (oldest at bottom):

Allows PP to be used without a seed checkpoint by calling init_weight on each model part. This is the solution in step 1 of #514 proposed by @wconstab

@H-Huang H-Huang mentioned this pull request Aug 6, 2024
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 12, 2024
raise RuntimeError(
"Pipeline Parallelism requires meta-initialization and loading seed checkpoint. "
"Please run `./create_seed_checkpoint.sh` and rerun training with `--checkpoint.enable_checkpoint`"
# TODO: fix this by allowing each rank to set their own seed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iiuc, init_weights would be called all the time, and then when seed ckpt is specified, it would overwrite the init. that sgtm.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, that is correct

…tely"


Allows PP to be used without a seed checkpoint by calling `init_weight` on each model part. This is the solution in step 1 of #514 proposed by wconstab 


[ghstack-poisoned]
@H-Huang H-Huang changed the base branch from gh/H-Huang/4/base to main August 12, 2024 21:18
…del parts separately"


Allows PP to be used without a seed checkpoint by calling `init_weight` on each model part. This is the solution in step 1 of #514 proposed by wconstab 


[ghstack-poisoned]
…tely"


Allows PP to be used without a seed checkpoint by calling `init_weight` on each model part. This is the solution in step 1 of #514 proposed by wconstab 


[ghstack-poisoned]
@H-Huang H-Huang merged commit eb64c69 into main Aug 12, 2024
5 checks passed
H-Huang added a commit that referenced this pull request Aug 12, 2024
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #473
* __->__ #517
* #516

Ran `pre-commit run --all-files`
fegin pushed a commit that referenced this pull request Aug 16, 2024
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #473
* #517
* __->__ #516

Allows PP to be used without a seed checkpoint by calling `init_weight`
on each model part. This is the solution in step 1 of
#514 proposed by @wconstab
fegin pushed a commit that referenced this pull request Aug 16, 2024
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #473
* __->__ #517
* #516

Ran `pre-commit run --all-files`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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