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

Add generic flatten imports to HF checkpointer #814

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Conversation

b-chu
Copy link
Contributor

@b-chu b-chu commented Dec 21, 2023

When using HF checkpointer from another repo, the checkpointer does not correctly flatten all imports. This change allows the user to specify the imports that need to be flattened.

No existing behavior has changed.

Tested using a different repo.

@b-chu b-chu requested a review from dakinggg December 21, 2023 19:08
Copy link
Collaborator

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

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

I know there are no unit tests for this (just a full test of checkpoint conversion), but in the spirit of not making the situation worse, can you add a unit test for the new helper that you are adding?

@b-chu b-chu force-pushed the hf-checkpointer branch 2 times, most recently from 4f8b7df to 571c8e7 Compare December 21, 2023 20:09
@b-chu b-chu requested a review from dakinggg December 21, 2023 20:09
@b-chu b-chu force-pushed the hf-checkpointer branch 2 times, most recently from e0caf5d to 8dbcdbe Compare December 21, 2023 20:46
@b-chu b-chu enabled auto-merge (squash) December 21, 2023 21:03
@b-chu b-chu merged commit bbf5cc7 into main Dec 21, 2023
10 checks passed
@b-chu b-chu deleted the hf-checkpointer branch December 21, 2023 21:22
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.

None yet

2 participants