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

Changes for dataset swap callback #1569

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Changes for dataset swap callback #1569

merged 2 commits into from
Oct 4, 2024

Conversation

gupta-abhay
Copy link
Contributor

@gupta-abhay gupta-abhay commented Oct 4, 2024

With the 2.4 upgrade for DCP on pytorch, it flattens all state dict elements which are instances of typing.Mapping or lists before saving. However, during loading, we are expected either Mapping / lists, instead of flattened elements for the runs. This is leading to errors, for eg: initial run 134m-draft-10tpr-train-BNMzsm and follow-up run 134m-draft-cl-10tpr-train-7ecT7Q.

a quick workaround is to make the statedict as a dataclass, so that it does not get traversed (ie, flattened). Runs with fixes enabled here: initial run 134m-draft-10tpr-train-12VvIx and follow-up run 134m-cl-draft-10tpr-train-7fsU4r.

Screenshot 2024-10-04 at 13 36 10

@gupta-abhay gupta-abhay requested a review from a team as a code owner October 4, 2024 17:46
@gupta-abhay gupta-abhay requested review from b-chu and dakinggg October 4, 2024 20:26
Copy link
Contributor

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

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

thanks @gupta-abhay !

@gupta-abhay gupta-abhay merged commit 788c1f5 into main Oct 4, 2024
9 checks passed
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