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

Update docstring for get_model_state_dict #3318

Merged
merged 1 commit into from
May 24, 2024
Merged

Update docstring for get_model_state_dict #3318

merged 1 commit into from
May 24, 2024

Conversation

eracah
Copy link
Contributor

@eracah eracah commented May 23, 2024

Turns out it's empty dict for nonzero ranks for unsharded state dicts because for torch 2.1.2 we set the FullStateDictConfig rank0_only flag to True and for torch >2.1.2, the dcp.get_model_state_dict function always has empty dict for nonzero ranks for unsharded state dicts

Turns out it's empty dict for nonzero ranks for unsharded state dicts because for torch 2.1.2 we set the `FullStateDictConfig` `rank0_only` flag to `True` and for torch >2.1.2, the `dcp.get_model_state_dict` function always has empty dict for nonzero ranks for unsharded state dicts
@eracah eracah requested a review from bigning May 23, 2024 22:58
@eracah eracah enabled auto-merge (squash) May 23, 2024 22:58
@eracah eracah merged commit 47dbf9f into dev May 24, 2024
15 checks passed
@eracah eracah deleted the eracah-patch-1 branch May 24, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants